Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
create the blobs directory correctly (#508)
Patrick Devine45ac07cd025f
diff --git a/server/modelpath.go b/server/modelpath.goindex 585047c76..c6798a02b 100644--- a/server/modelpath.go+++ b/server/modelpath.go@@ -133,7 +133,12 @@ func GetBlobsPath(digest string) (string, error) {}path := filepath.Join(home, ".ollama", "models", "blobs", digest)- if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil {+ dirPath := filepath.Dir(path)+ if digest == "" {+ dirPath = path+ }++ if err := os.MkdirAll(dirPath, 0o755); err != nil {return "", err}