mirror of
https://github.com/ollama/ollama.git
synced 2025-08-26 15:01:32 +02:00
use abspath to model
This commit is contained in:
@@ -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():
|
||||
|
Reference in New Issue
Block a user