From 9f6b03a388800b7c8875aa58ef689c443f050227 Mon Sep 17 00:00:00 2001 From: dylan <1357085776@qq.com> Date: Wed, 12 Aug 2026 02:19:48 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20pip=20install=20transformers=20?= =?UTF-8?q?=E2=80=94=20already=20in=20base=20image,=20avoids=20network=20d?= =?UTF-8?q?ependency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 e52e21c..432d7b5 100755 --- a/qwen3_6_scripts/patch_ops.sh +++ b/qwen3_6_scripts/patch_ops.sh @@ -89,8 +89,8 @@ echo "[patch_ops] sampler.py → model_executor/layers/" # It modifies pip-installed transformers' configuration_auto.py and __init__.py # to register qwen3_5/qwen3_5_moe. These files come from pip (version-specific) # so we can't pre-copy them — the patch script inserts lines after known anchors. -pip install transformers==4.55.3 -i https://pypi.tuna.tsinghua.edu.cn/simple 2>/dev/null || \ -pip install transformers==4.55.3 2>/dev/null || \ +# pip install transformers==4.55.3 -i https://pypi.tuna.tsinghua.edu.cn/simple 2>/dev/null || \ +# pip install transformers==4.55.3 2>/dev/null || \ echo "[patch_ops] WARNING: pip install transformers failed, using pre-installed version" cp -r ./qwen3_5 /usr/local/lib/python3.10/site-packages/transformers/models/ cp -r ./qwen3_5_moe /usr/local/lib/python3.10/site-packages/transformers/models/