ollama/llama/runner
Ubaldo Porcheddu 3919f4ba3d
llama: fix runner api example url in README.md (#8307)
2025-01-04 15:45:16 -08:00
..
README.md llama: fix runner api example url in README.md (#8307) 2025-01-04 15:45:16 -08:00
cache.go build: Make target improvements (#7499) 2024-12-10 09:47:19 -08:00
cache_test.go build: Make target improvements (#7499) 2024-12-10 09:47:19 -08:00
image.go build: Make target improvements (#7499) 2024-12-10 09:47:19 -08:00
image_test.go build: Make target improvements (#7499) 2024-12-10 09:47:19 -08:00
runner.go llama: Ensure KV cache is fully defragmented. 2024-12-17 14:01:19 -08:00
stop.go build: Make target improvements (#7499) 2024-12-10 09:47:19 -08:00
stop_test.go build: Make target improvements (#7499) 2024-12-10 09:47:19 -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