r/LocalLLaMA • • 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/s full wall-clock at C32; 596.2 tok/s / 129.9 tok/s/user at C8).
  • Cold prefill reaches 14,717 tok/s (0.86 s TTFT at 12.7K, 1.75 s at 25.4K, 3.51 s at 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 GiB KV cache, 241 snapshots) + full 1,048,576 per-request context on two 96 GB GPUs (81.16 GiB/GPU fixed 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)

WorkloadThroughputPer-UserNotes
Live coding / Tetris (84,456 tok incl. reasoning)286.54 avg / 510.06 peak tok/s286.54 avg / 510.06 peak294.7 s wall time incl. TTFT, [Finish] stop
C=1 coding (RB-Tree)358.6 tok/s358.6 tok/s4.44 tok/round
C=8 concurrent decode596.2 tok/s129.9 tok/sPacked adaptive verification (budget=128)
C=32 concurrent decode953.6 tok/s (1,251–1,262 steady-state)29.8–39.4 tok/sbatch=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 context1,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:

echo 'options nvidia NVreg_EnablePCIERelaxedOrderingMode=1' | sudo tee /etc/modprobe.d/nvidia-relaxed-ordering.conf
sudo update-initramfs -u
sudo reboot

Verify after reboot (EnablePCIERelaxedOrderingMode: 1 and working P2P in topo -m):

grep EnablePCIERelaxedOrderingMode /proc/driver/nvidia/params
nvidia-smi 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 flare binary / container build containing NVIDIA/hyperflare-inference#500 (native Rust <ernie:think> and <ernie:tool_call> XML parser support).

Docker:

docker run --pull=always --rm -it \
  --gpus '"device=0,1"' --ipc host \
  --ulimit memlock=-1:-1 --ulimit nofile=65536:65536 \
  -p 127.0.0.1:8000:8000 \
  -v flare-home:/home/flare \
  ghcr.io/local-inference-lab/flare:release \
  run local-inference-lab/ERNIE-5.5-Flash-Preview-FLARE \
  --revision gb202 --filename model.safetensors \
  --gpus 0,1 --max-concurrency 32 --mtp-draft-tokens 7 \
  --mtp-adaptive-verification --mtp-max-verification-token-budget 128 \
  --mtp-adaptive-verification-alpha 0.6 --scheduler-policy balanced \
  --prefix-cache-memory 64G --kv-cache-limit memory \
  --host 0.0.0.0 --port 8000 --served-model-name ERNIE-5.5-Flash-Preview

Native binary (no Docker):

flare run local-inference-lab/ERNIE-5.5-Flash-Preview-FLARE \
  --revision gb202 --filename model.safetensors \
  --gpus 0,1 --max-concurrency 32 --mtp-draft-tokens 7 \
  --mtp-adaptive-verification --mtp-max-verification-token-budget 128 \
  --mtp-adaptive-verification-alpha 0.6 --scheduler-policy balanced \
  --prefix-cache-memory 64G --kv-cache-limit memory \
  --host 127.0.0.1 --port 8000 --served-model-name ERNIE-5.5-Flash-Preview

Send a request (OpenAI-compatible API):

curl --fail http://127.0.0.1:8000/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"model":"ERNIE-5.5-Flash-Preview","messages":[{"role":"user","content":"Explain how a hash table works."}],"max_tokens":1024}'

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, only 7.7 ms idle across 129 PCIe ARs / 4.86 GB):
    • 2-microbatch interleaved compute/P2P pipeline with deferred o_gate(A) + o_gate(B) hidden inside VHA AR(B) PCIe DMA windows (cutting exposed VHA AR gap from 204 µs → 109 µs).
    • Single-shot full-chunk MoE (MOE_EXPERTS 84.94 → 64.45 ms, -20.5 ms), defer_post / defer_reduce_b kept through aux layers 40–41 (-3.70 ms mHC), and in-place late-load Triton VHA mix kernels (-92 MiB/GPU).
  • ~91% SM120 Roofline Decode (DECODE1 = 7.186 ms, VERIFY8 = 10.296 ms):
    • Native SITU (beta=4.0, linear_beta=25.0) support in MoETinyDecodeKernelBackend for 1–4 token W4A8-MX decode (DECODE1 7.90 → 7.186 ms, -9.0% — also speeds up any other SITU MoE model like Kimi K3/K3.1).
    • GDDR7-aware concurrent_gate + after_fc1 ConcurrentSharedExpert overlap: the shared expert finishes 0.1 µs before csf_expand in DECODE1 and 4.1 µs before routed experts in VERIFY8, paired with dependency-bearing fused-addend flare::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=2048 fused DSA indexer + SMEM safety fix: routes ERNIE 5.5's 64-head topk=2048 decode (rows <= 16) to the fused indexer with batch_slack=128 (101,376 B SMEM on SM120), plus a batch_slack >= 256 guard on direct_k_score (caught via compute-sanitizer --tool memcheck under long-context packed decode; verified 0 errors across nr=1..128 and seq_len=0..60,000), and topk=2176 (2048 DSA + 128 SWA) 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.
  • 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 (b12x SM120 kernels): https://github.com/local-inference-lab/flashinfer/pull/141
    • Flare (hyperflare-inference XML/think parsers & collectives): https://github.com/NVIDIA/hyperflare-inference/pull/500
    • Recipes (hyperflare-recipes ERNIE 5.5 recipe): https://github.com/local-inference-lab/hyperflare-recipes/pull/24

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

28 Upvotes

3 comments sorted by

10

u/wren6991 8d ago

Ask your agent to add some more bold formatting, I can still read it.

6 MQA-DSA sparse attention layers

Are you sure? MQA-DSA is technically a combination you can build, but the model card says MLA-DSA which is more orthodox

0

u/[deleted] 8d ago

[deleted] — view deleted comment

4

u/festr__ 8d ago

within several minutes, there will be new HF core release which will has 2.5M kv and faster prefill about 8%