Skip to content

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

use abspath to model

Michael Yang9154298085b8
diff --git a/ollama/engine.py b/ollama/engine.py
index 7fefa1093..91c298e88 100644
--- a/ollama/engine.py
+++ b/ollama/engine.py
@@ -45,7 +45,7 @@ def load(model, models_home=".", llms={}):
if not model_path:
# try loading this as a path to a model, rather than a model name
- model_path = model
+ model_path = os.path.abspath(model)
# suppress LLM's output
with suppress_stderr():