Jesse Gross d875e99e46 runner.go: Propagate panics back to the user. 5 mēneši atpakaļ
..
README.md 96efd9052f Re-introduce the `llama` package (#5034) 6 mēneši atpakaļ
cache.go 65973ceb64 runner.go: Make KV entry accounting more robust 5 mēneši atpakaļ
cache_test.go c826e57475 runner.go: Better abstract vision model integration 6 mēneši atpakaļ
image.go c2e8cbaa14 runner.go: Check for zero length images 5 mēneši atpakaļ
image_test.go c826e57475 runner.go: Better abstract vision model integration 6 mēneši atpakaļ
requirements.go 96efd9052f Re-introduce the `llama` package (#5034) 6 mēneši atpakaļ
runner.go d875e99e46 runner.go: Propagate panics back to the user. 5 mēneši atpakaļ
stop.go 0077e22d52 runner.go: Handle truncation of tokens for stop sequences 6 mēneši atpakaļ
stop_test.go 0077e22d52 runner.go: Handle truncation of tokens for stop sequences 6 mēneši atpakaļ

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/embeddings