From 40dc9310bc4196c486cd3effdc5be98f018a37d6 Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Thu, 6 Jul 2023 16:21:01 -0400 Subject: [PATCH] add advanced usage to readme --- README.md | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 19a35000..97e93a9b 100644 --- a/README.md +++ b/README.md @@ -61,25 +61,39 @@ ollama run replit "Give me react code to render a button" 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 ``` + make + ``` To run it start the server: ``` + ./ollama server & + ``` Finally, run a model! ``` + ./ollama run ~/Downloads/vicuna-7b-v1.3.ggmlv3.q4_1.bin + ``` ## API Reference @@ -89,7 +103,13 @@ Finally, run a model! Complete a prompt ``` + 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}' + +``` + +``` + ```