Repository navigation
[JIT] [Perf] Reduce Python overhead in tuned GEMM dispatch - #8030
ZLkanyo009 wants to merge 1 commit into
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: Reviews: |
WAITING ON AUTHORPR Self-ReviewRevision Waiting for the PR author. The readiness report will appear after the self-review answers are complete for this revision. Questions to answer in the PR description
Edit the Missing or invalid answers
Shadow mode reports what would block but keeps the status successful. Set |
|
Update: the plans
Validation (MI308X,
The PR description is updated accordingly. cc @valarLip |
|
CI:
#8038 (stacked on this PR) has merged this branch (f9ddb25). cc @valarLip |
|
Follow-up on the test-only fix in be8b061: I re-ran cc @valarLip |
|
Why be8b061 was not enough. Its premise was wrong. Both MI35X runs used solution 441462 for the 64x64x64 problem. Decoding the gfx950 hipBLASLt library of ROCm 7.2.4 (the CI image's version) shows it is the hand-written kernel Its disassembly shows what does happen:
Its result then depends on load latency and on what the LDS last held. That happens with fresh descriptors as much as with kept ones, since the old path runs the same kernel with the same arguments. Two agreeing runs right after a synchronize said nothing about 1100 back-to-back calls. This also fits the log: the printed elements (rows 0, 1 and 63) are equal and only some elements differ, whereas a reuse bug changes nearly every element (the mutants below show this). With K >= 512 the kernel takes its regular prefetch path. The other cases in this file all use K >= 512 and passed on MI35X; the bias-free bf16 ones most likely ran this kernel too (the run does not print which solution a passing case used). aiter's tuned tables do not use solutions 441460-441462. What the test does now (aadb785):
Real bugs still fail. On MI308X I rebuilt
Local runs (MI308X, gfx942, at aadb785, #8038, which is stacked on this PR, has merged this branch (c8004f4). Both PR descriptions are updated. cc @valarLip |
|
@valarLip Pushed aadb785..f9d17dc: three commits from a self-review against the maintainer guidelines, and a merge of main (#7798 changed Self-review against the maintainer guidelines
Found while rewriting:
Verification (MI308X, gfx942, at f9d17dc,
Waiting for the MI35X run on f9d17dc. #8038, which is stacked on this PR, has merged this branch (4541de3). |
`plain_eager` read torch._C._len_torch_dispatch_stack, _are_functorch_transforms_active and _is_tracing through getattr with a None default, and `probes_available` turned the FP8 GEMM and quant fast paths off when one was missing. torch 2.1 and 2.4 have all three, so that branch could not run (the same change as #8030's 674d326). The checks are now called directly, and `probes_available` is gone from the two callers. `plain_tensor_type` is private: only `plain_eager` uses it. No change in behaviour. On MI308X (gfx942): op_tests/test_a8w8_eager.py, test_quant.py, test_gemm_a8w8_bpreshuffle_out.py and test_gemm_a8w8_bpreshuffle_pad_k.py (84 passed, 21 skipped) pass. Co-authored-by: Cursor <[email protected]>
Same structure as #8030's test_tuned_gemm_eager.py: plain aiter op test functions, main() with the parser and the sweeps, a markdown table per test function, an arch gate on get_gfx_runtime(). - The GEMM shapes are routed by a function installed over get_GEMM_config_with_quant_type, the attribute both paths call through: each shape runs once as a CK row and once with no row, so the test no longer reads the tuned CSVs and runs the same cases on every card. A CKTile row and a K-padded weight check that the fast path declines. - Which path ran is read from the profiler, as in #8030's test. - GEMM results are compared with the custom op bit for bit and with a float32 dequantized product; quant results with the custom op bit for bit, their scales with aiter.pertoken_quant, and every dequantized value to within one quantization step of the input. The tables carry device time, host time per call, TFLOPS / TB/s and error. - AITER_LOG_MORE=2 is set in a child process instead of patching the module. On MI308X (gfx942) the file passes in 21 s. Host time per call, custom op vs fast path: GEMM 23.4-24.2 vs 14.7-15.0 us, quant 31.6-32.6 vs 21.1-21.4 us (the 2112-row shapes). Each of these mutations makes it fail: no grad check in plain_eager, a non-CK row taken as CK, no K check, a static quant scale ignored, the quant stream not set. Co-authored-by: Cursor <[email protected]>
|
MI35X run on f9d17dc (44050614739): 7 of 8 standard-test shards pass, including the two files this PR changes ( Shard 5 fails in
This PR touches neither file, so the failure is the same without it. Merging main again will clear it once main fixes that test. cc @valarLip |
|
Pushed f9d17dc..8985895: a merge of main (b9e08da, no conflicts) and one commit that moves the C++ plan reuse out of this PR. Split. This PR was about 1,500 lines in 4 files, over aiter's 1000-line review bar, and its two halves are independent: the Python fast path does not need the C++ change and the C++ change speeds up the existing custom-op path on its own. The C++ half (
This PR is now Verification at 8985895 (MI308X, gfx942):
CI shard 5 ( Waiting for: MI35X Aiter Test on 8985895 (run 44099742981). cc @valarLip |
Main's #6828, merged in with #8030, adds signed-INT8 operands to gemm_a8w8_bpreshuffle and makes its FP8 path assert that XQ has WQ's dtype. The fast path checked only WQ's dtype, so an XQ of another dtype with an FP8 WQ ran the CK kernel where the custom op now raises. The fast path now declines unless XQ and WQ are both FP8. INT8 calls run FlyDSL kernels, which it never stands in for, and reach the custom op as before. #6828 also documents the INT8 contract on the custom op's body, which this PR keeps as the private _gemm_a8w8_bpreshuffle_op, while the public gemm_a8w8_bpreshuffle had a one-line, FP8-only docstring. The docstring moves unchanged to the public function. op_tests/test_a8w8_eager.py: a BF16 XQ with an FP8 WQ reaches the custom op and its "dtypes must match" assertion. With the new check removed, the call takes the fast path and the test fails.
|
@zoe-cop Pushed 8985895..f5b8e74: one commit for your fallback-timing follow-up. No merge of main was needed, since main has not changed
Host time per call on MI308X (gfx942), f5b8e74. These rows come from
Where the extra goes. In a tight loop, a declined
None of these is worth 0.6 µs. Against the pre-fast-path tree. I also compared the merge base b9e08da with this head in separate processes: hostbench bursts of 16, median of 7 rounds, CPU 92, two alternating warm runs and one cold run. The scratch script is not committed. On these routes,
The fallback therefore costs 0–1 µs warm and 1–3.5 µs cold against the wrapper it replaced, rather than the 3–7 µs that the in-tree table shows. The custom op body itself got 1–2 µs cheaper in this PR, because asm is not in Verification at f5b8e74 (MI308X, gfx942; gfx950 not run here):
#8038 merged this head (bbc15e6, merge only) and its test passes there. Waiting for: MI35X Aiter Test on f5b8e74. cc @valarLip |
|
yes, f5b8e74 resolves this. The in-tree 3–7 µs overstates the change against main because that baseline is also cheaper here; your 0–1 µs warm / 1–3.5 µs cold comparison covers that. No further change requested here. — zoe-cop · automated reply. |
|
@valarLip Pushed 3de45f9..84f7f18: one merge of main (c28a838), to clear the conflict with #8075 (ee71544), which routes Conflict. It is in Fast path and the plugin route. The fast path calls hipBLASLt without reaching
Verification at 84f7f18 (MI308X, gfx942; gfx950 not run here):
Host time per
The route's dispatch does not eat the gain: with nothing enabled, the fast path costs the same as before the merge, and the output SHA-256 of every shape is the same in all three trees. The limit is that the gain lasts only while no provider is enabled. With a provider enabled that serves another op only, I updated the description: the plugin condition under Changes, the post-merge numbers under Performance, and Reviewed revision 84f7f18. Waiting for: Aiter Test on 84f7f18. #8038 will merge this head next. |
|
@valarLip Pushed 84f7f18..1243b4b: one merge of main (42aab0f), to clear the conflict with #7514 (a3d7388, gfx1250 a16w16 OPUS tuning). Conflict. It is in Fast path and #7514. #7514 changes two things. The tuned lookup now resolves 96-CU OPUS rows on gfx1250 (and checks a strict device's kid under its own arch).
Verification at 1243b4b (MI308X, gfx942; no gfx1250 kernel ran, only the choice is checked):
Host time per
The load average was 15–21; the 35.5 and 67.4 µs runs are outliers. The output SHA-256 of every shape is the same on main and after the merge. I updated the description: the gfx1250 case under Changes, the numbers under Performance, and Reviewed revision 1243b4b. Waiting for: Aiter Test on 1243b4b. #8038 will merge this head next. |
|
@valarLip The Aiter Test Gate at
No further changes from my side; #8038 stays stacked on this head. |
Merge #8030 at be6286d, which incorporates main 2eb9ef3 and retains the CPU Torch fallback through the shared arch helper. The five-file patch against the stacked base has the same stable patch ID as before this merge. CPU GEMM resolution and Torch fallback bodies are identical to the validated #8030 parent. Black, Ruff, AST parsing and diff-check pass. No GPU or performance rerun; this remains stacked on lingzha/tgemm-eager-fast-path.
|
@valarLip Merged current main to resolve the conflict. Merged main CPU validation: provider interface/contracts 145 passed with GPUs hidden; Black, Ruff and diff-check passed. An isolated source-body probe with real CPU tensors checks 48 numerical and out-buffer cases against both main and a Torch reference, the CPU eager decline, output-dtype errors and architecture-error propagation. It reproduces the old-head CPU failure. This probe does not import the full GPU package or test GPU dispatch. The eager launch body's AST is unchanged; the Torch backend and tuned-lookup function ASTs match main. No new GPU or performance run was made for this merge. Earlier GPU/performance results below remain tied to their stated revisions; new-head CI is pending. |
|
@valar-cop review |
| return result if ndim == 2 else result.view(*A.shape[:-1], n) | ||
|
|
||
|
|
||
| def gemm_a16w16( |
There was a problem hiding this comment.
this makes the launcher default for nearly every eager bf16/fp16 tgemm.mm, but only aiter jobs ran here. please add ci:all and get it green on this head, vllm not covered by the manual numbers..
There was a problem hiding this comment.
I checked the actual downstream logs for current head be6286d7d849. The ATOM accuracy jobs and vLLM benchmarks did execute successfully. However, the two green SGLang jobs did not run any tests:
Both report Unknown suite, No tests found, and Test Summary: 0/0 passed, then exit 0. Please fix the suite selection and rerun with nonzero tests before treating the SGLang part of this request as complete. This is a CI coverage gap, not evidence of a GEMM failure.
There was a problem hiding this comment.
@zoe-cop The zero-test selection is fixed by 6bf2b5cb, retained at current head a8c714e3ab7c. The helper invokes the existing R1-MXFP4 and V3.2 TP8 test methods explicitly, preserves their accuracy thresholds, and makes timeout exit 124 terminal.
Both selections now execute a test. At 2f20b055, R1 passed at 0.965 against 0.93. The current-head V3.2 job failed during decode-graph setup: gemm_a8w8_blockscale_bpreshuffle rejected M=512, N=128, K=7168 with BF16 output and config=None (This GEMM is not supported!). The native module built and imported before the error; no accuracy score was produced.
This closes the selection/zero-test defect, but not the request for all downstream CI to pass. The V3.2 cause remains unresolved, and I am leaving that requirement open. The earlier green jobs reporting 0/0 remain excluded from accuracy evidence.
There was a problem hiding this comment.
yes, the zero-test gap is closed at a8c714e3ab7c: the helper invokes both methods explicitly, the head R1 job is green, and V3.2 now executes instead of reporting 0/0.
I would not attribute the V3.2 failure to this PR. Its log shows a tuned-config miss for M=512, N=128, K=7168 on this gfx950 device, then the untouched gemm_a8w8_blockscale_bpreshuffle CK default raising This GEMM is not supported!; nothing in this diff reaches that op. Main's green V3.2 run used the suite command, not this method, so it is not a passing baseline. Running the explicit method at base c86d4908 would establish whether the gap is pre-existing.
— zoe-cop · automated reply.
valarLip
left a comment
There was a problem hiding this comment.
⚠️ Action required before merge: change the approach
Thanks for the detailed numbers. The problem is real: eager BF16/FP16 GEMMs spend 54 µs (warm) to 111 µs (cold) per call in Python against 19–37 µs for hipBLASLt itself, and a host-bound eager prefill pays that ~288 times per forward. We want this fixed, but not through a second dispatch path.
Why not a parallel fast path
_hipblaslt_eagerhas to re-derive when it is safe to bypass the custom op: torch.compile/jit tracing, dispatch/function modes, functorch, tensor subclasses, grad, non-reshape inputs, non-hipBLASLt configs, enabled plugin providers,AITER_TUNE_GEMM/AITER_LOG_MORE, re-registered ops, the first call of a process. Every future change to_gemm_a16w16must be mirrored there; it already needed two re-syncs (#8075, #7514) while this PR was open.- Every non-hipBLASLt shape now pays the declined guard plus a second config lookup: +3–7 µs per call on torch / skinny / Triton by your own fallback table. Those are mostly the small decode shapes.
- The test is 716 lines for 277 lines of product code.
What we'd like instead
- Remove the per-call overhead from the normal path, so every caller benefits: the function-level import, the per-call device query, the
str(dtype)in thelru_cachekey, the per-call env read insave_shapes, and the per-callaiter_tensor_tconversion of the weight (your weight-handle cache is fine there). - Re-measure
tgemm.mmwith the same protocol (warm/cold, same shapes, main vs head, output SHA-256), together with #8116. - Only if what remains is the cost of the
torch.opsdispatch itself and still matters for TTFT, propose a bypass limited to the hipBLASLt rows, with no extra cost on other backends, and a test sized to that change.
Please also give the PR a short squash message describing the final change.
Maintainer decision on the approach; no line-by-line review yet. Reviewed at the PR description and file list.
Preserve the ordinary BF16 dispatch and cache changes from #8030. Keep the independent FP8 eager guard and clarify its module scope. The four-file FP8 delta passed independent source review and syntax/Black/Ruff/whitespace checks. No new GPU or performance result is claimed for this merged head.
|
@valarLip The change of approach in your review is implemented in 6bf2b5cb, retained at current head
Validation includes nine CPU descriptor-control tests with no skips, five detected key mutations, and the bounded The SGLang zero-test selection was also fixed, but the downstream-CI request remains open: current-head V3.2 executes its test and fails during decode-graph setup in a CK GEMM, before an accuracy result. I am recording that separately in the existing CI thread rather than treating a nonzero test count as a passing result. |
aiter PR #8030 — Reduce host overhead in the normal tuned GEMM pathCaches device/config and const-weight descriptor metadata inside the existing registered GEMM route, while repairing two SGLang test selections. Review (advisory):
Pinned source: head The original scanner and gate scripts ran unchanged under Python. The read-only GitHub/Git fetch steps used direct CLI equivalents because Bash is unavailable; The binary-patch apply diagnostic was refuted by an actual three-way merge: Actual scanner commands and output (local paths replaced by variables)Actual eight-gate output, including any retained artifact-format correctionEarlier malformed or incorrectly encoded local review artifacts, if present, remain in the log below. Only affected gate commands were rerun after correcting artifact format. The final card contains the findings recognized by the final card gate; no product code was changed by these corrections. |
aiter PR #8030 — Incremental CI-selector follow-upRuns the existing descriptor-cache CPU suite and tuned-config lookup checks on pull requests. Review (advisory): ✅ NO FINDINGS (not independently refuted) Pushed The incremental review uses AITER main review-pr; Actual incremental rule/gate commands and CPU validationThe first rule command used an invalid subcommand and was corrected to the documented |
|
Resolved the new conflict against main Independent review verified that the zero-row branch and upstream test are unchanged from main, and that the remaining GEMM body/cache helpers preserve the previous PR behavior. Twelve CPU metadata cases plus the dtype-error case passed; Black and Ruff pass. No new Torch/GPU/model result is claimed for the merge. The exact-CK CI-startup diagnosis and current-head CI remain open. |
|
Current-head CI (
The wheel build, results collection, and tuned-op benchmark jobs succeeded, but they do not override these failed checks. No code change, additional CI retry, or merge was performed. This is separate from the previously recorded downstream DeepSeek graph-capture failure. |
Preserve main's plugin CLI tests and the tensor descriptor CPU gate.
|
Updated to The CI command now retains main's Validation: independently checked the actual merge tree, final file/blob/mode identities and both parents; These are incremental conflict-resolution checks, not a new full-PR clearance. There is no new native/GPU/model/performance result. Existing review requirements and CI gaps remain open; the previously observed HGEMM, FlashKDA and CK failure causality remains UNKNOWN. Actual incremental review and CPU log excerptsUsed
|
|
The
Card
Step 8 gates |
|
CI triage for
These findings do not establish model correctness or a stable performance gain, and do not resolve the outstanding design review. A main update alone is not yet supported as a fix for the V3.2 failure; the next useful comparison must actually execute the same model path. |
Reduce Python metadata and tensor-descriptor work in the ordinary tuned GEMM path. Calls continue through the registered custom ops and plugin routing; there is no parallel eager hipBLASLt bypass. This PR contains three GEMM product files and three directly related test files, with no CI, workflow, selector or snapshot-golden changes. ## Changes - Cache architecture/CU metadata by explicit device, resolving an unindexed CUDA device before caching. Use dtype objects in the config LRU key and convert to the existing CSV strings on misses; keep the shape-recording flag cache. - Let only `_hipb_mm` opt into a private, locked, 1024-entry cache for its const `mat2` descriptor. The key includes pointer, shape, strides, dtype and device. The cache retains no Tensor or Storage; subclasses and other arguments use the original conversion path. - Preserve registered public ops, plugin routing, fake implementations, output handling, logging, ABI checks and live stream selection. Main's M=0 return remains before any architecture/cache/backend lookup. - Keep the descriptor-cache CPU tests, tuned-config/device-cache lookup tests and public-dispatch operator test. The gfx1250 legacy fixture checks the actual TDM launcher, transposed B view, forwarded parameters and strict-target rejection. This follows the [maintainer's request to optimize the normal path](#8030 (review)). Acceptance of the opt-in `compile_ops(tensor_cache_args=...)` contract in the shared JIT core remains a separate design-review question. ## Performance The implementation at `2f20b055` was measured against `c86d490828097b26aade3e6002a5537cc56ddb52`, which includes merged #8116, on one gfx942 80-CU partition with Torch 2.10.0 / ROCm 7.2.4. Both arms used the same native build, real config lookup, selected solutions/kernels, inputs and output SHA-256 values. The parallel eager bypass has been removed. Three paired rounds completed in order A1, B1, B2, A2, A3, B3. Each process measured all six cases with 31 warm-host, 31 cold-host and 20 GPU-event samples per case; table values are medians of the three per-round medians, in microseconds. | M × N × K | Output | Warm host base → head | Cold host base → head | Event span base → head | |---|---|---:|---:|---:| | 256 × 512 × 1024 | allocate | 48.868 → 46.660 | 103.431 → 99.418 | 81.881 → 82.421 | | 256 × 512 × 1024 | out | 44.328 → 42.716 | 94.185 → 90.075 | 76.221 → 76.441 | | 1056 × 324 × 10240 | allocate | 52.765 → 51.715 | 109.682 → 107.157 | 244.422 → 242.982 | | 1056 × 324 × 10240 | out | 48.787 → 47.045 | 100.998 → 98.467 | 238.762 → 239.341 | | 2112 × 513 × 2560 | allocate | 48.376 → 46.380 | 101.782 → 99.526 | 157.561 → 157.961 | | 2112 × 513 × 2560 | out | 44.827 → 42.242 | 93.119 → 89.845 | 152.021 → 152.201 | **Stable performance improvement is not established by this run.** Aggregate warm-host medians are 1.99%–5.77% lower and cold-host medians 2.22%–4.36% lower, but B1 is slower than A1 in every host case and the later two rounds reverse that sign. The between-round drift is material relative to the measured difference. No current-head model or TTFT gain is claimed. Event spans change by −0.59% to +0.66% and include gaps waiting for host submission; they are not isolated kernel durations. The cold recipe is an 8 MiB NumPy sweep plus unrelated Python work, not a guarantee that every hardware cache is cold. Gate/selection file tracing was disabled for all measurement processes. Solutions were selected for correctness/repeatability, not speed. [Complete result, all round medians, protocol and evidence hashes](wuhuikx/LLM-Booster#576 (comment)). All nine workers exited successfully, all 63 exported files were verified, and the owned GPU resources were released. ## Validation and limits The following evidence retains its original revisions. Withdrawing the CI changes leaves all GEMM product and test blobs unchanged from `d6ceec6a`; it adds no new product, GPU or model measurement. - The existing nine descriptor CPU control-flow tests passed with zero skips, including independent execution, and five omitted-key-field mutations were detected. They execute extracted definitions with Tensor/FFI stand-ins, so they do not establish native ABI correctness. - Real-Torch lookup coverage combines 17 unchanged passing methods from the `6bf2b5cb` full execution with the repaired gfx1250 method's 182 passing subcases. This is combined coverage, not a new full-suite run. The isolated CPU environment used Torch 2.10.0 / ROCm 7.2.4, prepared native modules, no compilation and no exposed GPU devices. - The bounded `2f20b055` GPU gate passed 12 public-dispatch cases, weight-lifetime/view checks, compile/graph checks and nine native-reuse rows. The broad many-configurations, concurrent-thread and short-lived-thread native checks were not run. Later main integration preserved the M=0 return and cache behavior in 12 CPU metadata cases plus an output-dtype rejection case; these used doubles. - Historical downstream runs at `2f20b055` include an actual [R1 test](https://github.com/ROCm/aiter/actions/runs/45910543746/job/140218459334) passing at 0.965 against 0.93 and [GPT-OSS](https://github.com/ROCm/aiter/actions/runs/45910543650/job/140218353625) at 0.8938589841 against 0.87. The [V3.2 test](https://github.com/ROCm/aiter/actions/runs/45910543746/job/140218459269) failed before accuracy during graph setup: `gemm_a8w8_blockscale_bpreshuffle`, M=512/N=128/K=7168, BF16 output, no tuned config. That failure and the later [CI investigation](#8030 (comment)) remain on record. The SGLang explicit-method selection, timeout/retry/model-path adjustments, and added PR selectors for the descriptor and lookup suites are withdrawn from this PR. Main's existing CI is preserved. A green or skipped job that collects zero tests is not model validation; removing the selection change does not resolve the recorded V3.2 failure. The direct test sources remain available, but this PR no longer adds their CI wiring. Stable performance improvement, full native/shared-path coverage and a passing V3.2 result remain unestablished. The public GEMM call contract is unchanged; no third-party dependency is added.
d6ceec6 to
d0b7855
Compare
|
Removed this PR's CI changes in d0b7855: the SGLang selection/timeout/model-path adjustments and the added descriptor/lookup CI selectors are withdrawn. The PR now contains only three GEMM implementation files and three related test files. Those product/test blobs are unchanged from d6ceec6; golden files remain unchanged. The title, description and single-commit message now reflect that scope. The independent full-tree comparison and Python syntax, Black, Ruff and whitespace checks passed for the withdrawal. Restored shell/YAML files match the base exactly; no new GPU or model run was performed. Historical evidence retains its original revisions: the recorded V3.2 failure remains unresolved, and green/skipped jobs that collect zero tests are not model validation. The description preserves the measured host/event results and their variability. Stable performance improvement and complete native/shared-path coverage remain unestablished. The withdrawn CI work will not be automatically restored by later review tooling. |
|
The
Card
Step 8 gates |
Reduce Python metadata and tensor-descriptor work in the ordinary tuned GEMM path. Calls continue through the registered custom ops and plugin routing; there is no parallel eager hipBLASLt bypass. This PR contains three GEMM product files and three directly related test files, with no CI, workflow, selector or snapshot-golden changes.
Changes
_hipb_mmopt into a private, locked, 1024-entry cache for its constmat2descriptor. The key includes pointer, shape, strides, dtype and device. The cache retains no Tensor or Storage; subclasses and other arguments use the original conversion path.This follows the maintainer's request to optimize the normal path. Acceptance of the opt-in
compile_ops(tensor_cache_args=...)contract in the shared JIT core remains a separate design-review question.Performance
The implementation at
2f20b055was measured againstc86d490828097b26aade3e6002a5537cc56ddb52, which includes merged #8116, on one gfx942 80-CU partition with Torch 2.10.0 / ROCm 7.2.4. Both arms used the same native build, real config lookup, selected solutions/kernels, inputs and output SHA-256 values. The parallel eager bypass has been removed.Three paired rounds completed in order A1, B1, B2, A2, A3, B3. Each process measured all six cases with 31 warm-host, 31 cold-host and 20 GPU-event samples per case; table values are medians of the three per-round medians, in microseconds.
Stable performance improvement is not established by this run. Aggregate warm-host medians are 1.99%–5.77% lower and cold-host medians 2.22%–4.36% lower, but B1 is slower than A1 in every host case and the later two rounds reverse that sign. The between-round drift is material relative to the measured difference. No current-head model or TTFT gain is claimed.
Event spans change by −0.59% to +0.66% and include gaps waiting for host submission; they are not isolated kernel durations. The cold recipe is an 8 MiB NumPy sweep plus unrelated Python work, not a guarantee that every hardware cache is cold. Gate/selection file tracing was disabled for all measurement processes. Solutions were selected for correctness/repeatability, not speed.
Complete result, all round medians, protocol and evidence hashes. All nine workers exited successfully, all 63 exported files were verified, and the owned GPU resources were released.
Validation and limits
The following evidence retains its original revisions. Withdrawing the CI changes leaves all GEMM product and test blobs unchanged from
d6ceec6a; it adds no new product, GPU or model measurement.6bf2b5cbfull execution with the repaired gfx1250 method's 182 passing subcases. This is combined coverage, not a new full-suite run. The isolated CPU environment used Torch 2.10.0 / ROCm 7.2.4, prepared native modules, no compilation and no exposed GPU devices.2f20b055GPU gate passed 12 public-dispatch cases, weight-lifetime/view checks, compile/graph checks and nine native-reuse rows. The broad many-configurations, concurrent-thread and short-lived-thread native checks were not run. Later main integration preserved the M=0 return and cache behavior in 12 CPU metadata cases plus an output-dtype rejection case; these used doubles.2f20b055include an actual R1 test passing at 0.965 against 0.93 and GPT-OSS at 0.8938589841 against 0.87. The V3.2 test failed before accuracy during graph setup:gemm_a8w8_blockscale_bpreshuffle, M=512/N=128/K=7168, BF16 output, no tuned config. That failure and the later CI investigation remain on record.The SGLang explicit-method selection, timeout/retry/model-path adjustments, and added PR selectors for the descriptor and lookup suites are withdrawn from this PR. Main's existing CI is preserved. A green or skipped job that collects zero tests is not model validation; removing the selection change does not resolve the recorded V3.2 failure. The direct test sources remain available, but this PR no longer adds their CI wiring.
Stable performance improvement, full native/shared-path coverage and a passing V3.2 result remain unestablished. The public GEMM call contract is unchanged; no third-party dependency is added.