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
948114e3
Commit
948114e3
authored
Apr 28, 2024
by
Mark Ward
Browse files
fix sched to wait for the runner to terminate to ensure following vram check will be more accurate
parent
a3e60d90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
llm/server.go
llm/server.go
+4
-1
No files found.
llm/server.go
View file @
948114e3
...
...
@@ -899,7 +899,10 @@ func (s *llmServer) Detokenize(ctx context.Context, tokens []int) (string, error
func
(
s
*
llmServer
)
Close
()
error
{
if
s
.
cmd
!=
nil
{
slog
.
Debug
(
"stopping llama server"
)
return
s
.
cmd
.
Process
.
Kill
()
if
err
:=
s
.
cmd
.
Process
.
Kill
();
err
!=
nil
{
return
err
}
return
s
.
cmd
.
Wait
()
}
return
nil
...
...
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