dynamo/components/backends/llama_cpp
Olga Andreeva 27fad26faf
refactor: Split ModelType to ModelInput for request and response type; ModelType for the supported workloads (#2714)
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>
2025-09-03 22:22:37 +00:00
..
src/dynamo/llama_cpp refactor: Split ModelType to ModelInput for request and response type; ModelType for the supported workloads (#2714) 2025-09-03 22:22:37 +00:00
README.md test: Request Migration Docs and E2E vLLM Tests (#2177) 2025-08-01 14:52:03 -07:00
requirements.gpu.txt feat: update python packaging for new dynamo UX (#2054) 2025-07-25 09:06:28 -04:00

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.