mixture optimization batches - #217
Merged
Merged
Conversation
Replace the RoutedModule protocol with minimal dataclass-based adapters: RoutingMetrics, normalize_routing_snapshot, routing_metrics, usage_gini. Export the new helpers from the moe facade and cover them with test_moe_facade_protocol.py.
Extend _LatentAuxMixin and LatentMixture with additional aux-loss handling and routing snapshot fields; expand latent mixture tests.
…rnels Add _can_vectorize_linear_experts/_compute_vectorized_linear_experts to run same-rank Linear experts in two batched kernels; update sparse dispatch and routing-aware merge tests.
Introduce PlannerResult dataclass with to_dict/from_dict plus adapters from legacy decisions and placement plans; export from vpeft facade and extend placement schema and V-PEFT e2e tests.
…lback reasons Attach PlannerResult via _attach_planner_result and record serializable fallback reasons via _record_vpeft_fallback in apply_lora; extend LoRAConfig fields, default.yaml options, and config drift detector coverage with matching tests.
MoABlock and C2fMoA referenced sparse_inference/sparse_inference_threshold without declaring them, and default.yaml lacked the moa_sparse_inference keys mapped by moe/config.py.
Carry over the sorted-form Gini improvement from main's schedule.py into the canonical protocol implementation.
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.
No description provided.