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
2. Target GPU / Mac Silicon
VRAM Allocation vs. Hardware Capacity
Decode Arithmetic Intensity Roofline
GPU & Apple Silicon Ridge Point Reference Table
| Hardware | Memory / GPU | Bandwidth | BF16 Peak | FP8 Peak | BF16 Ridge | FP8 Ridge |
|---|---|---|---|---|---|---|
| RTX 3090 24 GiB | 23.9 GiB (24 GiB nom.) | 936 GB/s | 71 TF | 71 TF | 76 FLOPs/B | 76 FLOPs/B |
| RTX 4090 24 GiB | 23.9 GiB (24 GiB nom.) | 1,008 GB/s | 330 TF | 660 TF | 327 FLOPs/B | 655 FLOPs/B |
| RTX 5090 32 GiB | 31.8 GiB (32 GiB nom.) | 1,792 GB/s | 419 TF | 838 TF | 234 FLOPs/B | 468 FLOPs/B |
| L40S 48 GiB | 45.0 GiB (48 GiB nom.) | 864 GB/s | 362 TF | 733 TF | 419 FLOPs/B | 848 FLOPs/B |
| A100 80 GiB | 79.2 GiB (80 GiB nom.) | 2,039 GB/s | 312 TF | 312 TF | 153 FLOPs/B | 153 FLOPs/B |
| H100 80 GiB | 79.6 GiB (80 GiB nom.) | 3,350 GB/s | 989 TF | 1979 TF | 295 FLOPs/B | 591 FLOPs/B |
| H200 141 GiB | 140.4 GiB (141 GiB nom.) | 4,800 GB/s | 989 TF | 1979 TF | 206 FLOPs/B | 412 FLOPs/B |
| B200 192 GiB | 180.0 GiB (192 GiB nom.) | 8,000 GB/s | 2250 TF | 4500 TF | 281 FLOPs/B | 563 FLOPs/B |
| M4 Pro 48 GiB | 36.0 GiB (48 GiB wired) | 273 GB/s | 18 TF | 18 TF | 66 FLOPs/B | 66 FLOPs/B |
| M4 Max 128 GiB | 96.0 GiB (128 GiB wired) | 546 GB/s | 36 TF | 36 TF | 66 FLOPs/B | 66 FLOPs/B |
| M3 Ultra 256 GiB | 192.0 GiB (256 GiB wired) | 819 GB/s | 54 TF | 54 TF | 66 FLOPs/B | 66 FLOPs/B |
| M3 Ultra 512 GiB | 384.0 GiB (512 GiB wired) | 819 GB/s | 54 TF | 54 TF | 66 FLOPs/B | 66 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.