build: move the MUSA image to Python 3.12 and torch 2.13.0.post1 #336
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.50) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 450 lines diff across 5 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.366
Shallow Review Depth
shallow_review_depth
0.344
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #336"
general
weight: 0.35
yeahdongcn
Summary
Move the
v0.32.0-devMUSA image to system CPython 3.12 and the torch 2.13 MUSA stack:| Package | Before | After |
|---|---|---|
| Python | 3.10 | 3.12 |
|
torch,torch_musa|2.11.0.post2+musa5.2.0|2.13.0.post1+musa5.2.0||
torchvision|0.26.0.post2+musa5.2.0|0.28.0.post1+musa5.2.0||
torchaudio|2.11.0.post2+musa5.2.0| unchanged, the release paired with torch 2.13 ||
torchada|0.1.105|0.1.106||
deep_ep|...torch2.11.0.post2|...torch2.13.0.post1(not published yet) |The torch 2.13 MUSA wheels are published for cp312 only, and upstream vLLM v0.32 requires Python 3.11 or newer. This replaces the Python 3.12 work in #119, which targets
v0.24.0-dev.Other changes:
--only-binaryso a missing cp312 wheel fails the build.setuptoolsbelow 81 inbuild.txt.setup.pyinstalls vLLM's build requirements during the native build, and the downgrade from a newer setuptools breaks the running process on Python 3.12._C_stable_libtorchwith torch_musa's stable headers ahead of torchada's torch 2.9 forwards, and mapTORCH_CHECKtoSTD_TORCH_CHECKfor stable kernels.mcp-types,soundfileandav, which the--no-depsvLLM install drops, and import them in the image self-check.Blocked on
This stays a draft until both wheels exist. The image cannot build from this branch before then.
deep_epfor torch 2.13.0.post1 / cp312. The pin uses the expected name and will be corrected if the published version differs. The torch 2.11 wheel fails to import on torch 2.13 with an undefinedc10::impl::cow::materialize_cow_storage.mooncake-transfer-engine-musacp312. PyPI has cp310 only.Validation
Tested
2d801da102on 4x MTT S5000, driver5.2.0-server, in an image built with a validation overlay that removes onlydeep_epand the Mooncake install, withBUILD_VLLM_RS=0and the Python frontend. Normal compiled serving path, no eager flags.docker/verify_installed_dependencies.pypasses.torch.mm/torch.bmmwithout_dtype=torch.float32on bf16 and fp16: non-zero, max relative error about 1e-7 against the fp32 product.tools/musa_sync.py check-seriespasses.| Model | TP | Backend | Result |
|---|---:|---|---|
| Qwen3-8B | 1 |
FLASH_ATTN|Beijing|| DeepSeek-V2-Lite | 2 |
FLASHMLA|Beijing|| Qwen3.5-35B-A3B | 4 |
FLASH_ATTN|Beijing, with the serve line fromdocs/cookbook/qwen/qwen3.5-35b-a3b-bf16.md|Not run or open
vllm-rs:BUILD_VLLM_RS=1fails on the current base branch becausethird_party/vllm/tools/install_protoc.shis not in the pinned upstream commit. Not addressed here.--gpu-memory-utilization 0.85) ran out of memory during CUDA graph memory profiling. The same settings were not compared on torch 2.11.AI assistance: Claude Code drafted these changes and ran the MUSA validation listed above.