Skip to content
E
Educatum
Systems Performance Tool

LLM Decode Roofline & Token Throughput Calculator

Plot exact autoregressive decode Arithmetic Intensity against HBM/NVLink/Unified-Memory limits across MoE (DeepSeek-V3/R1, Llama-4, Qwen3-235B) and Dense architectures—and see when increasing batch size hits the hardware Ridge Point.

1. Model & Workload

MLA · 671B/37B MoE

671B total / 37B active MoE · MLA latent dim 512 + 64 RoPE

Execution Mode
Weight Precision (Datacenter & GGUF)
KV:
32,768 tok
16 reqs

2. Target GPU / Mac Silicon

1123.2 GiB Usable · 31.49 TB/s eff.
GPU Count (Tensor Parallel)
FITS IN VRAM (+462.2 GiB headroom)
661.0 / 1123.2 GiB usable (59%)

Decode is HBM-bandwidth bound (21.4 vs 412 FLOPs/B ridge): increasing batch size improves cluster tok/s nearly linearly.

Total VRAM
661.0 GiB
Weights 624.9 GiB (FP8)
KV-Cache
17.2 GiB
56.9× vs MHA
Decode / User
~80.0 tok/s
HBM Bound
Cluster Output
~1280 tok/s
AI 21.4 FLOP/B

VRAM Allocation vs. Hardware Capacity

Binary GiB (1 GiB = 2³⁰ B) · Usable VRAM excludes ECC/OS & per-GPU CUDA/NCCL buffers

Dashed line = Usable VRAM
Used: 661.0 GiB · Usable: 1123.2 GiB (59%) 1123.2 GiB Usable Weights: 624.9 GiBKV-Cache: 17.2 GiBAct + CUDA: 18.9 GiB educatum.com/kv-cache

Decode Arithmetic Intensity Roofline

AI 21.4 vs Ridge 412 FLOPs/B
1416642561024 Ridge: 412 FLOPs/B · 12982 TFLOPS Memory-Bandwidth Bound (21.4 FLOP/B) Arithmetic Intensity (FLOPs / Byte, log scale) educatum.com/kv-cache
Canonical URL stays clean; click Copy Shareable Link to share your exact slider config.
DeepSeek-V3 / R1 (671B MoE + MLA) · KV_tok = 61L × (512 + 64) × 1B = 34.3 KiB/tok (56.9× vs MHA)
Decode Step Read: 34.5 GiB active weights + 17.16 GiB KV-cache → AI = 21.36 FLOPs/Byte (Memory-Bandwidth Bound; BW in decimal GB/s)

GPU & Apple Silicon Ridge Point Reference Table

Ridge Point=Peak Compute (FLOP/s)Memory Bandwidth (Byte/s)=Critical AI (FLOPs/Byte)\text{Ridge Point} = \frac{\text{Peak Compute (FLOP/s)}}{\text{Memory Bandwidth (Byte/s)}} = \text{Critical AI (FLOPs/Byte)}
HardwareMemory / GPUBandwidthBF16 PeakFP8 PeakBF16 RidgeFP8 Ridge
RTX 3090 24 GiB23.9 GiB (24 GiB nom.)936 GB/s71 TF71 TF76 FLOPs/B76 FLOPs/B
RTX 4090 24 GiB23.9 GiB (24 GiB nom.)1,008 GB/s330 TF660 TF327 FLOPs/B655 FLOPs/B
RTX 5090 32 GiB31.8 GiB (32 GiB nom.)1,792 GB/s419 TF838 TF234 FLOPs/B468 FLOPs/B
L40S 48 GiB45.0 GiB (48 GiB nom.)864 GB/s362 TF733 TF419 FLOPs/B848 FLOPs/B
A100 80 GiB79.2 GiB (80 GiB nom.)2,039 GB/s312 TF312 TF153 FLOPs/B153 FLOPs/B
H100 80 GiB79.6 GiB (80 GiB nom.)3,350 GB/s989 TF1979 TF295 FLOPs/B591 FLOPs/B
H200 141 GiB140.4 GiB (141 GiB nom.)4,800 GB/s989 TF1979 TF206 FLOPs/B412 FLOPs/B
B200 192 GiB180.0 GiB (192 GiB nom.)8,000 GB/s2250 TF4500 TF281 FLOPs/B563 FLOPs/B
M4 Pro 48 GiB36.0 GiB (48 GiB wired)273 GB/s18 TF18 TF66 FLOPs/B66 FLOPs/B
M4 Max 128 GiB96.0 GiB (128 GiB wired)546 GB/s36 TF36 TF66 FLOPs/B66 FLOPs/B
M3 Ultra 256 GiB192.0 GiB (256 GiB wired)819 GB/s54 TF54 TF66 FLOPs/B66 FLOPs/B
M3 Ultra 512 GiB384.0 GiB (512 GiB wired)819 GB/s54 TF54 TF66 FLOPs/B66 FLOPs/B

Frequently Asked Questions

What is the GPU Ridge Point and why does it determine LLM decode speed?

The Ridge Point equals Peak Tensor Core FLOP/s divided by HBM memory bandwidth (e.g., ~295 FLOPs/Byte on H100 SXM BF16, or ~591 FLOPs/Byte in FP8). Whenever decode Arithmetic Intensity sits below the Ridge Point, your cluster throughput is strictly limited by memory bandwidth—not FLOPs.

Why do MoE models (DeepSeek-V3 37B active, Llama-4 17B active) generate tokens faster than Dense 70B models?

While all 671B or 400B expert parameters stay resident in VRAM, generating one token only reads the active expert weights (37B or 17B) plus KV-cache from HBM. Fewer bytes streamed per decode step directly multiplies tokens per second.

How does increasing batch size shift decode along the Roofline curve?

Every extra concurrent request shares the same model-weight read from HBM, multiplying total FLOPs while adding only KV-cache bytes. Increasing batch size pushes Arithmetic Intensity rightwards toward the Ridge Point—raising cluster throughput nearly linearly until KV-cache bandwidth or compute saturates.

Try keywords like RoPE, FlashAttention, DPO, or Blind 75.