|
1 tahun lalu | |
---|---|---|
api | 1 tahun lalu | |
app | 1 tahun lalu | |
cmd | 1 tahun lalu | |
docs | 1 tahun lalu | |
examples | 1 tahun lalu | |
llama | 1 tahun lalu | |
parser | 1 tahun lalu | |
scripts | 1 tahun lalu | |
server | 1 tahun lalu | |
web | 1 tahun lalu | |
.dockerignore | 1 tahun lalu | |
.gitignore | 1 tahun lalu | |
.prettierrc.json | 1 tahun lalu | |
Dockerfile | 1 tahun lalu | |
LICENSE | 1 tahun lalu | |
README.md | 1 tahun lalu | |
ggml-metal.metal | 1 tahun lalu | |
go.mod | 1 tahun lalu | |
go.sum | 1 tahun lalu | |
main.go | 1 tahun lalu | |
models.json | 1 tahun lalu |
Run large language models with llama.cpp
.
Note: certain models that can be run with Ollama are intended for research and/or non-commercial use only.
You can also build the binary from source.
Run a fast and simple model.
ollama run orca
Have a conversation.
ollama run vicuna "Why is the sky blue?"
Get a helping hand.
ollama run orca "Write an email to my boss."
Send the contents of a document and ask questions about it.
ollama run nous-hermes "$(cat input.txt)", please summarize this story
Venture into the unknown.
ollama run nous-hermes "Once upon a time"
ollama run ~/Downloads/vicuna-7b-v1.3.ggmlv3.q4_1.bin
go build .
To run it start the server:
./ollama server &
Finally, run a model!
./ollama run ~/Downloads/vicuna-7b-v1.3.ggmlv3.q4_1.bin
POST /api/pull
Download a model
curl -X POST http://localhost:11343/api/pull -d '{"model": "orca"}'
POST /api/generate
Complete a prompt
curl -X POST http://localhost:11434/api/generate -d '{"model": "orca", "prompt": "hello!"}'