Skip to content

perf(hip): Ripple DFlash2 drafter projections on the m32 WMMA twin (transposed at load, default-on) - #360

Draft
AzeezIsh wants to merge 4 commits into
mainfrom
perf/hip-dflash-drafter-t
Draft

AzeezIsh wants to merge 4 commits into
mainfrom
perf/hip-dflash-drafter-t

Conversation

@AzeezIsh

Copy link
Copy Markdown
Contributor

Draft. Not for merge yet. It waits on the same-day main ST-995 control (framework f286, running).

What

On gfx1151 the DFlash2 drafter's seven per-layer NVFP4 projections are transposed at load. They then run through the #354/#359 m32 WMMA verify twin instead of w4a16_gemv_batch16. The native copies are freed, so memory is flat. ATLAS_DFLASH_NVFP4_T=0 restores the native GEMV. The drafter only proposes tokens, and verification is exact.

Evidence (DevLab Strix runner, Ripple-65B + DFlash2, C1 steady decode)

Round This branch Control Probe
r1 5.9 5.6 (=0) byte-identical
r2 6.0 5.5 (=0) byte-identical
r3 (stacked on #359) 6.6 6.3 / 6.2 (main) byte-identical
r4 (43444356592 vs 43444361778) 6.6 6.3 (main) byte-identical
  • The log reads NVFP4 transposed WMMA layers true.
  • 27B, C8, NUM_DRAFTS=3 (43454178979): neutral, 0 faults, 7/8 identical to solo (same as main).
  • ST-995 on framework, f284: 77.09 / 80.68 against the f263 baseline of 77.29 / 80.87. That is −0.2 pp, about 0.15 SE. The same-day main control, f286, decides.

🤖 Generated with Claude Code

AzeezIsh and others added 4 commits November 13, 2026 04:38
…LAS_DFLASH_NVFP4_T)

The Ripple DFlash2 drafter's projections run w4a16_gemv_batch16 on the native
[N, K/2] layout, which is dot2-issue-bound near 50 GB/s on gfx1151. With
ATLAS_DFLASH_NVFP4_T=1 the seven per-layer twins are transposed in place at
load (native copies freed, no extra resident bytes) and run on
w4a16_gemm_t_m128_f16a / its m32 twin: 15-38% faster per GEMM in kbench
(DevLab 43394490022). Opt-in pending the e2e A/B.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two DevLab A/B rounds (43402973925/43402978892, 43410283439/43410279144):
DFlash2 steady decode 5.9 vs 5.6 and 6.0 vs 5.5 tok/s, greedy probes
byte-identical. ATLAS_DFLASH_NVFP4_T=0 keeps the native batch16 GEMV.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@AzeezIsh

Copy link
Copy Markdown
Contributor Author

Same-day main control, framework f286 (e851e96): 77.29 / 80.87, identical to f263, so Ripple ST-995 on main is reproducible to the item. This branch (f284) scores 77.09 / 80.68.

The whole difference is one item: live_irrelevance 93.18 vs 94.32 (1 of 88). Every other category is identical. The drafter changes which tokens are proposed. The verify-block width then changes, and with it the verify GEMM shapes, so one borderline item flips.

By the ≥-baseline rule this is below, so this PR stays a draft on hold for a maintainer call. Speed is 4/4 rounds positive (+5–9% steady DFlash2), with byte-identical greedy probes, and the score is −1 item of 995.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant