|
il y a 5 mois | |
---|---|---|
.. | ||
README.md | 96efd9052f Re-introduce the `llama` package (#5034) | il y a 6 mois |
cache.go | 2cd11ae365 runner.go: Add unit tests for context shifting | il y a 5 mois |
cache_test.go | 2cd11ae365 runner.go: Add unit tests for context shifting | il y a 5 mois |
image.go | c2e8cbaa14 runner.go: Check for zero length images | il y a 5 mois |
image_test.go | c826e57475 runner.go: Better abstract vision model integration | il y a 6 mois |
requirements.go | 96efd9052f Re-introduce the `llama` package (#5034) | il y a 6 mois |
runner.go | e3936d4fb3 Support Multiple LoRa Adapters (#7667) | il y a 5 mois |
stop.go | 0077e22d52 runner.go: Handle truncation of tokens for stop sequences | il y a 6 mois |
stop_test.go | 0077e22d52 runner.go: Handle truncation of tokens for stop sequences | il y a 6 mois |
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