llamaperf

Qwen3 4B

on NVIDIA L4 · llama.cpp

Tone: mixedNVIDIA hardware
Nov 23, 2026
Throughput
23.8 t/s gen · 4920.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
phi-lattice v2-gecko
VRAM reported
24 GB

Summary

User benchmarks a custom 4-bit phi-lattice v2 quantization of Qwen3-4B-Instruct-2507 on a single 24 GB NVIDIA L4, reaching 23.76 tok/s decode in PyTorch unrolled_bf16 mode and 4,920 tok/s prefill (pp512). Setup is a PyTorch/Triton loader with the v2-gecko block-64 calibrated format; native llama.cpp Q4_K_M on the same card reaches 85.02 tok/s decode and 5,288 tok/s prefill. The Triton LUT-GEMM kernel runs at about 16.2 tok/s and eager low_vram_4bit at 1.65 tok/s. User notes decode lags llama.cpp due to kernel and loader engineering, and that the 35B MoE Qwen3.6-35B-A3B packs to 18.98 GiB resident with 19.33 GiB peak on the same L4.

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 →