mirror of
https://github.com/ollama/ollama.git
synced 2025-03-26 17:51:48 +01:00
use abspath to model
This commit is contained in:
parent
99ad4d0c9c
commit
9154298085
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user