Signed-off-by: Guan Luo <gluo@nvidia.com> Signed-off-by: GuanLuo <41310872+GuanLuo@users.noreply.github.com> Co-authored-by: Guan Luo <gluo@nvidia.com> Co-authored-by: GuanLuo <41310872+GuanLuo@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| src/dynamo/llama_cpp | ||
| README.md | ||
| requirements.gpu.txt | ||
README.md
llama.cpp engine for Dynamo
Usage:
# Install ai-dynamo llama.cpp backend (CPU Mode)
pip install "ai-dynamo[llama_cpp]"
# [Optional] To build llama.cpp for CUDA (needs a recent pip)
pip install -r --force-reinstall requirements.gpu.txt
python -m dynamo.llama_cpp --model-path /data/models/Qwen3-0.6B-Q8_0.gguf [args]
Request Migration
You can enable request migration to handle worker failures gracefully. Use the --migration-limit flag to specify how many times a request can be migrated to another worker:
python3 -m dynamo.llama_cpp ... --migration-limit=3
This allows a request to be migrated up to 3 times before failing. See the Request Migration Architecture documentation for details on how this works.