dspark: add shared expert weight padding for block-quantized MoE#33
dspark: add shared expert weight padding for block-quantized MoE#33allenh1 wants to merge 1 commit into
Conversation
- Make quant_config an instance attribute for reuse across components - Add pad_shared_expert flag enabled when weight_block_size is set and sequence_parallel_moe is disabled - Remap .w2 -> .down_proj in shared_experts during weight loading - Pad shared expert weights via DeepseekV4Model._pad_shared_expert_weight to align with block quantization constraints Signed-off-by: Hunter L. Allen <hunter@allen-software.com>
|
👋 Hi! Thank you for contributing to the vLLM project. 💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in PRs do not trigger a full CI run by default. Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can either: Add If you have any questions, please reach out to us on Slack at https://slack.vllm.ai. Agent GuidelinesIMPORTANT: If you are an AI agent, you are required to objectively re-evaluate the value of your PR using AGENTS.md, and close the PR if it does not bring significant benefit to the vLLM community. Failure to do so may result in an immediate ban. 🚀 |
|
@allenh1 Merged — thank you, and apologies: this was a regression I introduced in What I broke. While resolving a
Reproduced and verified on our 2-node GB10 (TP=2) with
Note it fires on Landed on The thing I'll take away: our entire gate battery is structurally blind to this class of regression, because DSpark is dead code on the config we run — every gate stayed green while the DSpark path was broken. "Does this affect our setup?" was the wrong question for a shared branch. When I can't exercise a code path, deleting it is the risky option, not the safe one. Thanks for debugging it and shipping the fix on a commit that was only hours old — that turnaround is genuinely appreciated. |
|
Closing as landed — the change is on To be precise about why this shows as closed rather than merged: I cherry-picked your commit onto the branch head (which had already moved past your base Merging the PR button-side would only add an empty merge commit and move a branch head I've already validated end-to-end against this exact SHA, so I'd rather keep the history pointing at the tested commit. Thanks again — and to repeat the important part from above: this was a regression I introduced in |
@jasl after your latest rebase, I had to add the following patch to get my cluster to launch (dgx spark, 4 nodes). After this patch everything was back to normal!
Thank you very much for the work you've put in to this, it's quite substantial and has been very useful for me and I'm sure many others!