[GG] fix(moe): safely overlap shared experts before resident grids#150
[GG] fix(moe): safely overlap shared experts before resident grids#150voipmonitor wants to merge 1 commit into
Conversation
Query the SparkInfer launch-plan capability, overlap shared experts with gate/router work, and join before resident routed MoE submission.
|
Warning Review limit reached
Next review available in: 59 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Closing because the SparkInfer capability contract in dependency #60 was based on an invalid causal attribution. The underlying matrix now shows that M=1/4/7 are stable with and without auxiliary-stream overlap, while M=8 varies even under serial eager execution. No overlap-specific deadlock or corruption was reproduced, and the exact stress workload passes on the SparkInfer parent commit as well as the latest commit. The vLLM scheduling change in this PR is therefore not justified as a correctness fix. SparkInfer 695c011 handles the actual all-CTA admission invariant locally with a cooperative kernel launch. The independent M=8 numerical behavior will be investigated separately. |
|
Final upstream diagnosis: the M=8 observation behind the proposed caller-side serialization was not an auxiliary-stream overlap failure. On the real GLM-5.2 TP8 NVFP4 shape, M=7 selects SparkInfer fused micro, while M=8 reaches 64 routed rows and selects the dynamic kernel. The dynamic default uses BF16 atomic scatter, so small serial run-to-run differences are expected; its deterministic-output mode produced eight bitwise-identical repeats. Exact M=4 fused-micro stress with prequeued auxiliary GEMMs passed both before and after the cooperative-launch change, with no deadlock. SparkInfer now carries the all-CTA admission contract at the kernel launch itself, and SparkInfer PR #71 documents the GLM planner boundary. There is no evidence supporting a vLLM capability gate or shared-expert serialization change here, so keeping this PR closed is the correct outcome. |
Summary
Root cause and ordering contract
A resident-grid MoE kernel can deadlock if it is submitted while auxiliary work occupies an SM needed by its grid-wide barrier. Blanket serialization avoids the deadlock but creates a measurable DCP1 A16 decode regression.
The safe order is:
This preserves gate/router overlap without allowing shared experts and the resident grid to execute concurrently.
Dependency
Requires local-inference-lab/sparkinfer#60.
This branch is based directly on
dev/gilded-gnosis; it is not stacked. It contains the MoE portion split out of #149 plus the profiler-guided no-regression ordering correction.Validation
git diff --checkpassed