How to Estimate tokens/sec on Your Hardware: The VRAM Bandwidth Formula
Pyrolistical · reddit · 2026-09-05
A Reddit user shares a practical method for estimating local LLM decoding speed. Key insight: the decoding bottleneck is memory bandwidth, not compute — every generated token requires reading all model weights plus the KV cache from VRAM.
Basic formula (dense models): TG/s = VRAM GB/s ÷ model weights GB
Worked example: Qwen3.8 27B Q4KXL weighs 16.8 GB (excluding MTP layer and input embedding table); on an AMD Radeon AI PRO R9700 (637 GB/s), the theoretical max is 637/16.8 ≈ 38 TG/s. The author measures 29 TG/s with llama.cpp — 76% of ideal.
Full formula with KV cache: TG/s = VRAM GB/s ÷ (weights GB + KV cache GB/token × context length). Qwen3.8 27B's BF16 KV cache costs 64 KB per token. Rearranged, this yields a curve of TG/s-per-GB/s vs context size. For a 5090 (1.8 TB/s): 106 TG/s max at short context, dropping to 53 TG/s at 256k context.
Caveats: assumes everything fits in VRAM; simplified formula is dense-only; speculative decoding stacks on top; these are theoretical ceilings — real-world numbers are lower.
Related event: Memory Bandwidth Caps LLM Decoding: A Simple Token/s Formula(2 posts)→
More from Infra
- A Reddit user on a 5070 Ti (16GB VRAM, 32GB RAM) runs Qwen3.8 27B ud-q2-k-xl at 131k context with 50-60 tps. With the new Qwen4 35B A3B MoE, they're stuck between 60 tps at 2-bit and 40 tps at 4-bit, and feel Qwen4 needs more guidance for the same tasks, making perceived speed slower. Unclear if it's an optimization issue; they haven't tried Basalt yet. — CrowKing63 · 2026-12-05
- A Reddit user shares a hands-on session on M1 Ultra 64GB running unsloth's Qwen4-35B-A3B-GGUF UD-Q4_K_XL via latest llama.cpp: **Speed** - Prompt processing: starts ~875 tps, settles ~685 tps on a 144K prompt - Decode: 35-50 tps at 300K+ context, ~80 tps at low context - Low TTFT even at high context; performance decay with growing context is among the gentlest they've seen **Quality** - Mixed vs Qwen3.8 27B: each catches issues the other misses - Usable on a moderately complex project, though needing slightly more guidance than 27B **Takeaway**: first time using 250K+ context efficiently on this class of hardware with no perceived quality drop — a real productivity jump for local LLM users. — TechnoRhythmic · 2026-12-05
- Retired e-waste, not gigawatt clusters, may be what democratizes AI — Emergency-Quiet3210 · 2026-12-05
- Intel releases MXFP4 and MXFP8 quantized versions of Qwen4-35B-A3B — HaihaoShen · 2026-12-05
- tinyfool essay: compute export, not chips, will define the 20-year US-China AI race — tinyfool · 2026-12-05
- Google Cloud could surpass Search within two years, industry observer notes — matt_slotnick · 2026-12-05