MUSA: split the general plugin by part and register every part under musa #330
All Vouch review confidence checks passed
Residual risk 0.33 = Change Risk (0.57) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.57 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.344
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #330"
general
weight: 0.35
yeahdongcn
Why
musa_custom_opsregisters four unrelated parts: the runtime object patches, the OOT custom ops, the attention backends and the v1 runtime overrides, plus the Mooncake device-filter mapping. The docs also ask users to allowlist both plugin names.VLLM_PLUGINSfilters every plugin group by name, soVLLM_PLUGINS=musaactivates the MUSA platform but skips the general plugin. On the v0.32 image a Qwen3.5-0.8B TP2 server then fails in its workers withImportError: cannot import name 'GPUModelRunner' from partially initialized module 'vllm.v1.worker.gpu.model_runner'.What
vllm_musa/plugins.pyregisters each part at most once per process. The custom-op, attention and runtime parts apply the runtime object patches first, and a part that raises is registered again on the next call.| Entry point | Function | Registers |
|---|---|---|
|
musa|register_all| Every part below, in order ||
musa_kv_connector|register_kv_connector| MapsMOONCAKE_RDMA_DEVICEStoMC_TE_FILTERS||
musa_custom_ops|register_custom_ops| OOT custom ops, custom-op module preloading and the MoE JIT prewarm ||
musa_attn_backends|register_attn_backends| The MLA overrides and the MUSA attention backends ||
musa_runtime|register_runtime| Executor, sampler, spec-decode and worker overrides |musashares the platform plugin's name. AnyVLLM_PLUGINSvalue that enables the MUSA platform therefore registers every part, and leaving it unset loads everything. Values such asmusa,musa_custom_opskeep working.vllm_musa/v1/attention/registry.py, which both the attention plugin and the platform's backend selectors call. The@register_backenddecorators and the copy inplatform.pyare removed.VLLM_PLUGINSunset, anddocs/configuration.mddescribes the entry points.tests/test_general_plugins.pycovers the entry points, order, idempotency, retry and re-entrancy. It also runsvllm.plugins.load_general_pluginswith fiveVLLM_PLUGINSvalues.Evidence
The runs below used S5000 (driver 5.2.0-server), image
v0.32.0-ph1-5.2.0-torch2.11.0.post2-20261106(sha256:65d5e96b…), and Qwen3.5-0.8B at TP2.| Code |
VLLM_PLUGINS| Result ||---|---|---|
|
v0.32.0-dev@d6ad785b| unset | Starts; 4 processes register; reply " Paris" ||
v0.32.0-dev@d6ad785b|musa| Workers fail with the circular import above || this PR | unset | Starts; 4 processes register every part; reply " Paris" |
| this PR |
musa| Same || this PR |
musa,musa_custom_ops| Same |Full
pytest testsin the image, one leased GPU per tree:| Tree | Passed | Failed | Errors |
|---|---|---|---|
| base | 2863 | 56 | 5 |
| this PR | 2887 | 48 | 5 |
test_deep_gemm_three_wrappers::test_grouped_wrapper_full_ticket_boundary_matrix. That test fails a different subset on every run on both trees: 4 failures, then 7, with identical sets for base and this PR.test_musa_logits_ipc_gathercases on both trees.Cookbook launch commands
Every launch block of the 29 changed cookbook pages was run verbatim, with
VLLM_PLUGINSunset, on S5000 (driver 5.2.0-server, mpx24). Each run checked four things:MUSA plugins registered.21 of the 24 one-, two- and four-GPU commands pass. The other 3 fail the same way on
v0.32.0-devwith the previousVLLM_PLUGINS=musa,musa_custom_ops, so they are not caused by this change:ocr/deepseek-ocr-bf16: the Model Runner V2 loader rejects--logits-processors ...:NGramPerReqLogitsProcessor, which is not a subclass ofvllm.v1.worker.gpu.sample.logits_processor.LogitsProcessor.qwen/qwen3-vl-32b-instruct-fp8:--max-num-partial-prefillsand--max-long-partial-prefillsare not CLI arguments of this vLLM.nemotron/nemotron-3.5-lightning-30b-a3b-bf16(TP1 profile): illegal memory access while capturing the MTP draft's CUDA graphs.None of these pages selects an MLA backend. DeepSeek-V2-Lite-Chat at TP2 is not a cookbook page, but it is the MLA check that fits in two GPUs. It selects
FLASHMLAand passes the same checks withVLLM_PLUGINSunset and withVLLM_PLUGINS=musa; 4/4 processes register in both runs.Not covered yet:
deepseek-v4-flash, the single-nodedeepseek-v4-flash-731,qwen3-next-80b-a3b-instruct,qwen3.5-122b-a10b-*andqwen3.5-397b-a17b-fp8), because no full development node came free during an hour in the queue.deepseek/deepseek-v4-flash-731, which need two nodes, RoCE and a Mooncake store.<details><summary>Per-command results</summary>
| Page | GPUs | Startup | Registered / processes | Text | Image | Requests | Result |
|---|---|---|---|---|---|---|---|
|
ocr/deepseek-ocr-bf16.md| 1 | did not start | 1/2 | - | - | - | fail (also on base) ||
nemotron/nemotron-3.5-lightning-30b-a3b-bf16.md| 1 | did not start | 2/2 | - | - | - | fail (also on base) ||
nemotron/nemotron-3.5-lightning-30b-a3b-bf16.md(TP2) | 2 | 825 s | 4/4 | ok | - | 16/16 | pass ||
qwen/qwen3-8b-fp8.md| 1 | 315 s | 2/2 | ok | - | 16/16 | pass ||
qwen/qwen3-vl-30b-a3b-instruct.md| 4 | 545 s | 6/6 | ok | ok | 16/16 | pass ||
qwen/qwen3-vl-30b-a3b-instruct-fp8.md| 4 | 665 s | 6/6 | ok | ok | 16/16 | pass ||
qwen/qwen3-vl-32b-instruct.md| 4 | 275 s | 6/6 | ok | ok | 16/16 | pass ||
qwen/qwen3-vl-32b-instruct-fp8.md| 4 | did not start | 1/6 | - | - | - | fail (also on base) ||
qwen/qwen3-vl-8b-instruct.md| 1 | 151 s | 2/2 | ok | ok | 16/16 | pass ||
qwen/qwen3-vl-8b-instruct-fp8.md| 1 | 241 s | 2/2 | ok | ok | 16/16 | pass ||
qwen/qwen3.5-0.8b.md| 1 | 435 s | 2/2 | ok | ok | 16/16 | pass ||
qwen/qwen3.5-27b-bf16.md| 2 | 545 s | 4/4 | ok | ok | 16/16 | pass ||
qwen/qwen3.5-27b-fp8.md| 2 | 190 s | 4/4 | ok | ok | 16/16 | pass ||
qwen/qwen3.5-2b.md| 1 | 450 s | 2/2 | ok | ok | 16/16 | pass ||
qwen/qwen3.5-35b-a3b-bf16.md| 4 | 860 s | 6/6 | ok | ok | 16/16 | pass ||
qwen/qwen3.5-35b-a3b-fp8.md| 4 | 385 s | 6/6 | ok | ok | 16/16 | pass ||
qwen/qwen3.5-4b.md| 1 | 390 s | 2/2 | ok | ok | 16/16 | pass ||
qwen/qwen3.5-9b.md| 2 | 630 s | 4/4 | ok | ok | 16/16 | pass ||
qwen/qwen3.6-27b-bf16.md| 2 | 386 s | 4/4 | ok | ok | 16/16 | pass ||
qwen/qwen3.6-27b-fp8.md| 2 | 245 s | 4/4 | ok | ok | 16/16 | pass ||
qwen/qwen3.6-35b-a3b-bf16.md| 4 | 356 s | 6/6 | ok | ok | 16/16 | pass ||
qwen/qwen3.6-35b-a3b-fp8.md| 4 | 276 s | 6/6 | ok | ok | 16/16 | pass ||
qwen/qwen3.8-27b-bf16.md| 2 | 240 s | 4/4 | ok | ok | 16/16 | pass ||
qwen/qwen3.8-27b-fp8.md| 2 | 230 s | 4/4 | ok | ok | 16/16 | pass |</details>