llamaperf

Qwen3 4B

on NVIDIA L4 · llama.cpp

NVIDIA hardware
Nov 22, 2026
Throughput
85.0 t/s gen · 5288.0 tokens/s prompt processing (prefill)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.
Quant
Q4_K_M (GGUF)
VRAM reported
24 GB

Summary

User benchmarks a 4-bit phi-lattice v2 weight format against llama.cpp Q4_K_M on Qwen3-4B-Instruct-2507, reporting 85.02 tok/s decode (tg128) and 5,288 tok/s prefill (pp512) for Q4_K_M on a single 24 GB NVIDIA L4. Setup is llama.cpp llama-bench with Q4_K_M at 2,990 MiB VRAM; the author's own PyTorch/Triton loaders reach 23.76 tok/s (unrolled bf16), 16.2 tok/s (Triton LUT-GEMM) and 1.65 tok/s (eager low_vram_4bit), with prefill within 7%. Quality results are accuracy-only: v2-gecko ties Q4_K_M on MMLU, GSM8K, HellaSwag and IFEval, and a two-stream residual reaches BF16 parity on Gemma-3-270M and EmbeddingGemma-2. Qwen3.6-35B-A3B packs to 18.98 GiB resident on the same L4. No GGUF/llama.cpp integration exists yet.

Compare this run

Medians of plain runs: one device, one request, no speculative decoding, the whole model in the device's memory. The report above is one setup, so read it beside them and not as one of them.

Qwen3 4B at 4-bit by hardware

Bars are medians on one scale, 0 to 186.0 tokens/s. Each dot is one run and opens its report. Press ▶ to watch text arrive at a row's speed.

Models most run on the NVIDIA L4

Bars are medians on one scale, 0 to 85.0 tokens/s. Press ▶ to watch text arrive at a row's speed.

Everything reported on the NVIDIA L4 →Every Qwen3 report →Estimate Qwen3 on this card →