Skip to content

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

runner: fix swallowed error in allocModel graph reservation

easonysliu810d4f9c2231
diff --git a/runner/ollamarunner/runner.go b/runner/ollamarunner/runner.go
index ffaf8ec5d..49e4a5ed6 100644
--- a/runner/ollamarunner/runner.go
+++ b/runner/ollamarunner/runner.go
@@ -1231,7 +1231,7 @@ func (s *Server) allocModel(
err = s.reserveWorstCaseGraph(true)
if err != nil {
- return nil
+ return err
}
return s.reserveWorstCaseGraph(false)