From 47958c4ed2d5ad880d765fede78d53a2be7bf650 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 10 Aug 2026 01:21:28 +0000 Subject: [PATCH] =?UTF-8?q?fix(build):=20add=20ninja=20dependency=20?= =?UTF-8?q?=E2=80=94=20required=20for=20CUDA=20kernel=20compilation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit torch.utils.cpp_extension.load() needs ninja to build .cu → .so Added to pip install alongside transformers in patch_ops.sh --- qwen3_6_scripts/patch_ops.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qwen3_6_scripts/patch_ops.sh b/qwen3_6_scripts/patch_ops.sh index 985b2744..2fcf91c6 100755 --- a/qwen3_6_scripts/patch_ops.sh +++ b/qwen3_6_scripts/patch_ops.sh @@ -57,8 +57,8 @@ for P in /usr/local/lib/python3.10/site-packages/transformers/models \ done if [ -n "$TMODELS" ]; then # Base engine requires transformers 4.55.3 for Qwen3_5Config support - pip install transformers==4.55.3 -i https://pypi.tuna.tsinghua.edu.cn/simple --timeout 30 2>&1 || \ - echo "[patch_ops] WARNING: transformers install failed (may already be correct version)" + pip install transformers==4.55.3 ninja -i https://pypi.tuna.tsinghua.edu.cn/simple --timeout 30 2>&1 || \ + echo "[patch_ops] WARNING: pip install failed (may already be correct versions)" cp -r ./qwen3_5 "$TMODELS/" 2>/dev/null && echo "[patch_ops] qwen3_5 config copied" || true cp -r ./qwen3_5_moe "$TMODELS/" 2>/dev/null && echo "[patch_ops] qwen3_5_moe config copied" || true python3 ./patch_transformers_qwen3_5.py 2>&1 || echo "[patch_ops] WARNING: transformers patch failed (non-fatal)"