llamaperf

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.

Modelllama.cppOther engines
Qwen3 4B 4-bit85.0 t/sone report, context not statedno other engine reported
Qwen3.8 27B 4-bit14.6 t/sone report, context not statedno 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.

Filter these reports on the homepage

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).