# PR #29236 完整报告

- 仓库：`sgl-project/sglang`
- 标题：[MUSA][diffusion] Bump torchada version to 0.1.68
- 合并时间：2026-06-26 07:53
- 原文链接：http://prhub.com.cn/sgl-project/sglang/pull/29236

---

# 执行摘要

- 一句话：MUSA 平台 torchada 依赖升级
- 推荐动作：属于常规依赖维护，无需精读。

# 功能与动机

解决 MUSA diffusion CI 问题，PR body 引用了上游 torchada#85 作为修复依据。

# 实现拆解

1. 在 `3rdparty/amd/wheel/sglang/pyproject.toml` 的 `srt_musa` extra 中将 `torchada>=0.1.59` 改为 `torchada>=0.1.68`。
2. 在 `python/pyproject_other.toml` 的 `srt_musa` extra 中做相同修改。
3. 在 `sgl-kernel/pyproject_musa.toml` 的 `[build-system] requires` 中做相同修改。
所有修改均为版本号最低要求上调，保持 `>=` 约束。

关键文件：
- `3rdparty/amd/wheel/sglang/pyproject.toml`（模块 AMD 构建；类别 config；类型 configuration）: 定义 MUSA 平台 SRT 运行时依赖，升级 torchada 版本下限
- `python/pyproject_other.toml`（模块 Python 核心；类别 config；类型 configuration）: 覆盖 MUSA 平台 SRT 依赖，需同步升级
- `sgl-kernel/pyproject_musa.toml`（模块 Kernel 库；类别 config；类型 configuration）: MUSA kernel 构建依赖，升级 torchada 确保编译环境一致

关键符号：未识别

## 关键源码片段

### `3rdparty/amd/wheel/sglang/pyproject.toml`

定义 MUSA 平台 SRT 运行时依赖，升级 torchada 版本下限

```toml
# 3rdparty/amd/wheel/sglang/pyproject.toml
# MUSA 平台 SRT 依赖组，torchada 版本下限从 0.1.59 提升到 0.1.68
srt_musa = [
  "sglang[runtime_common]",
  "torch",
  "torch_musa",
  "torchada>=0.1.68",  # 升级点
  "mthreads-ml-py",
  "mate>=0.2.0",
  "deep-gemm>=0.1.3",
  "flash_attn_3>=0.1.4",
  "numpy<2.0",
]

```

### `python/pyproject_other.toml`

覆盖 MUSA 平台 SRT 依赖，需同步升级

```toml
# python/pyproject_other.toml
# MUSA 平台 SRT 依赖组，与 amd 目录下定义同步升级
srt_musa = [
  "deep-gemm>=0.1.3",
  "flash_attn_3>=0.1.4",
  "mate>=0.2.0",
  "mthreads-ml-py",
  "numpy<2.0",
  "sglang[runtime_common]",
  "torch",
  "torch_musa",
  "torchada>=0.1.68",  # 升级点
]

```

### `sgl-kernel/pyproject_musa.toml`

MUSA kernel 构建依赖，升级 torchada 确保编译环境一致

```toml
# sgl-kernel/pyproject_musa.toml
# 构建时系统依赖，torchada 作为构建依赖需与运行时版本下限对齐
[build-system]
requires = [
  "setuptools>=75.0",
  "scikit-build-core>=0.10",
  "torch",
  "torchada>=0.1.68",  # 升级点
  "wheel",
]
build-backend = "setuptools.build_meta"

```

# 评论区精华

无 review 评论或讨论。

- 暂无高价值评论线程

# 风险与影响

- 风险：风险极低。版本升级为非破坏性更新（`>=` 约束），不影响已有安装；但若新版本引入兼容性问题，可能影响 MUSA 平台 SRT 和 kernel 构建。
- 影响：影响范围仅限于 MThreads MUSA 平台用户。升级后需重新构建 sgl-kernel 和安装 sglang，对已有环境无破坏性影响。
- 风险标记：依赖升级 , 平台特定

# 关联脉络

- PR #29286 [sgl-kernel/cpu]: exclude amx gemm source from arm build: 同为 sgl-kernel 配置变更，但影响不同平台
- PR #29270 [sgl-kernel/cpu]: fix arm64 w8a8 moe kernel signature: 同为 sgl-kernel 修复，但影响不同架构