Repository navigation
[FlyDSL] Add flyc.compile to skills. and cache HERD host launches - #7271
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
NOT READY FOR HUMAN REVIEWPR 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 |
The legacy wrapper is unreachable: its gfx950 branch imports the removed kernels.mxfp4_preshuffle module and its gfx1250 branch no longer matches launch_gemm_a8w4_tdm's signature. Delete it with _run_gfx1250 and the tensor-ABI key helper instead of caching it. Only flydsl_batched_gemm_a8w4_v2 remains (already on _run_compiled with a Constexpr-only key). Reduce the skill changes to one cleanup-skill bullet. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Resolve batched_gemm_mxfp4.py: keep the dead-wrapper removal and carry #6767's gfx1250-strict gate onto flydsl_batched_gemm_a8w4_v2. Pass HERD's stream via current_stream_arg() to match #7219. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Resolve grouped_moe_gfx1250.py: keep the removal of herd_route_psum_remap, which herd_route_psum replaces at every expert count, and carry #7271's dispatch onto it: herd_route_psum launches through _run_compiled, so warmed calls take the cached CompiledFunction, and passes current_stream_arg().
Summary
Dispatch HERD (
herd_route_psum_remap) throughtensor_shim._run_compiledso warmed calls use the cachedCompiledFunctioninstead of re-entering JIT dispatch, and delete the deadflydsl_batched_gemm_mxfp4wrapper.Changes
_get_compiled_route_psum_herd(topk, has_num_valid_rows)launcher in_run_compiled. The factory already fixes the config per launcher, so nospecialization_keyis needed. The stream is passed positionally.batched_gemm_mxfp4.py: removeflydsl_batched_gemm_mxfp4and_run_gfx1250. Neither path can run: the gfx950 branch imports the removedkernels.mxfp4_preshufflemodule, and the gfx1250 branch passes arguments that no longer matchlaunch_gemm_a8w4_tdm. Nothing in the tree calls it.flydsl_batched_gemm_a8w4_v2and its prep helpers are unchanged._run_compiled.Performance
HERD wrapper CPU submission time (not GPU kernel time), gfx950, FlyDSL 0.4.1, median of 7×200 warmed calls:
Testing
op_tests/test_flydsl_herd.py: 34 passed, 40 skipped (gfx950, FlyDSL 0.4.1, clean cache)op_tests/test_flydsl_batched_gemm.pystill imports (it only uses the v2 entry point)🤖 Generated with Claude Code