From fa090f77551844087456f648ff7e10c1b7ae7ad7 Mon Sep 17 00:00:00 2001 From: CYJiang <86391540+googs1025@users.noreply.github.com> Date: Wed, 30 Sep 2026 00:51:08 +0800 Subject: [PATCH] [MUSA] Fix fused MoE GEMV registration and torchada pin (#41444) --- 3rdparty/amd/wheel/sglang/pyproject.toml | 2 +- python/pyproject_other.toml | 2 +- python/sglang/kernels/aot/csrc/common_extension_musa.cc | 2 +- python/sglang/kernels/aot/pyproject_musa.toml | 2 +- scripts/ci/musa/musa_install_dependency.sh | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/3rdparty/amd/wheel/sglang/pyproject.toml b/3rdparty/amd/wheel/sglang/pyproject.toml index cbccd1008e..8ee3f50d59 100644 --- a/3rdparty/amd/wheel/sglang/pyproject.toml +++ b/3rdparty/amd/wheel/sglang/pyproject.toml @@ -110,7 +110,7 @@ srt_musa = [ "sglang[runtime_common]", "torch", "torch_musa", - "torchada>=0.1.74", + "torchada>=0.1.90", "mthreads-ml-py", "mate>=0.2.0", "deep-gemm>=0.1.3", diff --git a/python/pyproject_other.toml b/python/pyproject_other.toml index 2eb25a40cd..f9ad792247 100755 --- a/python/pyproject_other.toml +++ b/python/pyproject_other.toml @@ -162,7 +162,7 @@ srt_musa = [ "torch==2.11.0.post1+musa5.2.0", "torch-c-dlpack-ext==0.1.5", "torch_musa==2.11.0.post1+musa5.2.0", - "torchada>=0.1.86", + "torchada>=0.1.90", "torchaudio==2.11.0+musa5.2.0", "torchvision==0.26.0.post1+musa5.2.0", "triton==3.2.0", diff --git a/python/sglang/kernels/aot/csrc/common_extension_musa.cc b/python/sglang/kernels/aot/csrc/common_extension_musa.cc index d734974a76..098cd46290 100644 --- a/python/sglang/kernels/aot/csrc/common_extension_musa.cc +++ b/python/sglang/kernels/aot/csrc/common_extension_musa.cc @@ -283,7 +283,7 @@ TORCH_LIBRARY_EXPAND(sgl_kernel, m) { "musa_fused_moe_gemv(Tensor! A, Tensor! B, Tensor! C, Tensor? A_scale, Tensor? B_scale," "Tensor! topk_weights, Tensor! topk_ids, bool mul_routed_weight, int topk, bool use_int4_w4a16," "bool use_swigelu) -> ()"); - m.impl("fused_moe_gemv", torch::kMUSA, &fused_moe_gemv); + m.impl("musa_fused_moe_gemv", torch::kMUSA, &fused_moe_gemv); m.def( "musa_fused_gemv(Tensor! A, Tensor! B, Tensor! C, Tensor? A_scale, Tensor? B_scale," diff --git a/python/sglang/kernels/aot/pyproject_musa.toml b/python/sglang/kernels/aot/pyproject_musa.toml index e893424ed5..95a026b29f 100644 --- a/python/sglang/kernels/aot/pyproject_musa.toml +++ b/python/sglang/kernels/aot/pyproject_musa.toml @@ -3,7 +3,7 @@ requires = [ "setuptools>=75.0", "scikit-build-core>=0.10", "torch", - "torchada>=0.1.86", + "torchada>=0.1.90", "wheel", ] build-backend = "setuptools.build_meta" diff --git a/scripts/ci/musa/musa_install_dependency.sh b/scripts/ci/musa/musa_install_dependency.sh index edac11a1de..56a2ae388a 100755 --- a/scripts/ci/musa/musa_install_dependency.sh +++ b/scripts/ci/musa/musa_install_dependency.sh @@ -33,8 +33,8 @@ readonly MUSA_TRITON_VERSION="3.2.0" # update this digest together with the pinned artifact. readonly MUSA_TRITON_SHA256="65b15d42fac24a2eca4c0c9f0ac68c8bd7cbe6bcc9f619c3483fb4f323391303" readonly MUSA_TRITON_INDEX_URL="https://dl.mthreads.com/repo/api/pypi/pypi/simple" -readonly MUSA_TORCHADA_VERSION="0.1.82" -readonly MUSA_TORCHADA_SHA256="472663da083ef23502f08429618a36e5e6e9b2447cf72fff2568787c815b5903" +readonly MUSA_TORCHADA_VERSION="0.1.90" +readonly MUSA_TORCHADA_SHA256="01dc3cea4dfc48cd5005e34ee786fe9a8c39ff1ddcafd2207a4fc9fea6a12127" readonly MUSA_TORCHADA_INDEX_URL="https://pypi.org/simple" readonly MUSA_SETUPTOOLS_SPEC="setuptools<82" MUSA_CI_SCRATCH="$(mktemp -d "${RUNNER_TEMP:-${TMPDIR:-/tmp}}/sglang-musa-ci.XXXXXX")"