OpenInfer’s Qwen3-4B speculative decoding boosts ShareGPT throughput to 1,288 token/s
青稞AI · wechat · 2026-07-23
This long article explains speculative decoding through the lens of OpenInfer’s implementation on Qwen3-4B.
- It shows how speculative decoding can raise throughput on a single RTX 5090, with ShareGPT tests reported at 170 → 381 token/s for single-stream and 576 → 1288 token/s at concurrency 4, while keeping outputs lossless.
- The article breaks down why decode is memory-bandwidth bound, why one forward pass normally emits only one token, and how low-entropy spans make multi-token drafting feasible.
- It then explains greedy verification, why causal masking preserves exactness, and how sampling complicates the notion of being “lossless.”
- Finally, it discusses speculative sampling and the beginnings of draft-model training, including EAGLE-style approaches.
More from Infra
- SF Compute founder: buying compute is 'an absolutely awful experience' right now — IgorCarron · 2026-09-11
- SmolVM open-sources persistent computer infrastructure for agents that outlive chat sessions — aniketmaurya · 2026-09-11
- PyTorch Day Korea 2026 launches first offline conf, CFP closes Sept 13 — PyTorch · 2026-09-11
- Local LLM server dilemma: 4x CMP-170HX (price up 53% in 20 days) vs Mac Studio M5 Ultra — rumboll · 2026-09-11
- llama.cpp lands Flash Attention tuning for RDNA4, big prefill gains on AMD — pmttyji · 2026-09-11
- Your p99 latency benchmark may be lying: a deep dive into coordinated omission — Franc0Fernand0 · 2026-09-11