feat(device): route arch gates through MusaDeviceSpec instead of (3, 1) literals #292
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.41) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.41 · 194 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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.315
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #292"
general
weight: 0.35
yeahdongcn
MUSA capabilities are not ordered the way NVIDIA compute capabilities are: warp width is 32 on
mp_31and 128 elsewhere, native FP8 is anmp_31-only build feature, and the SM count differs per bin inside one arch.device_capability == (3, 1)therefore reads like an ordering while being an identity check, and an unvalidated arch silently inherits (or silently loses) the S5000 path.This adds
vllm_musa/device_spec.pywith a frozenMusaDeviceSpec, capability answers taken from explicit per-arch sets, aNone("unknown") result when the device probe fails, and a one-time warning for arches outsideVALIDATED_MUSA_ARCHS. Six runtime gates now route through it (_custom_ops,platform.supports_fp8,pass_manager,gated_qkv, fused-MoE FP8, fused-MoE tactic selection) and the MoE fingerprint reads the same spec so the tactic key and the gates cannot disagree.The three remaining NVIDIA-threshold comparisons are left alone: the first two are already short-circuited by an explicit
is_musa()branch, so rewriting them would be no-op churn. A source-scan test pins that allowlist and fails on any new capability literal.Verified on MTT S5000 80GB, driver 5.2.0-server, mcc 5.2.0, torch 2.11.0.post2+musa5.2.0 (image v0.32.0-ph1-5.2.0-torch2.11.0.post2-20261022):
pytest tests/test_device_spec.py tests/test_chunked_min_p_sampler_source.py-> 12 passed. Tests cover mp_22/mp_32/mp_42 failing closed on both predicates, arch code/name derivation,cache_tagdistinguishing MP bins, a failed probe yieldingNone, and the lint guard.