diff --git a/install.ps1 b/install.ps1 index d438e5ed2d..52386dd2fd 100644 --- a/install.ps1 +++ b/install.ps1 @@ -275,7 +275,7 @@ function Install-UnslothStudio { } Write-Host "==> Installing unsloth (this may take a few minutes)..." - uv pip install --python $VenvPython --upgrade-package unsloth unsloth + uv pip install --python $VenvPython --upgrade-package unsloth "unsloth>=2026.3.11" if ($LASTEXITCODE -ne 0) { Write-Host "[ERROR] Failed to install unsloth (exit code $LASTEXITCODE)" -ForegroundColor Red return diff --git a/install.sh b/install.sh index 18db3469f4..3d8e08612c 100755 --- a/install.sh +++ b/install.sh @@ -235,7 +235,7 @@ fi # ── Install unsloth directly into the venv (no activation needed) ── echo "==> Installing unsloth (this may take a few minutes)..." -uv pip install --python "$VENV_NAME/bin/python" unsloth --torch-backend=auto +uv pip install --python "$VENV_NAME/bin/python" "unsloth>=2026.3.11" --torch-backend=auto # ── Run studio setup ── # Ensure the venv's Python is on PATH for setup.sh's Python discovery.