Repository navigation
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: Reviews: |
READY FOR HUMAN REVIEWPR Self-ReviewRevision Author self-review accepted. Readiness report: Author answers
Show the author's self-review answersBehavior and intentValidation and unverified scopePR-specific questionChanged op testsPR state
Copilot findings
Code and op-test hygiene
Required CI
Shadow mode reports what would block but keeps the status successful. Set |
Restrict the compute-tile guard to rows declaring FlyDSL without making backend metadata a prerequisite for the existing padded-lookup fixture. Preserve the original lookup test and add host cases for compute tile boundaries, missing metadata and unaffected backend/name classes.
…ark (#8566) * Fix gfx1250 MXFP8 padded selection and tune D06/D08 M128 * Fix MXFP8 lookup guard for rows without backend metadata Restrict the compute-tile guard to rows declaring FlyDSL without making backend metadata a prerequisite for the existing padded-lookup fixture. Preserve the original lookup test and add host cases for compute tile boundaries, missing metadata and unaffected backend/name classes. --------- (cherry picked from commit 7c132b8) Ported from 25c682f42 (MiniMax-M3.1 PD image aiter (m31-img-8273-items 55f09e39f)). Co-authored-by: Codex <codex@localhost> Co-Authored-By: Claude Opus 5.5 <[email protected]>
#8978) * K3 TP1 a8w8 GEMM: compute N tail, underfilled tiles, aligned A-scale loads, retuned rows (#8778 @ ea7a5d8) #8778 (aoli26; base main; open) applied to k3-455-dev as its net change on its 19 files at head ea7a5d8 (2026-11-26T14:47:07Z), 3-way against the PR's main base adbb6ac. The 8 files k3-455-dev had changed (all only by #8246 @ 15808c7) take the PR's version, so all 19 files equal the PR head. It carries the newer #8246 (ccc4270), the table PRs #8579 / #8586 / #8601 and main's #8566 (its compute guard, which #8778 replaces); no other main change rides in. Validated in the K3 1P1D integration branch (aiter zejun/k3-455-dev 627e1eb) on 16 MI455X (wuhuikx/LLM-Booster#578). The PR head has moved on since (204ce9d: merges of #8246 @ 0d6cf15 and of main, which brings #8737); those can follow when #8778 lands. Co-authored-by: zejunchen-zejun <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * Update K3 FP8 kernels to c997 and add exact-M tuning Preserve the existing dev wrappers and bucket tables. Add 162 accepted retuned exact configurations and 3 c997-default compatibility records, with CPU dispatch coverage for all 675 measured points. Backport the three kernel files from c99781c without merging main history. Integrated-head GPU validation remains outstanding. --------- Co-authored-by: aoli26 <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Zhang <[email protected]>
The helper had grown to ~450 lines plus ~450 lines of tests, mostly special cases for renames, moves, multi-file groups, ambiguity and summary counts. It is an advisory hint the reviewer checks against the diff, so drop them: a tuned CSV pairs with the one untuned CSV in its folder whose name has the same tokens, and the four mismatch kinds are set differences over the rows the PR changed. Same findings on recent tuning merges (ROCm#8016, ROCm#8161, ROCm#7109, ROCm#8566, ROCm#8490); renames and moves are left to the reviewer. Also drop the triage audit plumbing for tuning_coverage.txt (A5 findings are backed through verdicts like any other rule), the .toml/tuning JSON triggers (aiter tracks no tuning .toml files) and the unrelated pre-commit change. Key columns are no longer dropped for the whole pair when one untuned cell is blank, which hid real changes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
#8978) * K3 TP1 a8w8 GEMM: compute N tail, underfilled tiles, aligned A-scale loads, retuned rows (#8778 @ ea7a5d8) #8778 (aoli26; base main; open) applied to k3-455-dev as its net change on its 19 files at head ea7a5d8 (2026-11-26T14:47:07Z), 3-way against the PR's main base adbb6ac. The 8 files k3-455-dev had changed (all only by #8246 @ 15808c7) take the PR's version, so all 19 files equal the PR head. It carries the newer #8246 (ccc4270), the table PRs #8579 / #8586 / #8601 and main's #8566 (its compute guard, which #8778 replaces); no other main change rides in. Validated in the K3 1P1D integration branch (aiter zejun/k3-455-dev 627e1eb) on 16 MI455X (wuhuikx/LLM-Booster#578). The PR head has moved on since (204ce9d: merges of #8246 @ 0d6cf15 and of main, which brings #8737); those can follow when #8778 lands. Co-authored-by: zejunchen-zejun <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * Update K3 FP8 kernels to c997 and add exact-M tuning Preserve the existing dev wrappers and bucket tables. Add 162 accepted retuned exact configurations and 3 c997-default compatibility records, with CPU dispatch coverage for all 675 measured points. Backport the three kernel files from c99781c without merging main history. Integrated-head GPU validation remains outstanding. --------- Co-authored-by: aoli26 <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Zhang <[email protected]> (cherry picked from commit 1cc9d02) Rebase onto main 12-03: the 19 files keep this commit's content; only main's later changes are added: the AOT launcher factories of #8678 (mxfp8 / batched wrappers launch gemm_a8w8_launcher.lazy(), _gemm_a8w8_compute_bound_launcher.lazy(), splitk_reduce_launcher.lazy(); _lazy_import keeps _data_ptr), #7449's deferred split-K entry points and #8636's ragged-K fallback. gemm_a8w8_gfx1250.py: this commit's rank0 split-K epilogue and flush_addr (it already carries #8737's flush). gemm_op_a8w8.py: main's #8566 guard in get_mxscale_bpreshuffle_config (no padded row below a compute kernel's M tile) is removed, as on the #8778 head, because the c997 compute kernel serves underfilled tiles; test_gemm_host_dispatch_cache.py takes #8778's test_mxscale_compute_row_serves_underfilled_m_tile in place of main's two guard tests. kimik3 mxscale tuned CSV: this commit's rows (626 changed or added) replayed by key; the result equals this commit's table. Rebase onto main 12-03: main #7449 moved the bpreshuffle row lookup into _bpreshuffle_config(XQ, WQ); this commit's Kimi-K3 exact-row lookup there needs x_scale, w_scale and Y, so _bpreshuffle_config takes them (the deferred split-K path passes a meta tensor of the output's shape and dtype, so it picks the same row as gemm_a8w8_bpreshuffle). Rebase onto main 12-03: op_tests/test_gemm_a8w8_mxfp8_bpreshuffle.py counts reduce launches through splitk_reduce_launcher.lazy (main #8678 replaced _compile_splitk_reduce).
Summary
Reject a padded FlyDSL MXFP8 compute row when the real M is smaller than the kernel's full M tile, preserving the existing native fallback. Add two Kimi K3 TP1 DSpark M128 tuning rows for N7168/K8192 (
o_proj) and N7168/K14336 (down). Without the guard, each new M128 row would also reach M65–127, which the compute kernel's existing shape check rejects because of its cluster-barrier constraint.The successor
1333ca2e58cd6fc7f3b7d72c5b22e1649bcb7b12also fixes the guard's compatibility with lookup-only rows that omit backend metadata. The previous CI run reached an existing padded-lookup fixture at M33/N7168/K1024/32x32, selected its M64 row, and raisedKeyError('libtype'). The guard now usesrow.get("libtype") == "flydsl", so only explicitly declared FlyDSL rows enter this check. The existing test and fixture remain unchanged; 11 repository host cases cover the new guard boundaries and unaffected row classes. This does not make an incomplete row executable or change downstream launch requirements.GPU correctness and performance evidence below belongs to predecessor
01fff67dba848ee5e01aaf1f654c55ee4c0a6ee2. That revision passed the 17 planned GPU shapes in both public API forms; complete-backend ABBA measured 1.545607x for N7168/K8192 and 2.210038x for N7168/K14336. The successor has passed the scoped local CPU and style checks below and is now pushed. At 2026-11-24T15:06:15.126772+00:00, actual new-head Black, Ruff, Repository Dependency and Kernel Provider Interface checks passed. The Aiter Test workflow has queued its Python3.12 wheel build; no Standard Tests or final Aiter Test Gate result is available for this successor. Automatic CI has not been manually rerun. The current-head self-review question is answered below; required baseline CI is still pending. No new-head GPU execution is claimed. Related results: https://github.com/wuhuikx/LLM-Booster/issues/710#issuecomment-7127358888Changes
get_mxscale_bpreshuffle_config, inspect a selected row only whenlibtypedeclares FlyDSL. After exact/padded lookup, reject a parsed MXFP8_128 compute kernel withreal M < tile_mthrough the existing fallback. Generic ragged-M kernels and other backend/name classes retain their selection. This guard does not implement every catalogue shape constraint.(gfx1250, 256, 128, 7168, 8192, 128x128)and(gfx1250, 256, 128, 7168, 14336, 128x128)to the existing Kimi model table. All 301 existing model rows are preserved; the canonical plus four-model default merge grows from 4213 to 4215 keys. The successor compatibility fix changes no CSV.flydsl_mxfp8_128_bpreshuffle_compute_wmma_t128x128x128_mw2_nw2_nb4_sk4_cm1_cn4: tile128x128x128, four buffers, unfused split-K4, cluster1x4. Validation and timing include complete FP32 scratch and reduction.libtype, Opus and Triton rows; generic and other FlyDSL names. Preserve every original test/fixture AST, including the existing lookup and warning-once tests.The new rows are selected only at real M128. M65–127 can find them during raw padded lookup but the guard rejects them; M64/M129 retain their existing fallback. A first N/K row also causes other M values to walk padding lookup before falling back. No latency-neutrality claim is made for that lookup-path change.
The shared guard also corrects 253 underfilled-M selections from existing table rows:
Table keys contain neither model name nor output dtype. Matching native callers can consume these rows; runtime evidence covers BF16 output and the tested default native provider. Explicit configuration overrides, power selection and external allocating-form providers are outside that validation. Other matching compute rows supplied through shared lookup also receive the guard.
Performance (if applicable)
Historical native1120 same-host measurements, full TP1 M128, one gfx1250 GPU with 256 CUs and NUMA balancing 0:
The CSV
usvalues are the medians of the two candidate-record medians: 11.482124775648117 and 14.264249801635742 µs. Each record contains 20 HIP-event samples of ten complete backend calls, including split-K reduction. Quantization, shuffling, reference work and profiling are outside the timed region. These are single-round microbenchmarks without an across-run confidence interval, serving-bucket proof or model-speedup claim. CSVbwis nominal byte-throughput arithmetic, not measured HBM bandwidth.Measured native1120 AITER:
226aa69a751fe7ce7ff356eeb594a0916a491798; ATOM:8eed545250668b7d1d18e9043e829eefc9232f47; image tagrocm/fw-bringup:gfx1250-atom-k3-20261120, local image IDsha256:82967ce7dc2b3857f30bc7e0e659a66d3a4a1dd041e046575e3fe5fc14534a78. The compute and reduction source bytes match the preparation main, but wrapper/catalogue/dispatcher changes prevent treating these historical measurements as installed-main timing. A separate complete-backend ABBA on the actual installed revision is now accepted below.Actual installed-head complete-backend comparison
On exact head
01fff67dba848ee5e01aaf1f654c55ee4c0a6ee2, with the same independent full installation used for public correctness:Before/after columns are the medians of the two corresponding record medians. The baseline is the actual source-resolved kernelName-only fallback; the candidate is the complete1195 split-K4 configuration. Both are explicit inputs to the same real installed FlyDSL bridge, including candidate FP32 scratch and reduction. This does not claim that the candidate installation's default public dispatcher selects the old baseline. Default public candidate routing is covered by the separate checks below.
Eight complete records contain160 HIP-event samples, ten complete backend calls per sample, and16 full-output eager/NaN-poisoned graph checks. Maximum mismatch ratio was0.0102691650390625, maximum absolute error128 under the unchanged.01/.01/.05 policy. Warmup retained the0.5-second synchronized target,2-second bound, minimum10 and maximum32768 replays; no reduced recipe or retuning was used. One ABBA round per point gives no across-run confidence interval or model-performance conclusion.
Actual container execution was2026-11-24T11:28:36.909Z–11:28:46.982Z. Independent acceptance at11:32:00Z checked109 conditions,20 original exported files, the exact archive/plan/runner/public-proof/full-installation bindings, all raw samples and recomputed summaries, actual Docker command/mounts, boot/physical GPU and owned cleanup. The container exited0 and was removed, FD/KFD were empty at cleanup and NUMA was restored. The retained StartedAt kernel window contained no GPU-relevant matches. Original result SHA256:
f37ff2a791f291b02174d2752bd02e12f878b58ce5b9adb10fb8feca44e0f5f3.Command:
python run_combined_timing.py --binding <existing-exact-head-gpu-binding.json> --phase gpu --output <new-abba-result.json>. This reused the existing checkout, venv and accepted public proofs without reinstalling or rerunning the17 numerical shapes.Testing
1333ca2e58cd6fc7f3b7d72c5b22e1649bcb7b12(automatic run 45420248715 awaiting wheel build/tests; no manual rerun)1333ca2e58cd6fc7f3b7d72c5b22e1649bcb7b12Successor CPU/style evidence and its limits
The successor's only production delta from
01fff67disrow["libtype"]→row.get("libtype"). A local reproduction using the original selector, fixture and test AST reproduced the exact oldKeyError. After the fix, the unchanged lookup test passed 4396 shape/M cases and the unchanged warning-once test passed 598 lookup calls. The 11 added repository cases passed. The local review recorded 4278 elementary assertions; these are not 4278 independent tests.The harness executed extracted original/added function, fixture and test AST with pytest-decorator and scoped-monkeypatch adapters. It did not import the full framework or run full pytest. The reviewed Python
getPaddedMmodel was reused; the exact current C++ source matched SHA25613272ecfbef2dbf0c3cf1ac4b6808b835f3cde3f96afbd606b6bb9bd5f7f0f1a, but compiled FFI was not invoked in this CPU review.All five exact-head mxscale tables contain
libtypein all 4215 raw rows. Old/new selection comparison across 30460 per-table lookup cases found zero differences. That supports compatibility equivalence for these complete real rows; it is not fresh GPU evidence. Independent source review passed 86 checks at 2026-11-24T14:42:38.542460Z. Final style review at approximately 14:46:14Z changed only two redundant assertion wraps in the tests and preserved the reviewed AST. The production file was unchanged by formatting.The old PR8566 CI run
45385338103, shard1 job138473955720, reported one failed and 31 passed in this host test file; the captured log identifies the missinglibtypelookup. This is a Python metadata failure, with no evidence in that failure of a GPU hardware fault. The old run completed with seven successful MI35X shards, this one failed shard, and a failed Aiter Test Gate (verified 2026-11-24T14:50:28.134917Z). The repaired successor is now pushed. Its automatic Aiter Test run is 45420248715; the latest actual new-head CI scope is: At 2026-11-24T15:06:15.126772+00:00, actual new-head Black, Ruff, Repository Dependency and Kernel Provider Interface checks passed. The Aiter Test workflow has queued its Python3.12 wheel build; no Standard Tests or final Aiter Test Gate result is available for this successor. Automatic CI has not been manually rerun. The current-head self-review question is answered below; required baseline CI is still pending.Retained predecessor GPU evidence
The tested head was
01fff67dba848ee5e01aaf1f654c55ee4c0a6ee2, with sole parent526972dad8f015fe735b4655708675b11d7c852b. A complete independent checkout and venv with FlyDSL 0.5.3 passed normal import and the actual default pandas merge of all 4215 keys and cells, including inherited blank fields. The exact guard and both CSV rows were checked before GPU work.Coverage was 17 shapes × two public forms (
out=and allocating) = 34 cases, with 68 full-output eager/NaN-poisoned graph checks: both new N/K pairs at M64,65,112,113,127,128,129, plus N7168/K12288/M65, N7168/K33792/M65 and N67584/K7168/M129. Actual Python/JIT padding validated all 17 lookups. A passive bridge recorded real kernel names, configurations, full shapes, output identity and complete split-K geometry. Only M128 at each new N/K selected1195; the smaller representatives used the source-resolved kernelName-only fallback.The unchanged policy was
rtol=0.01,atol=0.01, maximum mismatch ratio0.05 against FP32-dequantized inputs. Maximum observed mismatch ratio was0.015564903846153846 and maximum absolute error256. This was tolerance-based validation. Hardware/software were gfx1250/256CUs, BF16 output, Torch2.11.0+rocm10.1.0a20260811-bkc.20260820, HIP7.16.26315, FlyDSL0.5.3 and NUMA balancing0.Independent GPU acceptance at 2026-11-24T11:25:42Z checked five stages with539 checks, binding115 original exported files to result, source/installation, Docker command/mounts and owned cleanup. All five containers exited0 and were removed, device FD/KFD were empty at cleanup, and NUMA was restored. The separate full-install CPU review had168 checks and is not counted as GPU numerical coverage.
Retained validation commands used standalone runners:
The original guard source review at 2026-11-24T10:31:36.875820Z covered4213 merged keys,104 families and26520 small-M scenarios, with253 intended rejections and zero exact-row changes. Runtime checks covered the listed representatives: the remaining59 smaller M values per new N/K and250 other existing-range points were not numerically tested. There is no performance claim for guard/fallback lookup paths, other dtypes/providers, model/GSM8K/serving or newer upstream. Upstream was
7225ff9915740eedc583fc065209b13e6af1c9d4when read during preparation; these results do not validate a rebase.Documentation
Dependencies
Breaking Changes
No public API or CSV-schema change. Native selection changes at the two M128 keys and the existing underfilled compute ranges above. The successor restores lookup-only rows without backend metadata. Dense PR#8557 and f_b PR#8561 are separate changes and are not included here.
PR Self-Review
Reviewed revision
1333ca2e58cd6fc7f3b7d72c5b22e1649bcb7b12Behavior and intent
Published successor
1333ca2e58cd6fc7f3b7d72c5b22e1649bcb7b12, sole parent01fff67dba848ee5e01aaf1f654c55ee4c0a6ee2. The local tree check proves onlyaiter/ops/gemm_op_a8w8.pyandop_tests/test_gemm_host_dispatch_cache.pychanged from that parent; all other8911 tracked tree entries and all489 CSV files are unchanged. Source and style evidence is bound to the exact committed file bytes. Independent local commit review passed 36 checks at 2026-11-24T14:54:36.001489Z. One ordinary fast-forward push and the remote branch/PR head readback confirmed this exact commit. No human approval is claimed.The shared guard rejects a selected compute tile larger than real M before launch. The compatibility fix restricts inspection to rows explicitly declaring FlyDSL and leaves the existing incomplete lookup fixture unchanged. Optional metadata access does not relax downstream kernel launch requirements. Both measured M128 rows and the original301 model rows are unchanged by the successor.
Validation and unverified scope
The new commit has the local CPU AST, table-comparison, style and exact-tree evidence above. Full framework pytest and patched-head GPU execution remain unrun locally. At 2026-11-24T15:06:15.126772+00:00, actual new-head Black, Ruff, Repository Dependency and Kernel Provider Interface checks passed. The Aiter Test workflow has queued its Python3.12 wheel build; no Standard Tests or final Aiter Test Gate result is available for this successor. Automatic CI has not been manually rerun. The current-head self-review question is answered below; required baseline CI is still pending. All actual GPU correctness and ABBA results explicitly belong to
01fff67d; the one-expression equivalence over complete real rows does not relabel those runs as successor testing. Other shape/dtype/provider/architecture coverage, across-run confidence intervals and model/serving effects remain unverified.PR-specific question
The current-head self-review asks: "Which exact workload keys consume these configuration changes, and what evidence shows that unrelated shapes keep their previous selection?"
The two added keys are
(gfx1250, 256 CUs, M128, N7168, K8192, 128x128 scale blocks)and(gfx1250, 256 CUs, M128, N7168, K14336, 128x128 scale blocks). They select existing complete compute ID1195. Only real M128 selects these rows; padded M65-127 lookups are rejected by the full-M-tile guard and retain fallback, and M64/M129 retain fallback. The key has no model-name or output-dtype field, so other native callers matching the key can consume it. The new N/K families can add a padding lookup before fallback; no unchanged-latency claim is made.This shared guard also intentionally changes 253 invalid old selections: M65-127 for N7168/K12288 and N7168/K33792 (tile128), and M129-255 for N67584/K7168 (tile256). It is not limited to the two new keys. All 301 original model rows remain; the predecessor's real default pandas merge had exactly 4215 unique keys. Its source review covered 4213 prior keys, 104 families and 26520 small-M scenarios, with the 253 intended rejections and zero exact-row changes. Generic/ragged kernels and other backend/name classes retain their lookup selection; explicit providers/overrides are outside the default-path claim.
The compatibility successor changes no CSV. Its 30460 old/new per-table lookups across all five real tables and 4215 rows found no selection difference because those rows all declare libtype. The added host cases cover unsupported/supported tile boundaries, missing libtype and unrelated backend/name classes. Actual public dispatch and full-output GPU evidence still belongs to predecessor01fff67d: 17 representative shapes, both public forms, 68 eager/poisoned-graph checks. Unmeasured neighboring M values, other dtypes/providers and current-head GPU execution remain unverified; source sweeps and CPU equality are not substituted for that evidence.
Changed op tests
op_tests/test_gemm_host_dispatch_cache.pyadds 11 parameterized host cases. Six exercise tile128/tile256 at tile-1, tile and tile+1; the other five cover missing libtype, Opus, Triton, generic FlyDSL and another FlyDSL name class. Existing padded-lookup and warning-once tests remain unchanged. Those tests did not exercise the compute tile-size guard boundaries or its backend/name filtering. The missing-metadata case catches the KeyError introduced by the first guard, and the below-tile cases catch a disabled guard. A local negative mutation confirmed the new tile test rejects that disabled guard. These checks exercise host selection only; they do not duplicate or replace GPU numerical tests. The actual repository CI host test remains pending in the new automatic run.