Repository navigation
[None][refactor] Separate MegaMoE CuteDSL runtime and workspace ownership - #20578
Draft
Barry-Delaney wants to merge 3 commits into
Draft
Barry-Delaney wants to merge 3 commits into
Barry-Delaney wants to merge 3 commits into
Conversation
…ship Signed-off-by: Barry Kang <[email protected]>
…ace state Signed-off-by: Barry Kang <[email protected]>
Update docstrings and comments that pointed at methods moved into MegaMoeWorkspace, clarify the multi-rank empty-chunk note and the missing-provider error, and add the full Apache license text to the new modules. Signed-off-by: Barry Kang <[email protected]>
Barry-Delaney
force-pushed
the
codex/megamoe-cutedsl-public-refactor
branch
from
October 30, 2026 03:29
0c9708e to
8f59190
Compare
Closed
1 task done
This branch has not been deployed
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.
Description
mega_moe_cute_dsl.pycombines backend execution with runtime probing, distributed initialization, buffer management, and profiling-scratch ownership. Separate these responsibilities into focused components:cute_dsl_runtime.py: runtime capability checks and build-time EP process-group resolution.cute_dsl_workspace.py: cached buffers, input staging, and padded-tail cleanup.cute_dsl_profiling.py: lazy scratch acquisition, weak ownership, and per-call cleanup.The backend retains weight handling, quantization, and launch orchestration. Shared kernel-property queries replace the duplicated allocation queries. Workspace registration and capability lookup go through its methods, and launch orchestration preserves lazy AutoTuner initialization. Existing backend exports are preserved. MPI bootstrap limits its fallback to expected MPI/runtime/value errors instead of swallowing arbitrary exceptions.
Test Coverage
--noconftest. They cover buffer reuse, input staging, padded tails, MPI device preservation and query failures, process-group selection, runtime-probe caching, lazy scratch lifetime/cleanup, and avoiding tuner queries outside multi-rank autotuning. The existing CPU test list includes the MoE test directory.PR Checklist