ollama/runner
2026-03-01 19:16:07 -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 runner: add token history sampling parameters to ollama runner (#14537) 2026-03-01 19:16:07 -08:00
README.md Runner for Ollama engine 2025-02-13 17:09:26 -08:00
runner.go Add MLX runner with GLM4-MoE-Lite model support (#14185) 2026-02-10 14:57:57 -08:00

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