Real-time LLM Inference on Standard GPUs: 3k tokens/s per request
TL;DR Highlight
Redesigning the whole stack got a 2B model to 3,000 tok/s per request on 8×MI300X.
Who Should Read
LLM serving or agent developers whose coding agent's sequential loop is bottlenecked by single-request decode speed
Core Mechanics
- Agents care about per-request speed
- An agent loop (inspect, plan, edit, test) is sequential, so each step waits on the previous one.
- In the post's example, 50,000 tokens takes about eight minutes at 100 tok/s and under 20 seconds at 3,000 tok/s.
- Batch-1 decoding is memory-bandwidth bound
- Every token requires streaming all active weights from HBM (GPU memory).
- In FP16 the arithmetic intensity is about 1 FLOP/byte, so bandwidth runs out long before FLOPS.
- The theoretical ceiling is far higher
- For a 2B FP16 model the bandwidth-only bound is about 7,700 tok/s on 8×H200 and about 8,400 on 8×MI300X.
- Measured results are 3,000 tok/s on MI300X and 2,100 on H200 (FP16, no speculative decoding).
- Standard stacks lose microseconds everywhere
- At 3,000 tok/s the per-token budget is about 333µs.
- Kernel launch costs 4.5µs on MI300X per their measurement, so 10 kernels × 25 layers gives 1,125µs per token and caps speed near 890 tok/s.
- Kog co-designed engine, kernels, and model architecture
- Decoding runs as one persistent GPU program (monokernel), with sampling on the GPU.
- Their KCCL communication library gets AllReduce under 3µs versus about 8µs for vendor libraries.
- The demo is a small 2B model
- Laneformer 2B scores 50% on HumanEval versus 43.9% for Qwen2.5-Coder 1.5B and 52.4% for 3B.
- It uses a 4096 sequence length and no quantization or speculative decoding.
- Larger MoE support comes next, and the table numbers are theoretical upper bounds, not guaranteed speeds.
Community Reactions
- Commenters argued comparing a 2B model against frontier models that are far larger is unfair
- They want to see results on useful models, around 30B.
- Another said scaling to larger models will likely be harder than assumed.
- Commenters pushed back on the 'Standard GPUs' title
- Several said an 8×H200 server is not a standard GPU.
- One local-model user reported 40 tok/s on a 27B model with 16GB VRAM.
- One commenter who tried the demo got about 3,300 tok/s but poor answer quality
- The model repeated the same nonsense even after being told it was wrong.
- Many others found the raw speed impressive.
- Commenters asked whether MTP or block diffusion, which reduce batch-1 memory-boundness, would shrink these gains
- Decoding several tokens at once makes kernel launch overhead a smaller share of time.
- Others asked whether new models need hand-tuning and whether it scales with dynamic batching.
How to Apply
- Measure your agent loop's time split
- Today, take logs from one agent run and sum LLM generation time versus tool execution time.
- If generation dominates, per-request tok/s is your bottleneck.
- Compute your decode ceiling by hand
- Divide your model's active weight bytes by GPU memory bandwidth to get the theoretical upper bound.
- Compare it with your measured speed to see the gap.
- Track three metrics separately
- Put aggregate throughput, time to first token, and per-request decode speed on separate dashboard panels.
- For agent products, choose serving settings based on per-request decode speed.
- Profile kernel launch overhead
- For latency-critical batch-1 serving, count kernels per token with a profiler.
- Fuse the fusable sections first.
Try It
# Paste into Claude or ChatGPT (simplified prompt version of the post's calculation)
Compute the speed upper bound for batch-size-1 decoding.
Formula: tokens/s ≤ effective memory bandwidth / (β × active weight bytes + KV cache), assume β = 1.
- Model: {{model name}}
- Active parameters: {{e.g. 13B}}
- Precision: {{FP16/FP8/FP4}} (2/1/0.5 bytes per parameter)
- GPU and count: {{e.g. 8× H200}}
- Theoretical bandwidth per GPU: {{e.g. 4.8 TB/s}}, use 80% of theoretical as effective
Calculate step by step, show a table, and compare with my measured speed {{measured tok/s}} as a percentage.
Also state that KV cache and communication overhead are not included.Terminology
Related Papers
A Beginner's Guide to Local AI with Inkling, Qwen, and Unsloth
Install Unsloth Desktop, load a quantized Qwen model, and share a private ChatGPT-like AI on your home LAN.
Muru – AI-assisted Rust server for Python apps by mod_WSGI's creator
mod_wsgi's creator is building Muru, an AI-assisted Rust ASGI/WSGI server, documenting it in public
87% of the Anthropic power will come from gas and 11% from coal in 2028
Analysis of Anthropic's contracted data centers: 87% gas, 11% coal power in 2028
Anthropic’s Nasdaq debut
Anthropic listed on Nasdaq and closed its first day below its opening price.
OpenAI still has a WebRTC Problem
WebRTC drops late audio, hurting voice AI; MoQ retransmits and buffers instead
Gemini 4 Neon
Gemini 4 Neon cuts cost per task 32% versus Carbon, at $3 input and $15 output per million tokens
AI is killing All About Berlin
After Google AI Overviews, a Berlin guide site lost 70-75% of its traffic.
Not Everything Needs an LLM
PostHog used small decision models to skip 98.7% of expensive LLM calls