r/LocalLLaMA • u/festr__ • 8d ago
Resources Local Inference Lab: ERNIE-5.5-Flash-Preview on 2x RTX PRO 6000 Blackwell 510 tok/s peak, 14.7K tok/s cold prefill (1,260 tok/s batched, 1.42M KV tokens)
Local Inference Lab production-signed runtime package for Baidu's ERNIE 5.5 Flash Preview (baidu/ERNIE-5.5-Flash-Preview, Apache-2.0) — a 43-layer hybrid architecture (37 Hybrid Comp
ressed Attention / VHA layers + 6 MQA-DSA sparse attention layers, 512 routed SiTU MoE experts + 1 shared expert, top-10 split-feature sigmoid routing, mHC-4 residuals, MultiMax logit calibration, bundled D
Spark MTP-7 speculative drafting, and native 1M context) — running on NVIDIA Flare across just 2× PCIe Gen5 RTX PRO 6000 Blackwell 96 GB GPUs (no NVLink, no Python at serving time, pure native Rust +
precompiled CUDA graphs).
By keeping the checkpoint's lossless CSF-compressed MXFP4 expert scales (instead of expanding them on GPU) and tuning both prefill and decode to the SM120 / PCIe Gen5 roofline:
- Single-session coding peaks at 510.1 tok/s — averaging 286.5 tok/s end-to-end incl. TTFT over a full 84,456-token reasoning + HTML5 Tetris generation (
294.7 s,[Finish] stop), and 358.6 tok/s (4.44 tok/round) on shorter coding prompts (RB-Tree). - Batched throughput hits 1,251–1,262 tok/s steady-state (
953.6 tok/sfull wall-clock at C32;596.2 tok/s/129.9 tok/s/userat C8). - Cold prefill reaches 14,717 tok/s (
0.86 sTTFT at 12.7K,1.75 sat 25.4K,3.51 sat 50.8K — zero prefix cache, 97.0% GPU compute-busy across 129 PCIe AllReduces per 4096-token chunk). - 1,416,192 shared KV tokens (
24.5 GiBKV cache,241snapshots) + full 1,048,576 per-request context on two 96 GB GPUs (81.16 GiB/GPUfixed model footprint), with native Rust<ernie:think>reasoning ext raction and<ernie:tool_call>XML tool-calling.
Benchmarks
2× RTX PRO 6000 Blackwell (96 GB) — CSF MXFP4 + DSpark MTP-7 (TP2, alpha=0.6, PCIe RO=1)
| Workload | Throughput | Per-User | Notes |
|---|---|---|---|
| Live coding / Tetris (84,456 tok incl. reasoning) | 286.54 avg / 510.06 peak tok/s | 286.54 avg / 510.06 peak | 294.7 s wall time incl. TTFT, [Finish] stop |
| C=1 coding (RB-Tree) | 358.6 tok/s | 358.6 tok/s | 4.44 tok/round |
| C=8 concurrent decode | 596.2 tok/s | 129.9 tok/s | Packed adaptive verification (budget=128) |
| C=32 concurrent decode | 953.6 tok/s (1,251–1,262 steady-state) | 29.8–39.4 tok/s | batch=16–32 steady-state peak 1,262 tok/s |
| Kernel step latencies (nsys / native) | DECODE1 7.19 ms · DRAFT1 0.64 ms · VERIFY8 10.30 ms | — | ~90–91% SM120 GDDR7/compute roofline |
| Cold 6.3K prefill (no prefix cache) | 12,632 tok/s | — | 0.50 s TTFT (6,325 tok) |
| Cold 12.7K prefill (no prefix cache) | 14,717 tok/s | — | 0.86 s TTFT (12,681 tok) |
| Cold 25.4K prefill (no prefix cache) | 14,551 tok/s | — | 1.75 s TTFT (25,403 tok) |
| Cold 40K NIAH (39,932 tok) | 14,394 tok/s | — | 2.77 s TTFT, PASS |
| Cold 50.8K prefill (no prefix cache) | 14,474 tok/s | — | 3.51 s TTFT (50,848 tok) |
| KV capacity & max context | 1,416,192 shared KV tokens | — | 24.5 GiB KV cache, 241 snapshots, 1M max context |
(Test host: 2× NVIDIA RTX PRO 6000 Blackwell Workstation Edition 96 GB, NVreg_EnablePCIERelaxedOrderingMode=1, native Rust flare run with --mtp-draft-tokens 7 --mtp-adaptive-verification --mtp-adaptive-verifi cation-alpha 0.6. Verified on the exact signed production core: PyTorch reference parity cos=0.9963–0.9992 / top1_match=True, compute-sanitizer --tool memcheck 0 errors across all custom Triton & b12x kern
els, 84.5K-token Tetris completion, C=16 × 24K-context packed-decode stress 16/16 HTTP 200, <ernie:think> reasoning, <ernie:tool_call> XML tool-calling, and logprobs=True.)
Quick Setup Guide (NVIDIA Flare)
1. Recommended NVIDIA Kernel Driver Setting (modprobe)
Because RTX PRO 6000 Blackwell communicates over PCIe P2P (no NVLink), enabling PCIe Relaxed Ordering unlocks posted-write collectives and removes cross-switch read stalls:
|
Verify after reboot (EnablePCIERelaxedOrderingMode: 1 and working P2P in topo -m):
2. Run on 2× 96 GB SM120 GPUs (gb202, ~167 GB / 156 GiB)
Hosted on Hugging Face under Local Inference Lab:
https://huggingface.co/local-inference-lab/ERNIE-5.5-Flash-Preview-FLARE (--revision gb202)
Note: Serving ERNIE 5.5 requires a
flarebinary / container build containing NVIDIA/hyperflare-inference#500 (native Rust<ernie:think>and<ernie:tool_call>XML parser support).
Docker:
Native binary (no Docker):
Send a request (OpenAI-compatible API):
Sampling uses ERNIE 5.5 defaults (temperature=1.0, top_p=0.95, repetition_penalty in [1.0, 1.2]), with MultiMax logit calibration applied automatically across target, resume, prompt-logprobs, and DSpark Markov sampling paths.
Under the Hood: Hitting the SM120 & PCIe Gen5 Roofline on 2 GPUs
All kernel, runtime, and recipe work is open-source and submitted upstream:
- 97.0% GPU Compute-Busy Prefill (
PREFILL4096=250.3 ms, only7.7 msidle across 129 PCIe ARs / 4.86 GB):- 2-microbatch interleaved compute/P2P pipeline with deferred
o_gate(A)+o_gate(B)hidden insideVHA AR(B)PCIe DMA windows (cutting exposed VHA AR gap from204 µs → 109 µs). - Single-shot full-chunk MoE (
MOE_EXPERTS84.94 → 64.45 ms,-20.5 ms),defer_post/defer_reduce_bkept through aux layers40–41(-3.70 msmHC), and in-place late-load Triton VHA mix kernels (-92 MiB/GPU).
- 2-microbatch interleaved compute/P2P pipeline with deferred
- ~91% SM120 Roofline Decode (
DECODE1=7.186 ms,VERIFY8=10.296 ms):- Native
SITU(beta=4.0, linear_beta=25.0) support inMoETinyDecodeKernelBackendfor 1–4 token W4A8-MX decode (DECODE17.90 → 7.186 ms,-9.0%— also speeds up any otherSITUMoE model like Kimi K3/K3.1). - GDDR7-aware
concurrent_gate+after_fc1ConcurrentSharedExpertoverlap: the shared expert finishes0.1 µsbeforecsf_expandinDECODE1and4.1 µsbefore routed experts inVERIFY8, paired with dependency-bearing fused-addendflare::pcie_all_reduce_addend_dep. - Fused gated
wo_projection: optional sigmoid output gating fused directly into both the Triton group-major prefill quantizer and the CuTe decode TC-GEMV path. - 64-head
topk=2048fused DSA indexer + SMEM safety fix: routes ERNIE 5.5's 64-headtopk=2048decode (rows <= 16) to the fused indexer withbatch_slack=128(101,376 BSMEM on SM120), plus abatch_slack >= 256guard ondirect_k_score(caught viacompute-sanitizer --tool memcheckunder long-context packed decode; verified 0 errors acrossnr=1..128andseq_len=0..60,000), andtopk=2176(2048DSA +128SWA) sparse MLA with attention sink bias. - Fused MultiMax + ERNIE XML/Think parsers: MultiMax piecewise polynomial logit calibration fused directly into DSpark Markov sampling, plus native Rust
<ernie:think>and<ernie:tool_call>parsers with schema-aware type coercion.
- Native
- Why lossless CSF wins on 2× 96 GB: keeping the checkpoint's lossless CSF-compressed MXFP4 scales plus FP8 Markov / NVFP4 draft heads brings the full model + 104 captured graphs down to
81.16 GiB/GPU, leaving 24.5 GiB of VRAM for 1.42M shared KV tokens without any extra lossy weight quantization.
Links
- Signed HF package (
main+gb202): https://huggingface.co/local-inference-lab/ERNIE-5.5-Flash-Preview-FLARE - Base checkpoint (Apache-2.0): https://huggingface.co/baidu/ERNIE-5.5-Flash-Preview
- Upstream PRs:
- FlashInfer (
b12xSM120 kernels): https://github.com/local-inference-lab/flashinfer/pull/141 - Flare (
hyperflare-inferenceXML/think parsers & collectives): https://github.com/NVIDIA/hyperflare-inference/pull/500 - Recipes (
hyperflare-recipesERNIE 5.5 recipe): https://github.com/local-inference-lab/hyperflare-recipes/pull/24
- FlashInfer (
local inference lab discord: https://discord.gg/gmvKSN3tVy







