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
a0a829bf
Unverified
Commit
a0a829bf
authored
Jan 22, 2024
by
Daniel Hiltgen
Committed by
GitHub
Jan 22, 2024
Browse files
Merge pull request #2142 from dhiltgen/debug_on_fail
Debug logging on init failure
parents
5f81a33f
27a2d5af
Changes
1
Show 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 @
a0a829bf
...
@@ -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