Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
skip os.removeAll() if PID does not exist
Josh Yan23e899f32d9f
diff --git a/gpu/assets.go b/gpu/assets.goindex f2adcf3e3..fdb3dd81d 100644--- a/gpu/assets.go+++ b/gpu/assets.go@@ -87,6 +87,8 @@ func cleanupTmpDirs() {}} else {slog.Debug("failed to open ollama.pid", "path", d, "error", err)+ // No pid, ignore this tmpdir+ continue}err = os.RemoveAll(d)if err != nil {