Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
27a2d5af
Commit
27a2d5af
authored
Jan 22, 2024
by
Daniel Hiltgen
Browse files
Debug logging on init failure
parent
5f81a33f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
llm/dyn_ext_server.go
llm/dyn_ext_server.go
+3
-1
No files found.
llm/dyn_ext_server.go
View file @
27a2d5af
...
@@ -142,7 +142,9 @@ func newDynExtServer(library, model string, adapters, projectors []string, opts
...
@@ -142,7 +142,9 @@ func newDynExtServer(library, model string, adapters, projectors []string, opts
C
.
dyn_llama_server_init
(
llm
.
s
,
&
sparams
,
&
initResp
)
C
.
dyn_llama_server_init
(
llm
.
s
,
&
sparams
,
&
initResp
)
if
initResp
.
id
<
0
{
if
initResp
.
id
<
0
{
mutex
.
Unlock
()
mutex
.
Unlock
()
return
nil
,
extServerResponseToErr
(
initResp
)
err
:=
extServerResponseToErr
(
initResp
)
slog
.
Debug
(
fmt
.
Sprintf
(
"failure during initialization: %s"
,
err
))
return
nil
,
err
}
}
slog
.
Info
(
"Starting llama main loop"
)
slog
.
Info
(
"Starting llama main loop"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment