Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Pin torch>=2.4,<2.11.0 in Studio installers (#4595)

Daniel Hanbc9cf3147860
diff --git a/install.ps1 b/install.ps1
index 83576d9c75b..a4ed2658c95 100644
--- a/install.ps1
+++ b/install.ps1
@@ -583,7 +583,7 @@ shell.Run cmd, 0, False
uv pip install --python $VenvPython --reinstall-package unsloth --reinstall-package unsloth-zoo "unsloth>=2026.3.11" unsloth-zoo
} elseif ($TorchIndexUrl) {
Write-Host "==> Installing PyTorch ($TorchIndexUrl)..."
- uv pip install --python $VenvPython torch torchvision torchaudio --index-url $TorchIndexUrl
+ uv pip install --python $VenvPython "torch>=2.4,<2.11.0" torchvision torchaudio --index-url $TorchIndexUrl
if ($LASTEXITCODE -ne 0) {
Write-Host "[ERROR] Failed to install PyTorch (exit code $LASTEXITCODE)" -ForegroundColor Red
return
diff --git a/install.sh b/install.sh
index ec5008af125..6f60c23d272 100755
--- a/install.sh
+++ b/install.sh
@@ -775,7 +775,7 @@ if [ "$_MIGRATED" = true ]; then
elif [ -n "$TORCH_INDEX_URL" ]; then
# Fresh: Step 1 - install torch from explicit index
echo "==> Installing PyTorch ($TORCH_INDEX_URL)..."
- uv pip install --python "$_VENV_PY" torch torchvision torchaudio \
+ uv pip install --python "$_VENV_PY" "torch>=2.4,<2.11.0" torchvision torchaudio \
--index-url "$TORCH_INDEX_URL"
# Fresh: Step 2 - install unsloth, preserving pre-installed torch
echo "==> Installing unsloth (this may take a few minutes)..."