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
40dc9310
"git@developer.sourcefind.cn:OpenDAS/mmcv.git" did not exist on "10c8b9e78b0abcd627c24b6bdb82c4b4cbec6d09"
Commit
40dc9310
authored
Jul 06, 2023
by
Jeffrey Morgan
Browse files
add advanced usage to readme
parent
06376322
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
README.md
README.md
+23
-3
No files found.
README.md
View file @
40dc9310
...
@@ -61,25 +61,39 @@ ollama run replit "Give me react code to render a button"
...
@@ -61,25 +61,39 @@ ollama run replit "Give me react code to render a button"
Venture into the unknown.
Venture into the unknown.
```
```
ollama run storyteller "Once upon a time"
ollama run nous-hermes "Once upon a time"
```
## Advanced usage
### Run a local model
```
ollama run ~/Downloads/vicuna-7b-v1.3.ggmlv3.q4_1.bin
```
```
## Building
## Building
```
```
make
make
```
```
To run it start the server:
To run it start the server:
```
```
./ollama server &
./ollama server &
```
```
Finally, run a model!
Finally, run a model!
```
```
./ollama run ~/Downloads/vicuna-7b-v1.3.ggmlv3.q4_1.bin
./ollama run ~/Downloads/vicuna-7b-v1.3.ggmlv3.q4_1.bin
```
```
## API Reference
## API Reference
...
@@ -89,7 +103,13 @@ Finally, run a model!
...
@@ -89,7 +103,13 @@ Finally, run a model!
Complete a prompt
Complete a prompt
```
```
curl --unix-socket ~/.ollama/ollama.sock http://localhost/api/generate \
curl --unix-socket ~/.ollama/ollama.sock http://localhost/api/generate \
-X POST \
-X POST \
-d '{"model": "/path/to/model", "prompt": "Once upon a time", "stream": true}'
-d '{"model": "/path/to/model", "prompt": "Once upon a time", "stream": true}'
```
```
```
```
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