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
53c462e4
Unverified
Commit
53c462e4
authored
Jun 29, 2023
by
Michael Yang
Committed by
GitHub
Jun 29, 2023
Browse files
Merge pull request #24 from jmorganca/rm-add
remove add cmd
parents
8a267d48
f0b23b53
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
24 deletions
+0
-24
README.md
README.md
+0
-16
ollama/cmd/cli.py
ollama/cmd/cli.py
+0
-8
No files found.
README.md
View file @
53c462e4
...
...
@@ -55,22 +55,6 @@ List available local models
models
=
ollama
.
models
()
```
### `ollama.serve()`
Serve the ollama http server
```
ollama.serve()
```
### `ollama.add(filepath)`
Add a model by importing from a file
```
python
ollama
.
add
(
"./path/to/model"
)
```
### `ollama.load(model)`
Manually a model for generation
...
...
ollama/cmd/cli.py
View file @
53c462e4
...
...
@@ -29,10 +29,6 @@ def main():
generate_parser
.
add_argument
(
"prompt"
,
nargs
=
"?"
)
generate_parser
.
set_defaults
(
fn
=
generate
)
add_parser
=
subparsers
.
add_parser
(
"add"
)
add_parser
.
add_argument
(
"model"
)
add_parser
.
set_defaults
(
fn
=
add
)
pull_parser
=
subparsers
.
add_parser
(
"pull"
)
pull_parser
.
add_argument
(
"model"
)
pull_parser
.
set_defaults
(
fn
=
pull
)
...
...
@@ -115,10 +111,6 @@ def generate_batch(*args, **kwargs):
generate_oneshot
(
*
args
,
**
kwargs
)
def
add
(
model
,
models_home
):
os
.
rename
(
model
,
Path
(
models_home
)
/
Path
(
model
).
name
)
def
pull
(
*
args
,
**
kwargs
):
model
.
pull
(
*
args
,
**
kwargs
)
...
...
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