mirror of
https://github.com/unslothai/unsloth.git
synced 2026-10-14 03:11:11 +00:00
Bump install.sh / install.ps1 pins to unsloth>=2026.10.5 and unsloth-zoo>=2026.10.5 (#13627)
This commit is contained in:
parent
781a1a09f0
commit
4bbaf0696d
2 changed files with 13 additions and 13 deletions
14
install.ps1
14
install.ps1
|
|
@ -10696,7 +10696,7 @@ main()
|
|||
|
||||
$_desktopMinVer = if ($env:UNSLOTH_DESKTOP_BACKEND_VERSION) { $env:UNSLOTH_DESKTOP_BACKEND_VERSION.Trim() } else { "" }
|
||||
$_unslothDesktopInstallSpec = if ($_desktopMinVer) { "unsloth>=$_desktopMinVer" } else { $null }
|
||||
$_unslothReleaseInstallSpec = if ($_unslothDesktopInstallSpec) { $_unslothDesktopInstallSpec } else { "unsloth>=2026.10.4" }
|
||||
$_unslothReleaseInstallSpec = if ($_unslothDesktopInstallSpec) { $_unslothDesktopInstallSpec } else { "unsloth>=2026.10.5" }
|
||||
|
||||
if ($_Migrated) {
|
||||
Write-TauriLog "STEP" "Installing unsloth"
|
||||
|
|
@ -10707,7 +10707,7 @@ main()
|
|||
# --no-deps means unsloth's own metadata is never read, so this spec IS the zoo
|
||||
# floor for this path. Keep it equal to the unsloth_zoo floor in pyproject.toml
|
||||
# (tests/test_installer_zoo_floor_parity.py enforces that).
|
||||
$baseInstallExit = Invoke-InstallCommandRetry -Label "install unsloth (migrated no-torch)" { & $script:UvExe pip install --python $VenvPython --no-deps --reinstall-package unsloth --reinstall-package unsloth-zoo "$_unslothReleaseInstallSpec" "unsloth-zoo>=2026.10.4" }
|
||||
$baseInstallExit = Invoke-InstallCommandRetry -Label "install unsloth (migrated no-torch)" { & $script:UvExe pip install --python $VenvPython --no-deps --reinstall-package unsloth --reinstall-package unsloth-zoo "$_unslothReleaseInstallSpec" "unsloth-zoo>=2026.10.5" }
|
||||
if ($baseInstallExit -eq 0) {
|
||||
# Resolve pydantic WITH deps so pip pins pydantic-core
|
||||
# to the matching version (no-torch-runtime.txt below
|
||||
|
|
@ -10731,7 +10731,7 @@ main()
|
|||
$script:TorchOverridesFile = New-UnslothTorchOverridesFile -PythonExe $VenvPython
|
||||
$_migOverrides = @()
|
||||
if ($script:TorchOverridesFile) { $_migOverrides = @("--overrides", $script:TorchOverridesFile) }
|
||||
$baseInstallExit = Invoke-InstallCommandRetry -Label "install unsloth (migrated)" { & $script:UvExe pip install --python $VenvPython @_migOverrides --reinstall-package unsloth --reinstall-package unsloth-zoo "$_unslothReleaseInstallSpec" "unsloth-zoo>=2026.10.4" }
|
||||
$baseInstallExit = Invoke-InstallCommandRetry -Label "install unsloth (migrated)" { & $script:UvExe pip install --python $VenvPython @_migOverrides --reinstall-package unsloth --reinstall-package unsloth-zoo "$_unslothReleaseInstallSpec" "unsloth-zoo>=2026.10.5" }
|
||||
if ($script:TorchOverridesFile) {
|
||||
Remove-UnslothTempFileQuietly -Path $script:TorchOverridesFile
|
||||
$script:TorchOverridesFile = $null
|
||||
|
|
@ -11012,7 +11012,7 @@ main()
|
|||
# No-torch: install unsloth + unsloth-zoo with --no-deps, then
|
||||
# runtime deps (typer, safetensors, transformers, etc.) with --no-deps.
|
||||
# --no-deps: this spec IS the zoo floor here. Kept equal to pyproject.toml's.
|
||||
$baseInstallExit = Invoke-InstallCommandRetry -Label "install unsloth (no-torch)" { & $script:UvExe pip install --python $VenvPython --no-deps --upgrade-package unsloth --upgrade-package unsloth-zoo "$_unslothReleaseInstallSpec" "unsloth-zoo>=2026.10.4" }
|
||||
$baseInstallExit = Invoke-InstallCommandRetry -Label "install unsloth (no-torch)" { & $script:UvExe pip install --python $VenvPython --no-deps --upgrade-package unsloth --upgrade-package unsloth-zoo "$_unslothReleaseInstallSpec" "unsloth-zoo>=2026.10.5" }
|
||||
if ($baseInstallExit -eq 0) {
|
||||
# Same pydantic-with-deps trick as the migrated branch.
|
||||
$baseInstallExit = Invoke-InstallCommandRetry -Label "install pydantic" { & $script:UvExe pip install --python $VenvPython pydantic }
|
||||
|
|
@ -11032,11 +11032,11 @@ main()
|
|||
# Freeze the trio so this with-deps resolve cannot downgrade the pinned build.
|
||||
$script:TorchOverridesFile = New-UnslothTorchOverridesFile -PythonExe $VenvPython
|
||||
if ($script:TorchOverridesFile) {
|
||||
$baseInstallExit = Invoke-InstallCommandRetry -Label "install unsloth (local)" { & $script:UvExe pip install --python $VenvPython --upgrade-package unsloth --overrides $script:TorchOverridesFile "$_unslothReleaseInstallSpec" "unsloth-zoo>=2026.10.4" }
|
||||
$baseInstallExit = Invoke-InstallCommandRetry -Label "install unsloth (local)" { & $script:UvExe pip install --python $VenvPython --upgrade-package unsloth --overrides $script:TorchOverridesFile "$_unslothReleaseInstallSpec" "unsloth-zoo>=2026.10.5" }
|
||||
Remove-UnslothTempFileQuietly -Path $script:TorchOverridesFile
|
||||
$script:TorchOverridesFile = $null
|
||||
} else {
|
||||
$baseInstallExit = Invoke-InstallCommandRetry -Label "install unsloth (local)" { & $script:UvExe pip install --python $VenvPython --upgrade-package unsloth "$_unslothReleaseInstallSpec" "unsloth-zoo>=2026.10.4" }
|
||||
$baseInstallExit = Invoke-InstallCommandRetry -Label "install unsloth (local)" { & $script:UvExe pip install --python $VenvPython --upgrade-package unsloth "$_unslothReleaseInstallSpec" "unsloth-zoo>=2026.10.5" }
|
||||
}
|
||||
} else {
|
||||
$_unslothPkg = if ($PackageName -eq "unsloth" -and $_unslothDesktopInstallSpec) { $_unslothDesktopInstallSpec } else { $PackageName }
|
||||
|
|
@ -11073,7 +11073,7 @@ main()
|
|||
Write-TauriLog "STEP" "Installing unsloth"
|
||||
substep "installing unsloth (this may take a few minutes)..."
|
||||
if ($StudioLocalInstall) {
|
||||
$baseInstallExit = Invoke-InstallCommandRetry -Label "install unsloth (auto torch backend)" { & $script:UvExe pip install --python $VenvPython "unsloth-zoo>=2026.10.4" "$_unslothReleaseInstallSpec" --torch-backend=auto }
|
||||
$baseInstallExit = Invoke-InstallCommandRetry -Label "install unsloth (auto torch backend)" { & $script:UvExe pip install --python $VenvPython "unsloth-zoo>=2026.10.5" "$_unslothReleaseInstallSpec" --torch-backend=auto }
|
||||
if ($baseInstallExit -ne 0) {
|
||||
Write-StudioLine "[ERROR] Failed to install unsloth (exit code $baseInstallExit)" -ForegroundColor Red
|
||||
return (Exit-InstallFailure "Failed to install unsloth (exit code $baseInstallExit)" $baseInstallExit)
|
||||
|
|
|
|||
12
install.sh
12
install.sh
|
|
@ -8120,7 +8120,7 @@ _unsloth_desktop_install_spec=""
|
|||
if [ -n "${UNSLOTH_DESKTOP_BACKEND_VERSION:-}" ]; then
|
||||
_unsloth_desktop_install_spec="unsloth>=${UNSLOTH_DESKTOP_BACKEND_VERSION}"
|
||||
fi
|
||||
_unsloth_release_install_spec="${_unsloth_desktop_install_spec:-unsloth>=2026.10.4}"
|
||||
_unsloth_release_install_spec="${_unsloth_desktop_install_spec:-unsloth>=2026.10.5}"
|
||||
|
||||
if [ "$_MIGRATED" = true ]; then
|
||||
# Migrated env: force-reinstall unsloth+unsloth-zoo, keeping torch unless the ROCm repair fires.
|
||||
|
|
@ -8133,7 +8133,7 @@ if [ "$_MIGRATED" = true ]; then
|
|||
# (tests/test_installer_zoo_floor_parity.py enforces that).
|
||||
run_install_cmd_retry "install unsloth (migrated no-torch)" uv pip install --python "$_VENV_PY" --no-deps \
|
||||
--reinstall-package unsloth --reinstall-package unsloth-zoo \
|
||||
"$_unsloth_release_install_spec" "unsloth-zoo>=2026.10.4"
|
||||
"$_unsloth_release_install_spec" "unsloth-zoo>=2026.10.5"
|
||||
# Resolve pydantic WITH deps so pip pins pydantic-core to the
|
||||
# matching version (no-torch-runtime.txt below is --no-deps).
|
||||
# All transitive deps are torch-free.
|
||||
|
|
@ -8148,7 +8148,7 @@ if [ "$_MIGRATED" = true ]; then
|
|||
run_install_cmd_retry "install unsloth (migrated)" uv pip install --python "$_VENV_PY" \
|
||||
${_UNSLOTH_TORCH_OVERRIDES:+--overrides "$_UNSLOTH_TORCH_OVERRIDES"} \
|
||||
--reinstall-package unsloth --reinstall-package unsloth-zoo \
|
||||
"$_unsloth_release_install_spec" "unsloth-zoo>=2026.10.4"
|
||||
"$_unsloth_release_install_spec" "unsloth-zoo>=2026.10.5"
|
||||
[ -n "$_UNSLOTH_TORCH_OVERRIDES" ] && rm -f "$_UNSLOTH_TORCH_OVERRIDES"
|
||||
_UNSLOTH_TORCH_OVERRIDES=""
|
||||
fi
|
||||
|
|
@ -8377,7 +8377,7 @@ elif [ -n "$TORCH_INDEX_URL" ]; then
|
|||
# --no-deps: this spec IS the zoo floor here. Kept equal to pyproject.toml's.
|
||||
run_install_cmd_retry "install unsloth (no-torch)" uv pip install --python "$_VENV_PY" --no-deps \
|
||||
--upgrade-package unsloth --upgrade-package unsloth-zoo \
|
||||
"$_unsloth_release_install_spec" "unsloth-zoo>=2026.10.4"
|
||||
"$_unsloth_release_install_spec" "unsloth-zoo>=2026.10.5"
|
||||
# Same pydantic-with-deps trick as the migrated branch.
|
||||
run_install_cmd_retry "install pydantic (with deps for compatible core)" \
|
||||
uv pip install --python "$_VENV_PY" pydantic
|
||||
|
|
@ -8396,7 +8396,7 @@ elif [ -n "$TORCH_INDEX_URL" ]; then
|
|||
elif [ "$STUDIO_LOCAL_INSTALL" = true ]; then
|
||||
run_install_cmd_retry "install unsloth (local)" uv pip install --python "$_VENV_PY" \
|
||||
${_UNSLOTH_TORCH_OVERRIDES:+--overrides "$_UNSLOTH_TORCH_OVERRIDES"} \
|
||||
--upgrade-package unsloth "$_unsloth_release_install_spec" "unsloth-zoo>=2026.10.4"
|
||||
--upgrade-package unsloth "$_unsloth_release_install_spec" "unsloth-zoo>=2026.10.5"
|
||||
substep "overlaying local repo (editable)..."
|
||||
run_install_cmd "overlay local repo" uv pip install --python "$_VENV_PY" -e "$_REPO_ROOT" --no-deps
|
||||
substep "overlaying unsloth-zoo from git ${_ZOO_REF}..."
|
||||
|
|
@ -8427,7 +8427,7 @@ else
|
|||
tauri_log "STEP" "Installing Unsloth"
|
||||
substep "installing unsloth (this may take a few minutes)..."
|
||||
if [ "$STUDIO_LOCAL_INSTALL" = true ]; then
|
||||
run_install_cmd_retry "install unsloth (auto torch backend)" uv pip install --python "$_VENV_PY" "unsloth-zoo>=2026.10.4" "$_unsloth_release_install_spec" --torch-backend=auto
|
||||
run_install_cmd_retry "install unsloth (auto torch backend)" uv pip install --python "$_VENV_PY" "unsloth-zoo>=2026.10.5" "$_unsloth_release_install_spec" --torch-backend=auto
|
||||
substep "overlaying local repo (editable)..."
|
||||
run_install_cmd "overlay local repo" uv pip install --python "$_VENV_PY" -e "$_REPO_ROOT" --no-deps
|
||||
substep "overlaying unsloth-zoo from git ${_ZOO_REF}..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue