Repository navigation
🚨 Unify MoE expert offloading through shared framework resources - #1280
Merged
Merged
Conversation
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.
Consolidate expert-weight placement and staged execution for Drama3, Ming3 Audio, and Nemotron Transcribe into shared framework resources. Model code retains routing mathematics, shared-expert/residual composition, tensor bindings, and model-specific defaults.
Changes
MoeResourcesandMoeExecutionPolicy, reusingBackendWeightStore,DiskExpertWeightStore,PreparedGraph, andStagedMoeRuntimefor resident, CPU-expert, staged, and hybrid execution.moe_*session options and CLI flags. Existing family-prefixed options remain accepted; supplying both spellings is rejected. Active CLI recipe options require role scoping; unscopedmoe_cpu_share=0retains its previous compatibility.Validation
See the validation report for the consolidated RTF, peak-VRAM and output-parity table, including its selection policy and measurement limitations.
353bf8c3b24168e0760bacd14e4caf250ed8f5e5, using CUDA/Vulkan and GPU sessions with CPU expert offloading. Selected comparisons retain exact output parity. Full-CPU checks are completion smoke only.1.08266e-5against a1e-4tolerance.Timing differences vary between repetitions; Ming3 CUDA hybrid results do not establish a consistent intrinsic slowdown or a unique code-level cause. Sampled request peaks do not prove indefinite leak freedom or post-unload reclamation. Metal/HIP execution was not validated on this machine.