瀏覽代碼

add advanced usage to readme

Jeffrey Morgan 1 年之前
父節點
當前提交
40dc9310bc
共有 1 個文件被更改,包括 23 次插入3 次删除
  1. 23 3
      README.md

+ 23 - 3
README.md

@@ -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!
 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 \
-    -d '{"model": "/path/to/model", "prompt": "Once upon a time", "stream": true}'
+ -X POST \
+ -d '{"model": "/path/to/model", "prompt": "Once upon a time", "stream": true}'
+
+```
+
+```
+
 ```
 ```