From 9154298085b8631099be6cdcd9bcb6a32eef899f Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Wed, 28 Jun 2023 14:25:07 -0700 Subject: [PATCH] use abspath to model --- ollama/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ollama/engine.py b/ollama/engine.py index 7fefa109..91c298e8 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():