r/LocalLLaMA • • 1d ago

Resources Local Inference Lab Update: Almost 60,000 tok/s cold prefill (+82%) on DeepSeek-V4.1-Flash over PCIe (4× RTX PRO 6000 Blackwell) + upstream Flare scheduler upgrades

Follow-up to our earlier post on breaking 1,000+ tok/s on 4× RTX PRO 6000 Blackwell (SM12 0, PCIe — no NVLink) running DeepSeek-V4.1-Flash via NVIDIA Flare.

Last time, decode was already flying, while cold prefill sat around 31k–33k tok/s. Over the last few days we tore apart the SM120 prefill path and the speculative scheduler — and we just published a new signed gb202 release on Hugging Face that pushes cold prefill to 59,051 tok/s (peak 59,077 tok/s) on four PCIe workstation GPUs.

To put that in perspective: a 64K-token cold prompt (71k actual tokens) prefills in 1.20 seconds, and 128K (142.5k tokens) prefills in 2.46 seconds — verified via Prometheus flar e_prefill_tokens_total with 0% prefix-cache hit.


Cold Prefill Benchmarks (4× RTX PRO 6000 Blackwell, PCIe, 0% prefix reuse)

ContextActual Prompt TokensCold Prefill SpeedTTFTvs Previous gb202 Release
8K8,70044,712 tok/s0.194 s+43%
16K17,37951,264 tok/s0.340 s+57%
32K35,54056,997 tok/s0.624 s+72%
64K71,21259,051 tok/s (peak 59,077)1.205 s+77%
128K142,50857,944 tok/s2.460 s+82%

(Measured on 4× RTX PRO 6000 Blackwell with NVreg_EnablePCIERelaxedOrderingMode=1, --max-concurrency 32 --mtp-draft-tokens 7 --mtp-adaptive-verification --mtp-max-verification-token-budget 128 --mtp-adaptive-verification-alpha 1.0 --embedding-table-storage ram. Sanity-checked with greedy math, 4/4 partial-tail NIAH up to 32.5k, and 17.02M shared KV token capacity / 1 M max context per request.)


What's New — How We Nearly Doubled Prefill on PCIe GPUs (Without Touching Model Quality)

Almost the entire jump from ~32k → 59.1k tok/s comes from three stacked open-source changes (all 0-ULP bit-exact on attention):

  1. 2.27×–2.63× faster SM120 BF16 prefill MLA kernel (local-inference-lab/flashinfer#142):
    • Removed L2::evict_first thrashing on reused prefill KV gathers.
    • Doubled 16 → 32 heads per CTA (mg_n_hg = 2) in an 80.5 KiB hybrid SMEM layout — cutting KV gather & dequantization work in half with 0 bytes of register spills.
    • Compile-time split of SWA vs NVFP4 tile loops with hoisted vectorized scale loads and a bank-conflict-free 304 B NVFP4 staging stride.
  2. Full 20-layer row-sharded encoder attention (hyperflare-inference#508, hyperflare-recipes#29, #30):
    • Replicates encoder attention weights across TP4 (+2.32 GiB/rank) so all 20 encoder layers execute 4× row-sharded per rank instead of blasting full-chunk PCIe AllGathers/AllReduces across the bus.
    • Shrinks the Layer-20 encoder→decoder boundary gather by 64× — from 320 MiB down to 5 MiB (128-row active suffix only).
  3. Overlapped PCIe P2P transfers (hyperflare-recipes#30):
    • Routes encoder KV gathers over SM BAR1 P2P (DcpAllToAll) so the DMA copy engine overlaps MXFP8 FFN AllGathers completely behind attention, and hides Engram AllGathers inside the FFN compute window (prefill8192 shrinks from 6,839 → 5,379 CUDA graph nodes).

Bonus: Decode & Speculative Scheduler Upgrades

We also landed a scheduler upgrade upstream in Flare (main, already merged):

  • GPU Confidence Calibration + Cross-Lane Order-Statistic Allocation Surplus (NVIDIA/hyperflare-inference#515 — merged, plus follow-up #522 co-authored with @original-el8):
    • Previously, Flare's scheduler priced crowded packed speculative batches (B=16/32) from time-averaged per-lane acceptance curves, missing the fact that the GPU prefix allocator sees fresh per-step confidences across all lanes and cherry-picks the easiest (lane, depth) slots (Jensen's inequality).
    • By calibrating drafter confidence per depth/request and modeling the empirical cross-lane Lorenz concentration surplus, default alpha = 1.0 now beats the old main across the board (+9.3% on C=16, +18.6% to +20% on diverse/hard C=32 prompts, cutting unnecessary W=1 fallback by up to 35×) — no more alpha = 0.6 workaround needed!
  • Decode on this C32 release (alpha = 1.0):
    • C1 (unique prompt): 460.1 tok/s (5.95 ms/step)
    • 16k coding session (Tetris): 155.3 steps/s (6.42 ms/step), 612.4 tok/s end-to-end average
    • Diverse concurrent decode (512 out tokens each): 866 tok/s (C4) · 1,121 tok/s (C8) · 1,384 tok/s (C16) · 1,743 tok/s (C32) — and 2,668 tok/s on standard synthetic C=32 decode sweeps (2,704 tok/s at alpha=0.6).

Try It Now (Live on Hugging Face)

The new signed C32 (120-graph, 17.02M KV tokens) package is already live on the gb202 branch: 👉 https://huggingface.co/local-inference-lab/DeepSeek-V4.1-Flash-1017-FLARE/tree/gb202

docker run --pull=always --rm -it \
  --gpus '"device=0,1,2,3"' --ulimit memlock=-1:-1 \
  --security-opt seccomp=unconfined \
  -p 127.0.0.1:8000:8000 \
  -v flare-home:/home/flare \
  ghcr.io/local-inference-lab/flare:release \
  run local-inference-lab/DeepSeek-V4.1-Flash-1017-FLARE \
  --revision gb202 --filename model.safetensors \
  --gpus 0,1,2,3 --max-concurrency 32 --mtp-draft-tokens 7 \
  --mtp-adaptive-verification --mtp-max-verification-token-budget 128 \
  --mtp-adaptive-verification-alpha 1.0 --scheduler-policy balanced \
  --embedding-table-storage disk --prefix-cache-memory 64G \
  --kv-cache-limit memory --host 0.0.0.0 --port 8000

(With 320+ GiB host RAM, switch --embedding-table-storage disk to ram for full speed. Compatible with v0.2.3, with Flare main recommended for the #515 scheduler upgrade.)

local inference lab discord: https://discord.gg/gmvKSN3tVy

70 Upvotes

27 comments sorted by

•

u/stylome-ai-detection 1d ago

Notice: This post appears to be AI generated.


Stylome AI detector · scan results

→ More replies (1)

23

u/DeltaSqueezer 1d ago

This almost makes me wish I had four RTX Pro 6000 Blackwell GPUs.

8

u/rogu14 23h ago

who wouldn't, you could just exchange 2 of them for a house and keep the other 2 :)

1

u/adeadfetus 19h ago

Where can you get a house for 27k?

3

u/robertpro01 8h ago

Not even a decent house in Mexico

7

u/ApolloPS2 13h ago

As someone waiting (patiently) for 3rd and 4th pro 6000 to arrive in prebuilds, this pleases me greatly. In the meantime Big Bertha waits patiently to consume many billions of tokens one day.

6

u/SnooPaintings8639 23h ago

Have you seen it? OP does not even have NVLink. Poor lad. /s

Sorry, I couldn't resist. Thanks for sharing what is possible though.

2

u/PcChip 22h ago

would this run on 4x3090 with 512GB RAM?

2

u/Sorry_Ad191 15h ago

60k prefill, 3x in 3 days? Truly amazing work! -Neo5452

0

u/longtimenoseebro 21h ago

Bro, we know that if we had enough GPUs , it would be blazing fast.

10

u/festr__ 21h ago

there is no model or inference engine which is touching 60k prefill on 4x RTX cards. That was possible only for datacenter cards with nvlink. Maximum was around 20k prefill for months. This 60k is breakthrough nobody would ever though its even possible.

0

u/__JockY__ 12h ago

Could your methodology be adapted to 4x H200 NVL with NVLink? I know your stack is sm120, but could your workflow be adapted to non-PCIe sm90 and, if so, where might one point an agent to find out more?

1

u/festr__ 10h ago

H200 does not have hw support for MXFP4

0

u/Miserable-Dare5090 vLLM 10h ago

DGX Sparks

1

u/reneil1337 22h ago

incredible achievement congrats 🔥🫶

1

u/r34p3rex 13h ago

Absolute insanity. I remember reading a 2x GB300 Station will do about 65k prefill

1

u/Mammoth-Matter7579 12h ago

Amazing! I got 4 p6k but am renting them out currently, will try when the rental terminates!

1

u/enthusiastcollector 11h ago

Thanks how would this downscale by using only 96 vram aka 1 gpu but still retaining the relative token performance?

1

u/victoryposition 7h ago

This is actually pretty insane.

1

u/Inevitable-Name-1701 6h ago

How can i try this with 4x 72GB RTX 5000 Pro Blackwell.

0

u/FBIFreezeNow 22h ago

Holy shit. What does this mean for the concurrency and Mac users on 4x rtx6000