Skip to content
/
Suscribirse Subscribe

Detrás del telón hay sistemas, no magia. Arquitectura de software, IA y computación de bajo nivel para las trincheras de producción.

Behind the curtain there are systems, not magic. Software architecture, AI, and systems engineering from the production trenches.

🇪🇸 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.

Active Weight Footprint 4.5 GB
Per-User Decode Speed 156.8 tok/s
Estimated Prefill TTFT 0.19 s
Cluster Throughput & Cost / 1M Out 157 tok/s ($0.62/1M)
Calculating Roofline ceiling...

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

Core Inference Equations:
• 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.

Suscribirse Subscribe