🇪🇸 Cambiar a versión en español: Calculadora de Velocidad de Inferencia LLM (Tokens/seg)
Calculate true autoregressive LLM decode speed (tokens/sec), prefill Time-to-First-Token (TTFT), and cost per 1M output tokens across consumer GPUs, Apple Silicon unified memory, and H100 nodes using the physics-grounded Roofline memory-bandwidth model.
Real-World Hardware Comparison (Roofline Model)
| Hardware / Memory Bus | Bandwidth | Per-User Decode | Aggregate Cluster Output | Cost / 1M Generated Tokens |
|---|
Roofline Memory-Bandwidth vs. Compute Formula
•
Active Weight GB = Params(B) × (BitsPerWeight / 8)•
Per-User Decode (tok/s) ≈ (Bandwidth_GB/s × 0.70) / (Weight_GB × (1 + 0.04 × (Batch - 1)))•
Prefill TTFT (s) ≈ (2 × Params × PromptTokens × Batch) / (TFLOPS_FP16 × 1000 × 0.55)
LLM Throughput & Memory Bandwidth FAQ
Why does a 70B model generate only ~6–15 tok/s on high-TFLOPS GPUs?
Single-batch autoregressive token decoding must stream virtually every model weight from VRAM once per generated token. That makes single-user output strictly memory-bandwidth bound rather than FLOPS bound.
How does continuous batching lower cost per 1M tokens?
Batching 8–16 concurrent requests in vLLM or TensorRT-LLM reuses a single weight-read pass across multiple streams simultaneously, driving cluster aggregate throughput up dramatically while hardware $/hr stays flat.
Canonical References: Roofline Performance Model · Memory Bandwidth Physics · Large Language Models Overview.
Client-side engineering estimates using empirical ~70% decode bus efficiency and ~55% prefill compute utilization; for sparse MoE models, enter active parameters per token.