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
orangecat
ollama
Commits
e4bdacb1
"...resnet50_tensorflow.git" did not exist on "e91c41c23a2cb27e645941c28a9fa0bfd9c69905"
Commit
e4bdacb1
authored
Jun 29, 2023
by
Bruce MacDonald
Browse files
create models home if it does not exist
parent
28b47e60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
ollama/cmd/cli.py
ollama/cmd/cli.py
+5
-0
No files found.
ollama/cmd/cli.py
View file @
e4bdacb1
...
...
@@ -11,6 +11,11 @@ def main():
parser
=
ArgumentParser
()
parser
.
add_argument
(
"--models-home"
,
default
=
Path
.
home
()
/
".ollama"
/
"models"
)
# create models home if it doesn't exist
models_home
=
parser
.
parse_known_args
()[
0
].
models_home
if
not
models_home
.
exists
():
os
.
makedirs
(
models_home
)
subparsers
=
parser
.
add_subparsers
()
server
.
set_parser
(
subparsers
.
add_parser
(
"serve"
))
...
...
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