update docs for subprocess
This commit is contained in:
parent
f964aea9a2
commit
a82eb275ff
3 changed files with 13 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,3 +5,4 @@
|
||||||
.swp
|
.swp
|
||||||
dist
|
dist
|
||||||
ollama
|
ollama
|
||||||
|
ggml-metal.metal
|
||||||
|
|
1
.gitmodules
vendored
1
.gitmodules
vendored
|
@ -1,3 +1,4 @@
|
||||||
[submodule "llm/llama.cpp/ggml"]
|
[submodule "llm/llama.cpp/ggml"]
|
||||||
path = llm/llama.cpp/ggml
|
path = llm/llama.cpp/ggml
|
||||||
url = https://github.com/ggerganov/llama.cpp.git
|
url = https://github.com/ggerganov/llama.cpp.git
|
||||||
|
ignore = dirty
|
||||||
|
|
15
README.md
15
README.md
|
@ -127,19 +127,26 @@ Ollama bundles model weights, configuration, and data into a single package, def
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
You will also need a C/C++ compiler such as GCC for MacOS and Linux or Mingw-w64 GCC for Windows.
|
Install `cmake`:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
brew install cmake
|
||||||
|
```
|
||||||
|
|
||||||
|
Then generate dependencies and build:
|
||||||
|
|
||||||
|
```
|
||||||
|
go generate ./...
|
||||||
go build .
|
go build .
|
||||||
```
|
```
|
||||||
|
|
||||||
To run it start the server:
|
Next, start the server:
|
||||||
|
|
||||||
```
|
```
|
||||||
./ollama serve &
|
./ollama serve
|
||||||
```
|
```
|
||||||
|
|
||||||
Finally, run a model!
|
Finally, run a model in another shell:
|
||||||
|
|
||||||
```
|
```
|
||||||
./ollama run llama2
|
./ollama run llama2
|
||||||
|
|
Loading…
Reference in a new issue