You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Matt Williams da7ddbb4dc
Merge pull request #95 from jmorganca/matt/examplemodelfiles
3 years ago
api basic distribution w/ push/pull (#78) 3 years ago
app improve the copy command experience 3 years ago
cmd add modelpaths (#96) 3 years ago
docs Some simple modelfile examples 3 years ago
examples Some simple modelfile examples 3 years ago
llama fix multibyte responses 3 years ago
parser convert commands to uppercase in parser 3 years ago
scripts build app in publish script 3 years ago
server add modelpaths (#96) 3 years ago
web web: disable signup button while submitting 3 years ago
.dockerignore update `Dockerfile` 3 years ago
.gitignore fix compilation issue in Dockerfile, remove from `README.md` until ready 3 years ago
.prettierrc.json move .prettierrc.json to root 3 years ago
Dockerfile fix compilation issue in Dockerfile, remove from `README.md` until ready 3 years ago
LICENSE `proto` -> `ollama` 3 years ago
README.md Add note to `README.md` about Apple Silicon support 3 years ago
ggml-metal.metal look for ggml-metal in the same directory as the binary 3 years ago
go.mod modelfile params 3 years ago
go.sum modelfile params 3 years ago
main.go continue conversation 3 years ago
models.json update vicuna model 3 years ago

README.md

ollama

Ollama

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.

Features

  • Download and run popular large language models
  • Switch between multiple models on the fly
  • Hardware acceleration where available (Metal, CUDA)
  • Fast inference server written in Go, powered by llama.cpp
  • REST API to use with your application (python, typescript SDKs coming soon)

Install

  • Download for macOS with Apple Silicon (Intel coming soon)
  • Download for Windows (coming soon)

You can also build the binary from source.

Quickstart

Run a fast and simple model.

ollama run orca

Example models

💬 Chat

Have a conversation.

ollama run vicuna "Why is the sky blue?"

🗺️ Instructions

Get a helping hand.

ollama run orca "Write an email to my boss."

🔎 Ask questions about documents

Send the contents of a document and ask questions about it.

ollama run nous-hermes "$(cat input.txt)", please summarize this story

📖 Storytelling

Venture into the unknown.

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

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

API Reference

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!"}'