llama.cpp on the NVIDIA L4
On the NVIDIA L4, llama.cpp runs Qwen3 4B at 4-bit at a median 85.0 tokens per second for generation, from 1 plain run (context not stated).
Speed by model on the NVIDIA L4
Plain runs only: one device, one request, no speculative decoding, the whole model in memory. Each row is one model size at one bit class, with the other engines' plain runs of the same model on this card beside it. Context length and build still differ between runs, and each side shows its own.
| Model | llama.cpp | Other engines |
|---|---|---|
| Qwen3 4B 4-bit | 85.0 t/sone report, context not stated | no other engine reported |
| Qwen3.8 27B 4-bit | 14.6 t/sone report, context not stated | no other engine reported |
5 llama.cpp reports on the NVIDIA L4
Newest first. A run on several cards, with speculative decoding, with part of the model in system RAM or with batched requests says so, since each describes a different setup. Prompt processing is how fast the input is read, not how long you wait for the first word. How to measure time to first token.
- Qwen3 4B · phi-lattice v2-gecko23.8 t/s
- Qwen3 4B · Q4_K_M85.0 t/s
- Inkling 2 Mini · IQ4_NL35.0 t/s(part in system RAM)
- Qwen3.8 27B · Q4_K_M14.6 t/s
- Qwen3.8 27B · UD-Q4_K_XL33.0 t/s(speculative decoding)
Frequently asked
How fast is llama.cpp on the NVIDIA L4?
On the NVIDIA L4, llama.cpp runs Qwen3 4B at 4-bit at a median 85.0 tokens per second for generation, from 1 plain run (context not stated).