|
6 meses atrás | |
---|---|---|
.. | ||
README.md | 96efd9052f Re-introduce the `llama` package (#5034) | 6 meses atrás |
cache.go | 96efd9052f Re-introduce the `llama` package (#5034) | 6 meses atrás |
cache_test.go | 96efd9052f Re-introduce the `llama` package (#5034) | 6 meses atrás |
requirements.go | 96efd9052f Re-introduce the `llama` package (#5034) | 6 meses atrás |
runner.go | 03e40efa51 runner.go: Merge partial unicode characters before sending | 6 meses atrás |
stop.go | 0077e22d52 runner.go: Handle truncation of tokens for stop sequences | 6 meses atrás |
stop_test.go | 0077e22d52 runner.go: Handle truncation of tokens for stop sequences | 6 meses atrás |
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>
curl -X POST -H "Content-Type: application/json" -d '{"prompt": "hi"}' http://localhost:8080/completion
curl -X POST -H "Content-Type: application/json" -d '{"prompt": "turn me into an embedding"}' http://localhost:8080/embeddings