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
5d99629c
Commit
5d99629c
authored
Jun 27, 2023
by
Jeffrey Morgan
Browse files
small `README.md` tweaks
parent
ad4ffdf7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
README.md
README.md
+8
-5
No files found.
README.md
View file @
5d99629c
# Ollama
# Ollama
-
Run models
, fast
-
Run models
easily
-
Download, manage and import models
-
Download, manage and import models
## Install
## Install
...
@@ -23,7 +23,7 @@ ollama.generate(model_name, "hi")
...
@@ -23,7 +23,7 @@ ollama.generate(model_name, "hi")
### `ollama.load`
### `ollama.load`
Load a model f
rom a path or a docker image
Load a model f
or generation
```
python
```
python
ollama
.
load
(
"model name"
)
ollama
.
load
(
"model name"
)
...
@@ -39,7 +39,7 @@ ollama.generate(model, "hi")
...
@@ -39,7 +39,7 @@ ollama.generate(model, "hi")
### `ollama.models`
### `ollama.models`
List models
List
available local
models
```
```
models = ollama.models()
models = ollama.models()
...
@@ -53,7 +53,7 @@ Serve the ollama http server
...
@@ -53,7 +53,7 @@ Serve the ollama http server
### `ollama.pull`
### `ollama.pull`
Examples:
Download a model
```
python
```
python
ollama
.
pull
(
"huggingface.co/thebloke/llama-7b-ggml"
)
ollama
.
pull
(
"huggingface.co/thebloke/llama-7b-ggml"
)
...
@@ -61,7 +61,7 @@ ollama.pull("huggingface.co/thebloke/llama-7b-ggml")
...
@@ -61,7 +61,7 @@ ollama.pull("huggingface.co/thebloke/llama-7b-ggml")
### `ollama.import`
### `ollama.import`
Import a
n existing model into the model stor
e
Import a
model from a fil
e
```
python
```
python
ollama
.
import
(
"./path/to/model"
)
ollama
.
import
(
"./path/to/model"
)
...
@@ -77,6 +77,9 @@ ollama.search("llama-7b")
...
@@ -77,6 +77,9 @@ ollama.search("llama-7b")
## Future CLI
## Future CLI
In the future, there will be an easy CLI for testing out models
```
```
ollama run huggingface.co/thebloke/llama-7b-ggml
ollama run huggingface.co/thebloke/llama-7b-ggml
> Downloading [================> ] 66.67% (2/3) 30.2MB/s
```
```
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