You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FlyDSL][gfx950] Add balanced FT split-K and tune BF16 (128,7168,12288) - #7866
Add balanced whole-K-tile partitioning to gfx950 FT split-K when the previous partition size is not aligned to block_k. Require complete K tiles and at least stages - 1 tiles per partition. Preserve partition boundaries for previously valid configurations and leave HTI unchanged.
Add block_n=160 to the gfx950 search pool and enumerate split-K candidates before per-configuration validation.
Add --b-non-temporal auto|off|on|both (--flydsl-b-non-temporal alias) to control B-load cache-policy candidates during tuning.
Add one BF16 configuration for (M,N,K)=(128,7168,12288) on gfx950/256 CU: tile 128×160×64, stages 3, split-K 5, waves 2×2, BNT enabled. Its 192 K tiles are partitioned as 39/39/38/38/38.
Retain ordinary BF16 atomic accumulation and the existing tuner accuracy criterion. No preshuffle, FP32 workspace, separate reduction kernel, or public API changes. Advance the FT split-K device-symbol version to invalidate cached pre-change binaries; saved CSV names retain their format.
Before = the previous PR's FP32 atomic split-K + BF16 conversion, not an
upstream-main baseline. After = ordinary BF16 atomic GEMM; accumulation precision
differs. Timings include all GPU kernels needed for the final output.
Measurement
GPU
Before (µs)
After (µs)
Graph, rotating16
A
48.40
41.10
Graph, rotating16
B
48.97
41.51
Default run_perftest
A
54.66
43.81
Default run_perftest
B
54.51
43.83
Graph measurements: 16 independent A/W/output sets, 128 complete calls/replay,
20 ABBA/BAAB blocks; medians shown. Paired rotating latency decreases 15.1–15.3% versus the above baseline. Against torch.mm, the same-card
rotating comparisons are 50.00 → 41.10 µs and 50.65 → 41.52 µs.
Default run_perftest uses its profiler-based protocol; values are medians of
five runs per card. It is not interchangeable with graph-event timing.
A separate trace confirms one GEMM kernel/call, with no post-reduce.
Accuracy: unchanged BF16 tuner criterion (rtol=atol=0.05, <5% mismatches);
observed mismatch fraction is 1.74–1.79%. Strict all-element .01 does not
pass (12.50–12.68% mismatches). No equal-precision or model E2E speedup is claimed.
BNT targets rotating inputs; hot input is faster with BNT off
(36.92–37.09 µs off versus about 41.59 µs on).
ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm
vLLM benchmark: DeepSeek-V4-Pro, MiniMax-M3-MXFP4
ci:all
All standard extended tests (excludes ci:atom_full)
Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 7866 --add-label <label>
One backend per PR:
A PR changes one kernel backend: [Triton/Gluon] (Triton and Gluon count as one), [HIP], [ASM], [CK], [OPUS] or [FlyDSL]. If the title ends up with two backend tags, split the PR -- as stacked pull requests when one part cannot merge without the other.
PR title tags & labels:
Component tags ([Triton/Gluon], [HIP], [CK], [ASM], ...) are added to the PR title and as PR labels automatically from the changed files and re-synced on every push — change-type tags like [fix]/[Perf], op tags like [MLA], and human labels (ci:*) are left untouched. Add the no-auto-title label to stop the title rewrites; labels stay in sync either way.
Reviews:
A reviewer is usually assigned within one working day after the PR is ready for review (see Code Review Process). If nobody has responded for about a week, mention the area contact listed in CONTACTS.md. Want to help review? See REVIEWERS.md.
github-actionsBot
changed the title
[gfx950][Tuning] Retune dsv4 BF16 GEMM configurations only
[HIP] [gfx950][Tuning] Retune dsv4 BF16 GEMM configurations only
Nov 13, 2026
xytpai
changed the title
[HIP] [gfx950][Tuning] Retune dsv4 BF16 GEMM configurations only
[FlyDSL][gfx950] Accelerate plain BF16 GEMM with FP32 split planes
Nov 16, 2026
github-actionsBot
changed the title
[FlyDSL][gfx950] Accelerate plain BF16 GEMM with FP32 split planes
[HIP] [FlyDSL] [gfx950][Tuning] Retune dsv4 BF16 GEMM configurations only
Nov 16, 2026
@coderfeli@aoli26@solinzby1 Please review the normal BF16 GEMM dispatch/workspace contract before merge. Updated head 5a49be2 uses ordinary unshuffled weights, balanced independent FP32 split-K5 planes and a separate BF16 post-reduce. Full normal-API rotating GPU time is 41.8–42.0 us including both kernels (previous PR 48.7–48.9 us); default run_perftest is about43.2 us. Internal scratch is17.5 MiB per invocation. Four API forms, changed-input graphs, separate streams and one-process GPU0→1→0 pass locally. No model E2E improvement is claimed; downstream CI and explicit maintainer approval are still required. Per the request, no docs or test files were added/modified. Details and baseline test failures are in the updated description.
xytpai
changed the title
[HIP] [FlyDSL] [gfx950][Tuning] Retune dsv4 BF16 GEMM configurations only
[FlyDSL][gfx950] Optimize plain BF16 GEMM (128,7168,12288) and (128,3584,7168)
Nov 16, 2026
xytpai
changed the title
[FlyDSL][gfx950] Optimize plain BF16 GEMM (128,7168,12288) and (128,3584,7168)
[FlyDSL][gfx950] Improve rotating BF16 GEMM: (128,7168,12288) and (128,3584,7168)
Nov 16, 2026
github-actionsBot
changed the title
[FlyDSL][gfx950] Improve rotating BF16 GEMM: (128,7168,12288) and (128,3584,7168)
[HIP] [FlyDSL] [gfx950] Optimize plain BF16 GEMM (128,7168,12288) and (128,3584,7168)
Nov 16, 2026
xytpai
changed the title
[HIP] [FlyDSL] [gfx950] Optimize plain BF16 GEMM (128,7168,12288) and (128,3584,7168)
[FlyDSL][gfx950] Optimize plain BF16 GEMM (128,7168,12288)
Nov 16, 2026
xytpai
changed the title
[FlyDSL][gfx950] Optimize plain BF16 GEMM (128,7168,12288)
[FlyDSL][gfx950] Balanced atomic BF16 split-K for (128,7168,12288)
Nov 16, 2026
github-actionsBot
changed the title
[FlyDSL][gfx950] Balanced atomic BF16 split-K for (128,7168,12288)
[HIP] [FlyDSL] [gfx950] Optimize plain BF16 GEMM (128,7168,12288)
Nov 16, 2026
xytpai
changed the title
[HIP] [FlyDSL] [gfx950] Optimize plain BF16 GEMM (128,7168,12288)
[FlyDSL][gfx950] Add balanced FT split-K and tune BF16 (128,7168,12288)
Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
block_k. Require complete K tiles and at leaststages - 1tiles per partition. Preserve partition boundaries for previously valid configurations and leave HTI unchanged.block_n=160to the gfx950 search pool and enumerate split-K candidates before per-configuration validation.--b-non-temporal auto|off|on|both(--flydsl-b-non-temporalalias) to control B-load cache-policy candidates during tuning.(M,N,K)=(128,7168,12288)on gfx950/256 CU: tile128×160×64, stages3, split-K5, waves2×2, BNT enabled. Its 192 K tiles are partitioned as39/39/38/38/38.Retain ordinary BF16 atomic accumulation and the existing tuner accuracy criterion. No preshuffle, FP32 workspace, separate reduction kernel, or public API changes. Advance the FT split-K device-symbol version to invalidate cached pre-change binaries; saved CSV names retain their format.
Performance
MI355X (gfx950, 256 CU), BF16
(128,7168,12288), PyTorch 2.10.0 / ROCm 7.2.4,FlyDSL 0.5.0. Two cards, seeds 11801/11802, code revision
242a79f.Before = the previous PR's FP32 atomic split-K + BF16 conversion, not an
upstream-main baseline. After = ordinary BF16 atomic GEMM; accumulation precision
differs. Timings include all GPU kernels needed for the final output.
run_perftestrun_perftestGraph measurements: 16 independent A/W/output sets, 128 complete calls/replay,
20 ABBA/BAAB blocks; medians shown. Paired rotating latency decreases
15.1–15.3% versus the above baseline. Against
torch.mm, the same-cardrotating comparisons are 50.00 → 41.10 µs and 50.65 → 41.52 µs.
Default
run_perftestuses its profiler-based protocol; values are medians offive runs per card. It is not interchangeable with graph-event timing.
A separate trace confirms one GEMM kernel/call, with no post-reduce.
Accuracy: unchanged BF16 tuner criterion (
rtol=atol=0.05, <5% mismatches);observed mismatch fraction is 1.74–1.79%. Strict all-element
.01does notpass (12.50–12.68% mismatches). No equal-precision or model E2E speedup is claimed.
BNT targets rotating inputs; hot input is faster with BNT off
(36.92–37.09 µs off versus about 41.59 µs on).