Skip to content

Tracking: DeepSeek-V4.1-Flash SM120 Performance & Stability Stack (19 PRs) #90

Backlog

Description

@voipmonitor

Overview

End-to-end SM120 optimization and hardening stack for DeepSeek-V4.1-Flash by @FujitsuPolycom (19 PRs: 12 in local-inference-lab/flashinfer + 7 in local-inference-lab/hyperflare-recipes).

All 19 PRs are marked ready for review, individually reviewed and tested on SM120 (with targeted hardening fixes fast-forward pushed onto 8 branches), and verified end-to-end together as the live signed gb202-preview TP4 core on 4× NVIDIA RTX PRO 6000 Blackwell (SM120) (flare:release):


Overall Gains (gb202-preview vs gb202 Baseline, 4× SM120 TP4)

Metric (4× RTX PRO 6000 Blackwell, RO=1, RAM Engram, C=32) Baseline gb202 19-PR gb202-preview Delta
Cold Prefill 8K (wall / GPU) 43,830 / 46,114 tok/s 47,649 / 50,430 tok/s +8.7% / +9.4%
Cold Prefill 16K (wall / GPU) 51,726 / 53,238 tok/s 56,880 / 58,623 tok/s +10.0% / +10.1%
Cold Prefill 32K (wall / GPU) 56,561 / 57,551 tok/s 62,478 / 63,716 tok/s +10.5% / +10.7%
Cold Prefill 64K (wall / GPU) 59,203 / 60,094 tok/s 65,109 / 66,398 tok/s +10.0% / +10.5%
Cold Prefill 128K (wall / GPU) 58,583 / 59,727 tok/s 64,416 / 65,942 tok/s +10.0% / +10.4%
Decode C=6 @ P=256 859.2 tok/s (8.04 ms) 923.7 tok/s (7.80 ms) +7.5% (-3.0% step)
Decode C=8 @ P=256 995.6 tok/s (8.79 ms) 1,035.1 tok/s (8.48 ms) +4.0% (-3.6% step)
Decode C=12 @ P=256 1,068.7 tok/s (9.24 ms) 1,188.4 tok/s (9.23 ms) +11.2%
Decode C=16 @ P=256 1,141.6 tok/s (10.41 ms) 1,303.4 tok/s (10.59 ms) +14.2%
Decode C=24 @ P=256 1,349.2 tok/s (12.45 ms) 1,414.6 tok/s (11.82 ms) +4.8% (-5.1% step)
Decode C=32 @ P=256 1,437.0 tok/s (12.88 ms) 1,496.8 tok/s (12.46 ms) +4.2% (-3.3% step)
Decode C=32 @ P=2048 1,228.7 tok/s (13.20 ms) 1,295.2 tok/s (12.44 ms) +5.4% (-5.8% step)
KV Cache / VRAM 14.85 GiB/GPU · 17.02M tok 14.80 GiB/GPU · 16.96M tok 99.64% (+40 MiB/GPU)
Compiled Kernels / Modules 41,059 / 10,031 40,347 / 9,765 -712 kernels / -266 modules

(Single-request C=1 step latency also dropped -1.7% and C=4 step latency dropped -5.5%.)


Verification & Stability Summary

Every PR passed its SM120 unit, CUDA, and multi-GPU tests, and the full combined 19-PR gb202-preview core passed our complete qualification and stress suite with zero errors:

  • Sustained decode & prefill matrix (llm_decode_bench): 30/30 cells PASS (C=1..32 × ctx=0..128K, 0 repetition loops, C=32 2,985 tok/s @ 0K / 2,814 tok/s @ 128K).
  • Consistency evals: Hotel Lights 30/30 (100%), LAVD 10/10 (100%), Estonia 30/30 (100%), Estonia-long 30/30 (100%), Cold NIAH 5/5, Vision 4/4, Greedy 17*23=391 PASS.
  • 2h 15m parallel agentic soak (live 4× SM120 server):
    • 14,799 requests (14,135 OK, 658 intentional client cancellations, 0 server errors / crashes / loops / corruptions)
    • 1.038B prompt tokens + 3.37M completion tokens
    • 2,558 / 2,558 cold NIAH (24K–128K), 2,391 / 2,391 arith/JSON, 928 / 928 Vision
    • 3,015 DRAM + 12 NVMe prefix-cache restores (481 GiB NVMe, 46,065 snapshot evictions)
    • Post-drain health: 0 leaked KV pages, 0 MiB VRAM drift, 32/32 free slots

PR Stack (19 PRs — All Ready for Review)

1. local-inference-lab/flashinfer (12 PRs)

Merge PR Area & Summary Notes / Dependencies
[ ] flashinfer#158 mHC AllReduce: cluster sizing (cs=4/1), SM co-residency fix, runtime Green Context SM guard Pairs with recipes#83
[ ] flashinfer#160 MLA Prefill: DS4.1 BF16 XV loop optimization & 3-buffer hybrid KV Independent
[ ] flashinfer#161 W4A8 MoE M128: 128-bit vectorized epilogue, M96 tile, tail barrier skip Base for #168
[ ] flashinfer#162 MXFP8 GEMM: SM120 TC-GEMV (M=48, BK=64) and prefill policy tuning Independent
[ ] flashinfer#163 W4A8 MoE Decode: widen coalesced compact routing to 1,024 pairs (C=6..24 win) Merge before #165
[ ] flashinfer#164 mHC Norm: fused lagged mHC normalization in TF32 TMA prefill Opt-in PDL (B12X_MHC_PDL=1)
[ ] flashinfer#165 Decode PDL: SM120 consumer Programmatic Dependent Launch After #163; base for #169; opt-in (B12X_SM120_CONSUMER_PDL=1)
[ ] flashinfer#166 MLA Compress: vectorized aligned ratio-2 latent compression Independent
[ ] flashinfer#167 DSA Indexer: SM120 MXFP4 query groups (qtile=8), request_ids, CTA splits, scratch cap Pairs with recipes#82
[ ] flashinfer#168 W4A8 MoE M128: atomic work-stealing & N3 swizzle (-8.4% to -11.1% MoE prefill) Stacked on #161
[ ] flashinfer#169 GEMV DSMEM: SM120 DSMEM cluster split-K with unified SMEM/reg occupancy gate Stacked on #165; opt-in (B12X_TC_GEMV_DSMEM_SPLIT=1)
[ ] flashinfer#170 PCIe DMA Comm: forward all_gather directly from ring scratch (-10.8% overlapped GEMM+AG) Independent

2. local-inference-lab/hyperflare-recipes (7 PRs)

Merge PR Area & Summary Notes / Dependencies
[ ] #77 MoE Routing: exclude inactive suffix rows from DS4.1 MoE routing Independent
[ ] #78 Sampling & DSpark: compact packed verification (-63% logit VRAM) & DSpark context overlap Merge after #80
[ ] #79 Prefill Overlap: reserve 2 SMs (reserve_sms=2) for overlapped TP4 prefill collectives Independent
[ ] #80 Speculative Sampling: gate inactive proposal steps on device (DcpAllToAll / MTP) Merge before #78
[ ] #81 Attention Overlap: overlap sparse indexer selection with query projection Independent
[ ] #82 MXFP4 Indexer: widen indexer query rows (capped on L20 hierarchical) & bind request page tables After flashinfer#167 bump
[ ] #83 mHC Wiring: select fused AllReduce cluster_size from FlashInfer Pairs with flashinfer#158

Recommended Merge Order & Build Notes

  1. local-inference-lab/flashinfer first:
    • Independent PRs in any order: #158, #160, #162, #164, #166, #167, #170
    • Ordered chains: #161 → #168 and #163 → #165 → #169
  2. Bump flashinfer pin in hyperflare-recipes (uv.lock), then merge recipes:
    • Independent PRs: #77, #79, #81, #83
    • Ordered / paired: #80 → #78, and #82
  3. Opt-in SM120 flags & SM121 (DGX Spark) safety:
    • #164, #165, and #169 currently default to False (opt-in). To reproduce the full gb202-preview numbers during core export, pass:
      B12X_SM120_CONSUMER_PDL=1 B12X_MHC_PDL=1 B12X_TC_GEMV_DSMEM_SPLIT=1
    • All three are strictly gated on SM120 ((12, 0)), and SM121/48-SM guards are in place for DGX Spark / GB10.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions