Pular para o conteúdo principal

Token Speed: Why AI Inference Suddenly Got 10-15× Faster

Intermediário

This week OpenAI previewed GPT-5.6 Sol, a frontier model served on Cerebras wafer-scale hardware at up to 750 output tokens per second — roughly 5–10× the 70–150 tokens/second per user that GPU-served frontier models typically deliver. Headlines called it magic. It isn't. It's the payoff of a bottleneck shift that's been building for two years, and almost nobody outside inference engineering understands the mechanism. This lesson is the clear version: what actually limits token speed, the specialized-hardware race that just broke the limit, the software tricks that multiply it further, and why fast tokens quietly change what AI products can be.

What you'll learn
  • Explain why LLM inference is limited by memory bandwidth, not raw compute — and what that means physically
  • Describe how Cerebras wafer-scale chips, Groq LPUs, and SambaNova RDUs each attack the memory wall
  • Name the three software multipliers — speculative decoding, quantization, batching — and the trade-off each one makes
  • Predict which products fast tokens transform first: agents, reasoning models, and voice
  • Benchmark inference speed correctly for your own workload: tokens/sec AND time-to-first-token, never just one

The bottleneck nobody expects: memory bandwidth, not compute

Here's the fact that reorganizes everything else: to generate a single token, the model must read essentially all of its (active) weights from memory. Not some of them — all of them, once per token.

A 70B-parameter model at 16-bit precision is about 140 GB of weights. Generate one token: stream 140 GB from memory to the compute units. Generate the next token: stream the same 140 GB again. The matrix math itself is almost trivial by comparison — modern chips have compute to spare. The pipe between memory and compute is what's saturated.

Do the arithmetic and the "slow AI" experience explains itself. An NVIDIA H100's HBM memory bandwidth is about 3.35 TB/s. Divide 3.35 TB/s by 140 GB per token and you get a hard ceiling of roughly 24 tokens per second for a single user on one GPU, before any other overhead. That is why chatbots type at reading speed: not because the chip can't multiply fast enough, but because it can't read its own brain fast enough. Inference engineers call this the memory wall, and both Cerebras and Groq describe it as the fundamental constraint of generative AI.

And it compounds: alongside the weights, each new token also reads the KV cache — the stored attention keys and values for every token already in the context. Long contexts make every subsequent token more expensive to produce.

Guided walkthrough1 of 4
  1. The whole prompt is processed in one parallel pass. This phase is compute-bound (lots of math, weights read once for many tokens at a time) and determines your time-to-first-token.

So the race to fast inference is really a race to move weight bytes faster. There are exactly two ways to win: build memory that's radically faster, or shrink the bytes you have to move. The hardware companies chose the first path. The software tricks (below) chose the second. The current speed explosion is both at once.

The hardware race: put the weights ON the chip

The fastest memory in any computer is SRAM — the memory on the same die as the compute. It's orders of magnitude faster than the HBM stacked next to a GPU, but tiny: megabytes, not gigabytes. The three specialized-inference companies all made the same audacious bet — make the on-chip memory big enough (or the chip count high enough) to hold the whole model in SRAM — and each engineered it differently.

Cerebras: one chip the size of a dinner plate

Cerebras builds the Wafer-Scale Engine (WSE-3): instead of dicing a silicon wafer into hundreds of small chips, the entire 300mm wafer is one chip — 46,225 mm², 4 trillion transistors, 900,000 cores, 44 GB of on-chip SRAM, and roughly 21 petabytes/second of memory bandwidth. Cerebras markets that as about 7,000× the memory bandwidth of an H100, and it's the whole trick: weights living in SRAM never cross a slow off-chip bus. Public results include Llama 3.1-405B at 969 tokens/second with a 240 ms time-to-first-token and Llama 3.1 70B at over 2,100 tokens/second.

The GPT-5.6 Sol news, decoded

That's the machinery under this week's announcement. OpenAI's GPT-5.6 Sol preview pairs a frontier model with Cerebras serving at up to 750 tokens/second — versus the ~70 tokens/second the same class of model manages per user on H100-class GPU serving, a 10× jump (~15× against the slowest mainstream deployments). Sol launches at $5 input / $30 output per million tokens as the flagship of a three-model family (Sol, Terra, Luna), with early access limited to a small set of organizations before general availability in mid-July 2026. Community analysts estimate Sol is served across roughly 70–100 wafers — approximately one transformer layer per wafer — though OpenAI hasn't confirmed the topology, so treat that layout as informed speculation. What it signals either way: for the first time, a frontier-class model, not just an open-weights model, is being served at specialized-hardware speed.

Groq: hundreds of small deterministic chips

Groq's LPU (Language Processing Unit) takes the opposite shape. Each LPU has no external DRAM at all — just a few hundred megabytes of on-chip SRAM at ~80 TB/s (versus the H100's 3.35 TB/s). A big model is sharded across hundreds of chips: Llama 3 70B at FP8 spans a rack of 300+ LPUs, each holding a ~230 MB slice. The magic ingredient is determinism: there are no caches, no dynamic scheduling — the compiler plans the entire execution, including chip-to-chip communication, down to the individual clock cycle, so nothing ever waits on anything unpredictable. Groq's phrase for it is "determinism is speed," and with speculative decoding they've shown Llama 3 70B at over 1,660 tokens/second.

SambaNova: three memory tiers, giant models

SambaNova's RDU (Reconfigurable Dataflow Unit) blends approaches with a three-tier memory system (SRAM + HBM + DRAM), which is how it serves the largest models efficiently: the full 671B-parameter DeepSeek-R1 at ~198–250 tokens/second on just 16 SN40L chips — a model that manages 30–80 tokens/second on typical GPU serving — and Llama 3 8B at 1,000 tokens/second, independently validated by Artificial Analysis.

ApproachKey ideaMemory for weightsVerified speed example
GPU (H100-class)General-purpose, throughput-firstOff-chip HBM, ~3.35 TB/s~70–150 tok/s per user, frontier models
Cerebras WSE-3Whole wafer = one chip44 GB on-chip SRAM, ~21 PB/sLlama 3.1-405B at 969 tok/s; GPT-5.6 Sol up to 750 tok/s
Groq LPUDeterministic dataflow, compiler-scheduledSRAM only (~230 MB/chip), model sharded across 300+ chipsLlama 3 70B at 1,660+ tok/s (with spec. decoding)
SambaNova RDUReconfigurable dataflow, 3-tier memorySRAM + HBM + DRAMDeepSeek-R1 671B at ~250 tok/s on 16 chips
What you'll learn
  • None of these numbers are magic compute: every entry in this table is a different answer to the same question — how do we stream weight bytes to the math units faster?
  • Speed records are per-user (per-session) speeds. Total datacenter throughput is a different metric that GPUs remain excellent at — that distinction is the batching trade-off below.

Software multipliers: faster tokens on ANY hardware

Hardware isn't the only lever. Three software techniques multiply speed on GPUs and specialized chips alike — and they explain much of why even ordinary GPU serving got faster this year.

Speculative decoding — the counterintuitive one. A small, fast draft model guesses the next several tokens; the big model then verifies all of them in a single forward pass. Verification of N draft tokens costs roughly the same weight-streaming as generating one token — so when guesses are right (and for predictable text they usually are), you get several tokens for the memory-price of one. The part few people know: the output is provably identical to what the big model would have produced alone. It's not an approximation — wrong guesses are simply rejected and regenerated. This is the technique behind Groq's 1,660 tok/s figure, and every major provider now uses some variant.

Quantization — the direct one. If the bottleneck is bytes moved per token, halve the bytes: store weights in 8-bit or 4-bit instead of 16-bit and decode speed rises almost proportionally because you literally stream half (or a quarter) of the data. The trade-off is a usually-small, occasionally-real accuracy cost — measure on your task, not on vibes.

Batching — the trade-off one. GPUs claw back efficiency by serving many users in one pass: the weights are streamed once and reused across the whole batch, so total throughput soars. But each individual user's tokens still come out at the shared sequential rate — big batches mean high datacenter throughput and mediocre per-user speed. This is the single most misread number in inference marketing: a provider quoting "thousands of tokens per second" may mean aggregate throughput, not what you will experience in one session.

Why fast tokens change everything

Speed sounds like a comfort feature. It's actually a capability threshold, because several product categories only work below a certain wall-clock latency.

Agents get the biggest multiplier. An agent loop is serial: call the model, run a tool, feed results back, repeat — 20 model calls in sequence is routine. At 70 tok/s, 20 calls averaging 800 output tokens each is ~230 seconds of pure generation: a coffee break, so agents get relegated to background jobs. At 750 tok/s the same loop is ~21 seconds: interactive. The speedup multiplies across every step of the loop, so 10× faster tokens don't make an agent 10% nicer — they move it across the line from batch tool to conversation partner. (Building agents? Start at Choosing a model.)

Reasoning models think more per second. A reasoning model's quality scales with how many thinking tokens it can spend. At GPU speeds, "high effort" means minutes of waiting, so users dial thinking down. At wafer-scale speeds the same thinking budget completes in seconds — you get more intelligence at the same wall-clock latency, which is arguably the real strategic point of the OpenAI–Cerebras pairing.

Voice becomes genuinely real-time. Human conversation tolerates ~500 ms of response gap. Fast serving with a sub-300 ms time-to-first-token (Cerebras demonstrated 240 ms on a 405B model) plus generation far above speaking speed makes natural spoken back-and-forth — with a frontier model, not a small distilled one — finally feasible.

Cost dynamics get interesting. Fast is not automatically cheap: specialized serving commands premium pricing (Sol's $30/M output tokens is top-tier), and the same speed that delights users lets agents burn tokens faster too. But wafer-scale providers also argue their cost per token undercuts GPUs at scale, so expect speed tiers to become a standard pricing axis, like express shipping. Budgeting context lives in What AI costs across providers.

How to evaluate speed — for YOUR workload

The most common benchmarking mistake: treating "tokens per second" as the whole story. There are two numbers, produced by two different bottlenecks:

  • Time-to-first-token (TTFT) — how long before output starts. Dominated by the compute-bound prefill phase, so it grows with your prompt length. This is what chat and voice users feel.
  • Output tokens/second — how fast text flows once started. Dominated by the memory-bound decode phase. This is what long generations and agent loops feel.

A provider can win one and lose the other, because they stress different hardware limits. A RAG app stuffing 50K-token contexts lives and dies by TTFT; an agent writing long code files lives and dies by decode speed. Independent leaderboards like Artificial Analysis report both — but your prompt shapes, context lengths, and traffic patterns are yours, so measure with your own workload. (Streaming makes perceived latency ≈ TTFT rather than total time — see Streaming.)

Guided walkthrough1 of 5
  1. Pick 10–20 real prompts from your product — real system prompt, real context length. Speed varies enormously with input size; toy prompts produce toy numbers.

A benchmark task for measuring real generation speed

Write a complete Python module implementing a rate limiter with three strategies
(fixed window, sliding window, token bucket), a shared abstract base class,
type hints throughout, docstrings, and a pytest test suite covering edge cases
(burst traffic, clock skew, zero-capacity buckets). Target roughly 2,000 tokens
of output. Do not truncate or summarize - produce the full code.

--- How to use this prompt as a benchmark ---
1. Send it with streaming enabled and your production system prompt attached.
2. Record TTFT = time from request to first streamed chunk.
3. Record decode speed = output_tokens / (total_time - TTFT).
4. Repeat 5 times at 3 different times of day; report medians, not best runs.
5. Re-run the same prompt with 30K tokens of context pasted above it -
 watch what happens to TTFT. That difference is your prefill cost.

Check yourself

0/5
  1. What is the primary physical limit on how fast an LLM generates tokens today?
  2. How does Cerebras's wafer-scale approach beat the memory wall?
  3. What's the catch with speculative decoding?
  4. A provider advertises 3,000 tokens/second. What must you check before assuming your users will see that?
  5. Why do faster tokens benefit agents more than simple chat?
Fast-inference vocabulary
Pressione Enter ou Espaço para virar o cartão. Use as setas esquerda e direita para navegar entre os cartões.Termo exibido.
1 / 10
Key takeaways
  • Inference speed is a memory-bandwidth problem: every token requires streaming all active weights, so a 70B FP16 model means ~140 GB of reads per token — that's the whole bottleneck.
  • The specialized-hardware race (Cerebras wafer-scale SRAM, Groq's deterministic DRAM-free LPUs, SambaNova's three-tier RDUs) beats the wall by keeping weights in on-chip memory — and GPT-5.6 Sol at 750 tok/s just brought that speed to a frontier model.
  • Software multiplies it further: speculative decoding (identical output, multi-token verify), quantization (fewer bytes per token), batching (throughput up, per-user speed down — read provider claims carefully).
  • Fast tokens are a capability threshold, not a comfort feature: serial agent loops become interactive, reasoning models think more per wall-clock second, and frontier-model voice goes real-time.
  • Evaluate with two numbers — TTFT (prefill, prompt-length-sensitive) and output tokens/sec (decode) — measured on your own prompts at your own concurrency, re-checked monthly.

New to how models work under the hood? The Foundations section covers tokens, context windows, and model basics that this lesson builds on.

Sources & further reading