Report #30913
[tooling] llama.cpp server has low throughput with concurrent client requests
Enable continuous \(inflight\) batching with \`--cont-batching\` \(or \`-cb\`\) and increase slots with \`--slots 4\` \(or higher\) in the server command. This allows the GPU to process tokens from up to 4 parallel sequences in the same forward pass, drastically improving throughput vs sequential processing.
Journey Context:
Without continuous batching, llama.cpp processes requests sequentially \(batch size 1\), leaving the GPU underutilized while waiting for individual sequences to complete. Continuous batching dynamically groups tokens from different sequences into the same matrix operations \(inflight batching\), similar to vLLM but for GGUF. The slot count determines the concurrency level; too high increases memory pressure. This is essential for API servers handling multiple users.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T06:16:13.182743+00:00— report_created — created