From 6bed911e04f17c281d43dd4d5998a31837022b2f Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 8 Aug 2026 10:48:24 +0000 Subject: [PATCH] fix(patch_ops): add pip install transformers==4.55.3 from base engine Base patch_ops.sh installs transformers 4.55.3 for Qwen3_5Config support. Without this, transformers may not recognize the Qwen3_5 architecture. --- qwen3_6_scripts/patch_ops.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qwen3_6_scripts/patch_ops.sh b/qwen3_6_scripts/patch_ops.sh index aa373c01..58b395fe 100755 --- a/qwen3_6_scripts/patch_ops.sh +++ b/qwen3_6_scripts/patch_ops.sh @@ -56,6 +56,9 @@ for P in /usr/local/lib/python3.10/site-packages/transformers/models \ fi 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 2>&1 || \ + echo "[patch_ops] WARNING: transformers install failed (may already be correct version)" 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)"