steve hou· research
← ResearchLeaf Labs · AI Research

Fastest GPU Inference in the World

Synthesizing a 9.3× speedup on Llama 3.1 8B — 283 to 2,621 tokens per second on one NVIDIA B300

December 2026 · Code & docs on GitHub (MIT) → · Pareto Benchmark →

Standard Llama 3.1 8B on one NVIDIA B300 runs at 283 tokens per second for one user (1K input / 1K output). Every single token forces the chip to haul 16 GB of weights out of HBM to multiply them by a single activation vector, leaving almost every tensor core sitting idle.

On the exact same single NVIDIA B300, we run Llama 3.1 8B at 2,621 tokens per second — 9.3× faster than standard 1× B300 decode, and 35% faster than Cerebras's 46,225 mm² wafer-scale chip on roughly one twenty-ninth the silicon area.1 All kernels, runtimes, benchmarks, and the live B300 demo are open-sourced on GitHub (MIT). For what nearly 10× faster single-user tokens changes for voice, coding agents, and serial reasoning, see Section 6 below.

Single-user Llama 3.1 8B throughput in tokens per second: 2,621 tok/s on 1x B300 vs Cerebras WSE-3, SambaNova, Groq, standard 1x NVIDIA B300 (283 tok/s), and 1x H200.
Sustained single-user Llama 3.1 8B speed in tokens per second (this stack vs. standard 1× B300 and dedicated inference hardware). Click any figure to zoom.

No single trick gets you 9.3×. Every layer removes a different bottleneck — first weight bandwidth, then kernel launch and memory traffic, then serial token-by-token verification, then Blackwell tile-wave boundaries and acceptance criteria. Here is how each layer stacks up on the same GPU:

Cumulative Llama 3.1 8B tokens per second ladder on 1x B300 from 283 tok/s baseline to 2,621 tok/s.
Cumulative throughput progression on 1× B300, stepping from standard 1× B300 (283 tok/s) up to the full quality-matched stack (2,621 tok/s).

1. Cutting HBM weight traffic 4× with NVFP4 and GPTQ

Batch-1 decoding is memory-bandwidth bound, so the first multiplier is shrinking every weight matrix from 16 bits to 4 bits. Blackwell tensor cores natively execute NVFP4: 4-bit E2M1 floating-point values grouped into 16-element micro-blocks, each carrying an 8-bit E4M3 scale factor plus a per-tensor FP32 scale. That drops the 32 transformer blocks from roughly 16 GB down to ~4 GB.

Plain round-to-nearest 4-bit quantization degrades tight code and verse because a small number of outlier channels absorb huge rounding errors. To prevent that, we quantize the attention and MLP linear projections with GPTQ: estimate each layer's inverse Hessian H−1 = (2XX⊤ + λI)−1 on calibration activations, quantize weights in column blocks, and propagate the rounding error onto the remaining unquantized columns so the layer output stays close to BF16. Embeddings, RMSNorm weights, and the final LM head stay in BF16. Single-token decode immediately doubles from 283 to 554 tok/s at 1K/1K (and 301 to 614 tok/s on short prompts).2

2. Killing launch overhead and HBM round-trips

Cutting weight traffic 4× only yields ~2× until you kill fixed per-step overhead. A standard 32-layer PyTorch forward pass dispatches hundreds of small kernels per token; once GEMM time drops below 2 ms, launch latency, Python dispatch, and intermediate HBM reads eat almost half the step.

Four systems optimizations squeeze that tax down to microseconds. First, we capture the entire speculative round — drafting, tree assembly, 8B verification, acceptance, and KV-cache compaction — into a single static CUDA graph, turning hundreds of kernel launches into one replay call. Second, we enable Blackwell's Programmatic Dependent Launch (PDL), letting each dependent kernel start loading parameters and warming registers while the preceding kernel drains its tail blocks. Third, we run host-one-round-behind pipelining: the CPU enqueues round t+1 asynchronously while reading round t's accepted token count from pinned memory, so the GPU stream never stalls waiting on a host sync. Fourth, custom fused Triton kernels combine residual-add + RMSNorm + NVFP4 block quantization, SwiGLU + NVFP4 quantization, and rotary embeddings + paged KV writes + tree-masked attention into single memory passes so activations stay in registers and shared memory.

3. Single-pass parallel drafting and verification trees

Even with 4-bit weights and zero launch overhead, emitting one token per 8B weight sweep caps you near 600 tok/s. Speculative tree verification breaks that ceiling by turning one batch-1 weight sweep into a batch-M verification pass: a cheap drafter proposes a branching tree of M candidate tokens, and the 8B target evaluates all M nodes at once under a custom tree attention mask, committing the longest valid branch plus one bonus token.

thedogcatmanransatwasondownvery4 tok1 pass
Tree verification: the 8B target checks every node in the tree in one forward pass and commits the longest valid path plus one bonus token.

Because the 8B verification pass only takes ~1.65 ms, sequential autoregressive drafting becomes the bottleneck almost immediately.3 We implemented and benchmarked three fast drafter families on the exact same B300 runtime:

DFlash runs a 5-layer bidirectional block-diffusion drafter conditioned on target hidden states (written via a fused 26.6 µs Triton context-KV kernel), generating 9 draft tokens in one forward pass and holding total round time to 2.22–2.33 ms. PARD-2 takes a full 16-layer Llama-3.2-1B model, appends 15 learned mask tokens, and predicts all 15 future tokens in one pass — winning strict exact acceptance (4.08 tok/r raw vs 3.67 for DFlash) because Llama-1B was distilled directly from Llama-8B, at +0.4 ms extra round time (2.65 ms). EAGLE-3 taps target hidden states into a 1-layer head; pairing it with OPT-Tree calibrated per-depth branching lifted acceptance +7.3% (6.36 → 6.82 tok/r) for +0.005 ms.

We also tested running DFlash and PARD-2 concurrently on two CUDA streams and merging their trees (SpecInfer). Acceptance climbed 12–30%, but simultaneous HBM reads from two drafters created 0.6–0.9 ms of memory contention, making net tokens per second slower.

4. Respecting Blackwell's 64-row MMA tile cliff

Bigger verification trees are not free on Blackwell. Sweeping tree size M from 10 through 128 (SpecExec-style) exposed a sharp hardware step: FlashInfer's NVFP4 MMA and tree-attention kernels tile in 64-row blocks. Any tree up to M = 64 fits inside one tile wave, so going from M = 10 to M = 64 adds only 0.23 ms total (2.10 → 2.33 ms). Crossing to M = 96 or 128 spills every linear layer into a second tile wave, jumping round time by +0.74 to +0.83 ms (+32%) and cutting net speed 25% (1,816 → 1,371 tok/s) despite slightly higher acceptance. On B300, the optimal tree packs as much probability mass as possible inside M ≤ 64.

Round latency jumping +0.83 ms past M=64 and net speed falling 25% on B300.
Measured CUDA-graph round latency (left) and net non-repetitive poetry speed (right) across tree budgets M = 10 to 128 on 1× B300.

5. Acceptance rules, poetry stress-testing, and TVP

Strict exact matching already clears Cerebras at 2,024 tok/s on mixed prompts. Where several candidate words carry nearly identical probability mass under the 8B target, quality-matched acceptance criteria avoid wasting a rejection without drifting off distribution: Speculative Cascades accepts when the probability gap below top-1 is small, Min-p scales the acceptance floor dynamically as α · pmax, Medusa Typical ties leniency to the target's Shannon entropy H(p), and Nucleus accepts inside cumulative probability mass p.

Because code is unusually predictable, we deliberately stress-tested these rules on 12 unseen formal poems where per-token entropy runs 0.86–1.09 nats.4 Raw greedy decoding initially hit 2,446 tok/s (DFlash) and 2,376 tok/s (PARD-2, peaking over 3,020 tok/s on a ghazal) with 1.78 BF16 perplexity — until reading the actual poems exposed a trap. Plain greedy 8B already drifts into stanza loops (rep4 = 0.149), and relaxed drafting amplifies those loops to rep4 = 0.44–0.48, inflating acceptance while fooling teacher-forced perplexity.

Non-repetitive poetry speed-perplexity frontier vs raw greedy repetition inflation.
Clean non-repetitive poetry frontier (left, rep4 ≤ 0.13) reaching 1,816 tok/s vs. raw greedy repetition inflation (right).

Adding an 18.7 µs GPU-resident Triton kernel for 5-gram blocking (no_repeat_ngram_size=5) right inside the CUDA graph — or CTRL repetition penalty (1.12) — eliminates stanza loops (rep4 ≤ 0.13) and gives 1,816 tok/s clean metered poetry (6.07× BF16's 299 tok/s; DFlash + Min-p with CTRL hits 1,806 tok/s at 2.32 PPL; Llama-1B PARD-2 hits 1,674 tok/s).

Clean poetry (rep4 ≤ 0.13)

ConfigMtok/stok/rms/rrep4BF16 PPLnuc90
BF16 Plain (ng5)1298.91.003.350.0341.670.986
NVFP4-GPTQ Plain (ng5)1610.91.001.640.0582.000.974
PARD-2 Strict (ng5)481,231.83.262.650.0592.000.971
DFlash Strict (ng5)481,337.83.032.270.0512.020.975
PARD-2 Typical (ng5)481,674.04.452.660.091——
DFlash Min-p 0.08 (rp=1.12)321,805.84.022.230.1302.320.968
DFlash Cascade 0.45 (ng5)641,815.74.232.330.0912.630.951
DFlash Cascade (past cliff)1281,370.54.393.200.0862.670.950

Raw greedy (no_rep_ng = 0, loop-inflated)

ConfigMtok/stok/rms/rrep4BF16 PPL
BF16 Plain (raw)1301.31.003.320.1491.44
EAGLE-3 yuhuili Strict481,533.43.912.550.3131.51
PARD-2 Strict481,543.64.082.640.3111.49
DFlash Strict481,596.83.672.300.2821.50
EAGLE-3 Nebius Typical482,278.06.903.030.4631.89
PARD-2 Min-p 0.05642,375.56.492.730.484—
DFlash Typical482,445.55.642.310.4351.78

1K literary context (ng5, split-K=2): DFlash 1,108.6 tok/s; PARD-2 989.7 tok/s. Concurrent two-stream DFlash+PARD-2 lost speed to HBM contention (1,535 tok/s).

Verbatim outputs

sonnet_lighthouseExact 1× B300 generations
298.9 tok/s avgrep4: 0.016BF16 PPL: 1.67
In twilight's hush, where basalt cliffs do stand,
A lone lighthouse keeper watches the sea,
As November's gale begins to gather hand
In darkening skies, a tempest's wild decree.
The wind, a mournful zither, starts to play
A minor key, its notes like sorrow's sigh,
As waves, like shattered glass, crash on the bay,
And darkness gathers, like a thief, to lie.

TVP vs. KL on 1B PARD-2

Finally, we tested Baseten's Total Variation Prefix (TVP) distillation objective against matched forward KL on 1B PARD-2 (36 train / 4 held-out BF16 poems, 11,116 tokens, 14.3 s on B300). Because TVP directly optimizes expected prefix overlap rather than uniform per-position KL, TVP-anneal beat KL across every step by +31.8% on held-out Total Variation overlap (0.2227 vs 0.1690) and climbed past step 0 (0.2158), while confirming that tuning all 1B weights on 11K tokens perturbs the pretrained chain EAL basin (2.046 → 1.756 TVP vs 1.649 KL). Full code and raw JSONL runs are on GitHub.

Held-out TV overlap and chain EAL for TVP-anneal vs forward KL.
Held-out validation trajectories on 4 unseen poems (72 steps, FP32 master weights).

6. Why 10× faster tokens matter

Humans read at 5 words per second, so people ask why 2,621 tok/s matters. Because modern AI is not a typewriter: coding agents loop through ten files, reasoning models spend 30,000 hidden tokens before answering, and voice pipelines break past 200 ms. Single-user speed sets the clock frequency of test-time intelligence.

Decode time by workloadLlama 3.1 8B, single user
1,000 tok
NVIDIA H200 (BF16)4.35 s
NVIDIA B300 (BF16)3.53 s
Groq LPU1.64 s
SambaNova RDU1.09 s
Cerebras WSE-3517 ms
Ours (1× B300)382 ms
At 1,000 generated tokens, 1× B300 drops wait time from 3.53 s (BF16) to 382 ms (9.3× faster). Faster than you can blink and move your eyes to the next line.
Serial tokens in 5 seconds and single-user throughput versus active silicon area.
Left: serial reasoning tokens inside a 5-second turn. Right: single-user throughput vs. active silicon area (~1,600 mm² GPU vs. 46,225 mm² wafer). Click any figure to zoom.

One GPU vs. a wafer

Beating Cerebras WSE-3 (1,936 tok/s on 46,225 mm² of SRAM wafer) at 2,621 tok/s on one commodity B300 (~1,600 mm²) yields ~39× higher single-user speed per mm² with zero custom compiler lock-in. The same GPU serves 16 concurrent users at 20,898 tok/s total (1,306 tok/s per user) or runs training overnight.

Latency cliffs & serial thought

  • Voice (120 tok): 424 ms on BF16 → 46 ms — drops out of the conversational latency budget.
  • Code diff (1K tok): 3.53 s on BF16 → 0.38 s — stays under the 1-second flow-state cliff.
  • Deep reasoning (30K tok): 106 s → 11.4 s — ten iterations in two minutes instead of one.

Horizontal batching scales parallel users, not serial depth. Debugging and proof search are sequential — step 47 needs step 46's output. A 9.3× faster single stream buys nearly an order of magnitude more sequential reasoning inside any fixed wall-clock deadline.

Open-source code & docs (MIT): kernels, B300 runtime, benchmarks, and interactive demo on GitHub.→The Llama 8B Inference Pareto Benchmark: concurrency (1–64 users), per-token fidelity, context (1K–64K), and how to push any frontier on GitHub.→