ollama/runner
Grace Guo 5584bf1e19 cleanup + add tokenizer hash 2025-12-17 15:34:31 -08:00
..
common server: add logprobs and top_logprobs support to Ollama's API (#12899) 2025-11-11 08:49:50 -08:00
llamarunner flash attn: add auto mode for llama engine (#13052) 2025-12-12 13:27:19 -08:00
ollamarunner cleanup + add tokenizer hash 2025-12-17 15:34:31 -08:00
README.md Runner for Ollama engine 2025-02-13 17:09:26 -08:00
runner.go Runner for Ollama engine 2025-02-13 17:09:26 -08:00

README.md

runner

Note: this is a work in progress

A minimial runner for loading a model and running inference via a http web server.

./runner -model <model binary>

Completion

curl -X POST -H "Content-Type: application/json" -d '{"prompt": "hi"}' http://localhost:8080/completion

Embeddings

curl -X POST -H "Content-Type: application/json" -d '{"prompt": "turn me into an embedding"}' http://localhost:8080/embedding