Repository navigation
[JIT] Replay biased interleaved MoE callers again and fix #6362's CI failures - #6700
Merged
zhiding512 merged 3 commits intoOct 21, 2026
Conversation
2f85842 dropped every gate_mode=interleave x bias variant from the replay to keep CK-Tile's interleaved split-k epilogue, which cannot apply a bias, out of it. The same commit limits bias to Swiglu + MXFP4 rows, and since then no row the replay parses reaches that epilogue: the only Swiglu MXFP4 rows with a cktile_ stage 1 are the 14 gptoss_fp8fp4 rows tagged flydsl_fallback, which parse_csv skips. What the filter did drop is the path GPT-OSS a8w4 serves on gfx950 (gate/up-interleaved weights with expert bias), and every biased gfx1250 caller, which takes only the interleaved layout. The runtime serves all of those jobs and requests kernels the cache then lacked: CI's MI35X shard failed op_tests/test_moe_2stage.py on the gptoss_fp8fp4 rows with "no usable AOT cache for launch_mixed_moe_gemm1". A full replay of every arch now has 9440 jobs (324 more) and no failure, and its cache gains 31 kernel directories and loses none. The extra [SKIP]s are MiniMax-M3 a4w4 interleave x bias combinations at inter_dim 384, which the runtime refuses for want of a safe MXFP4 backend, as it already does for their other variants. Signed-off-by: zhimding <[email protected]> Co-authored-by: Cursor <[email protected]>
A replay process imports aiter for the arch it replays, so its dtypes.fp8 matches the table's fp8 flavour. The pytest process imports aiter for its host instead: on gfx942 dtypes.fp8 is float8_e4m3fnuz, _caller_inputs finds no recipe for the HY4 float8_e4m3fn row, and both cases of test_fhmoe_aot_replay_forwards_caller_choices failed on CI's MI300X shard. Pin the alias as _mock_gfx950_fhmoe_metadata does. Signed-off-by: zhimding <[email protected]> Co-authored-by: Cursor <[email protected]>
Reading tuned tables as text keeps every cell as written, but _raise_on_duplicate_shapes still sorted on `comparable`, where a column with one unparseable written cell stays text. One us written as nan, on any row, made the lowest-us pick a text sort: "10.5" sorts before "9.5", so the slower duplicate was kept and the faster row deleted from its source table, where main, parsing nan as NaN, keeps 9.5. Coerce us on its own. op_tests/tuning_tests/test_config_shape_collision.py also pins the two behaviours the text merge exists for: integer cells of a column with a blank stay integers in the merged table, and 256 and 256.0 stay one shape. Signed-off-by: zhimding <[email protected]> Co-authored-by: Cursor <[email protected]>
2 tasks done
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes for #6362, to merge into its branch (
zhiding512/flydsl-aot-moe-dryrun-20261009). Its head 2f85842 fails Aiter Test run 39349922515 on MI35X shard 7 and MI300X shard 5; these three commits fix both and a latent dedup bug in the config merge.Changes
aiter/aot/flydsl/moe.py, README). 2f85842 dropped everygate_mode=interleavex bias variant to keep CK-Tile's interleaved split-k epilogue out of the replay, but after the same commit limits bias to Swiglu + MXFP4 rows, no parsed row reaches that epilogue: the only Swiglu MXFP4 rows with acktile_stage 1 are the 14gptoss_fp8fp4rows taggedflydsl_fallback, whichparse_csvskips. The filter instead dropped GPT-OSS a8w4's serving path on gfx950 (interleaved weights with expert bias) and every biased gfx1250 caller, soop_tests/test_moe_2stage.pyhitFLYDSL_RUNTIME_RUN_ONLY=1 but no usable AOT cache for launch_mixed_moe_gemm1(MI35X shard 7).test_moe_aot_replays_swiglu_bias_with_interleaved_weightspins interleave x {none, both, stage1} forgptoss_fp8fp4and the gfx1250 grouped table.op_tests/test_fhmoe.py). The pytest process imports aiter for its host, so on gfx942dtypes.fp8isfloat8_e4m3fnuzand_caller_inputsfinds no recipe for the HY4float8_e4m3fnrow; both cases oftest_fhmoe_aot_replay_forwards_caller_choicesfailed on MI300X shard 5. The test now pins the alias as_mock_gfx950_fhmoe_metadatadoes.us(aiter/jit/core.py). With tables read as text, one writtenusofnanon any row kept the whole column textual incomparable, so the lowest-uspick became a text sort ("10.5" before "9.5"): the slower duplicate was kept and the faster row deleted from its source table (main keeps 9.5).usis now coerced on its own. Three tests inop_tests/tuning_tests/test_config_shape_collision.pycover this and the two behaviours the text merge exists for: integer cells of a column with a blank stay integers, and256and256.0stay one shape.Testing
All on one 256-CPU MI355X host, FlyDSL 0.4.0, against 2f85842 ("before") and this branch ("after"):
--checkpasses.pkl)launch_mixed_moe_gemm1+ 18launch_gemm2; gfx1250: 4launch_gemm_a8w4_tdm+ 2launch_fused)op_tests/test_moe_2stage.py --no-legacyon thegptoss_fp8fp4table, run-only against a cache built from that tableno usable AOT cache for launch_mixed_moe_gemm1(manager_keycd1531ae…, as on CI)logits_diff~1.5e-5op_tests/test_fhmoe.py -k aotwith the runtime pinned to gfx942 (dtypes.fp8fnuz)op_tests/tuning_tests/test_config_shape_collision.pynancase fails (keeps 10.5)The 104 extra
[SKIP]s on gfx950 (153 vs 49) are MiniMax-M3 a4w4 interleave x bias combinations at inter_dim 384, which the runtime refuses for want of a safe MXFP4 backend, as it already does for their other variants; they compile nothing. black and ruff 0.16.0 are clean.