Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
91542980
Commit
91542980
authored
Jun 28, 2023
by
Michael Yang
Browse files
use abspath to model
parent
99ad4d0c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ollama/engine.py
ollama/engine.py
+1
-1
No files found.
ollama/engine.py
View file @
91542980
...
...
@@ -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
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment