diff --git a/setup.ps1 b/setup.ps1 index 0b28456b44..d2bfed3a4c 100644 --- a/setup.ps1 +++ b/setup.ps1 @@ -692,7 +692,7 @@ python "$PSScriptRoot\install_python_stack.py" $ErrorActionPreference = $prevEAP # ── Pre-install transformers 5.x into .venv_t5/ ── -# Models like GLM-4.7-Flash need transformers>=5.1.0. Instead of pip-installing +# Models like GLM-4.7-Flash need transformers>=5.2.0. Instead of pip-installing # at runtime (slow, ~10-15s), we pre-install into a separate directory. # The training subprocess just prepends .venv_t5/ to sys.path — instant switch. Write-Host "" @@ -702,8 +702,8 @@ if (Test-Path $VenvT5Dir) { Remove-Item -Recurse -Force $VenvT5Dir } New-Item -ItemType Directory -Path $VenvT5Dir -Force | Out-Null $prevEAP_t5 = $ErrorActionPreference $ErrorActionPreference = "Continue" -pip install --target $VenvT5Dir --no-deps "transformers==5.1.0" 2>&1 | Out-Null -pip install --target $VenvT5Dir --no-deps "huggingface_hub>=1.3.0" 2>&1 | Out-Null +pip install --target $VenvT5Dir --no-deps "transformers==5.2.0" 2>&1 | Out-Null +pip install --target $VenvT5Dir --no-deps "huggingface_hub==1.3.0" 2>&1 | Out-Null $ErrorActionPreference = $prevEAP_t5 Write-Host "[OK] Transformers 5.x pre-installed to .venv_t5/" -ForegroundColor Green