Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

fix sched to wait for the runner to terminate to ensure following vram check will be more accurate

Mark Ward948114e3e332
diff --git a/llm/server.go b/llm/server.go
index 231100a01..c82c50998 100644
--- a/llm/server.go
+++ b/llm/server.go
@@ -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