Bump versions

This commit is contained in:
Daniel Han 2026-04-23 07:05:47 -07:00
parent 563fcf8952
commit 5c473fab80
2 changed files with 10 additions and 10 deletions

View file

@ -934,7 +934,7 @@ shell.Run cmd, 0, False
if ($SkipTorch) { if ($SkipTorch) {
# No-torch: install unsloth + unsloth-zoo with --no-deps, then # No-torch: install unsloth + unsloth-zoo with --no-deps, then
# runtime deps (typer, safetensors, transformers, etc.) with --no-deps. # runtime deps (typer, safetensors, transformers, etc.) with --no-deps.
$baseInstallExit = Invoke-InstallCommand { uv pip install --python $VenvPython --no-deps --reinstall-package unsloth --reinstall-package unsloth-zoo "unsloth>=2026.4.7" unsloth-zoo } $baseInstallExit = Invoke-InstallCommand { uv pip install --python $VenvPython --no-deps --reinstall-package unsloth --reinstall-package unsloth-zoo "unsloth>=2026.4.8" unsloth-zoo }
if ($baseInstallExit -eq 0) { if ($baseInstallExit -eq 0) {
$NoTorchReq = Find-NoTorchRuntimeFile $NoTorchReq = Find-NoTorchRuntimeFile
if ($NoTorchReq) { if ($NoTorchReq) {
@ -942,7 +942,7 @@ shell.Run cmd, 0, False
} }
} }
} else { } else {
$baseInstallExit = Invoke-InstallCommand { uv pip install --python $VenvPython --reinstall-package unsloth --reinstall-package unsloth-zoo "unsloth>=2026.4.7" unsloth-zoo } $baseInstallExit = Invoke-InstallCommand { uv pip install --python $VenvPython --reinstall-package unsloth --reinstall-package unsloth-zoo "unsloth>=2026.4.8" unsloth-zoo }
} }
if ($baseInstallExit -ne 0) { if ($baseInstallExit -ne 0) {
Write-Host "[ERROR] Failed to install unsloth (exit code $baseInstallExit)" -ForegroundColor Red Write-Host "[ERROR] Failed to install unsloth (exit code $baseInstallExit)" -ForegroundColor Red
@ -975,7 +975,7 @@ shell.Run cmd, 0, False
if ($SkipTorch) { if ($SkipTorch) {
# No-torch: install unsloth + unsloth-zoo with --no-deps, then # No-torch: install unsloth + unsloth-zoo with --no-deps, then
# runtime deps (typer, safetensors, transformers, etc.) with --no-deps. # runtime deps (typer, safetensors, transformers, etc.) with --no-deps.
$baseInstallExit = Invoke-InstallCommand { uv pip install --python $VenvPython --no-deps --upgrade-package unsloth --upgrade-package unsloth-zoo "unsloth>=2026.4.7" unsloth-zoo } $baseInstallExit = Invoke-InstallCommand { uv pip install --python $VenvPython --no-deps --upgrade-package unsloth --upgrade-package unsloth-zoo "unsloth>=2026.4.8" unsloth-zoo }
if ($baseInstallExit -eq 0) { if ($baseInstallExit -eq 0) {
$NoTorchReq = Find-NoTorchRuntimeFile $NoTorchReq = Find-NoTorchRuntimeFile
if ($NoTorchReq) { if ($NoTorchReq) {
@ -983,7 +983,7 @@ shell.Run cmd, 0, False
} }
} }
} elseif ($StudioLocalInstall) { } elseif ($StudioLocalInstall) {
$baseInstallExit = Invoke-InstallCommand { uv pip install --python $VenvPython --upgrade-package unsloth "unsloth>=2026.4.7" unsloth-zoo } $baseInstallExit = Invoke-InstallCommand { uv pip install --python $VenvPython --upgrade-package unsloth "unsloth>=2026.4.8" unsloth-zoo }
} else { } else {
$baseInstallExit = Invoke-InstallCommand { uv pip install --python $VenvPython --upgrade-package unsloth -- "$PackageName" } $baseInstallExit = Invoke-InstallCommand { uv pip install --python $VenvPython --upgrade-package unsloth -- "$PackageName" }
} }
@ -1006,7 +1006,7 @@ shell.Run cmd, 0, False
Write-TauriLog "STEP" "Installing unsloth" Write-TauriLog "STEP" "Installing unsloth"
substep "installing unsloth (this may take a few minutes)..." substep "installing unsloth (this may take a few minutes)..."
if ($StudioLocalInstall) { if ($StudioLocalInstall) {
$baseInstallExit = Invoke-InstallCommand { uv pip install --python $VenvPython unsloth-zoo "unsloth>=2026.4.7" --torch-backend=auto } $baseInstallExit = Invoke-InstallCommand { uv pip install --python $VenvPython unsloth-zoo "unsloth>=2026.4.8" --torch-backend=auto }
if ($baseInstallExit -ne 0) { if ($baseInstallExit -ne 0) {
Write-Host "[ERROR] Failed to install unsloth (exit code $baseInstallExit)" -ForegroundColor Red Write-Host "[ERROR] Failed to install unsloth (exit code $baseInstallExit)" -ForegroundColor Red
return return

View file

@ -1347,7 +1347,7 @@ if [ "$_MIGRATED" = true ]; then
# to prevent transitive torch resolution. # to prevent transitive torch resolution.
run_install_cmd "install unsloth (migrated no-torch)" uv pip install --python "$_VENV_PY" --no-deps \ run_install_cmd "install unsloth (migrated no-torch)" uv pip install --python "$_VENV_PY" --no-deps \
--reinstall-package unsloth --reinstall-package unsloth-zoo \ --reinstall-package unsloth --reinstall-package unsloth-zoo \
"unsloth>=2026.4.7" unsloth-zoo "unsloth>=2026.4.8" unsloth-zoo
_NO_TORCH_RT="$(_find_no_torch_runtime)" _NO_TORCH_RT="$(_find_no_torch_runtime)"
if [ -n "$_NO_TORCH_RT" ]; then if [ -n "$_NO_TORCH_RT" ]; then
run_install_cmd "install no-torch runtime deps" uv pip install --python "$_VENV_PY" --no-deps -r "$_NO_TORCH_RT" run_install_cmd "install no-torch runtime deps" uv pip install --python "$_VENV_PY" --no-deps -r "$_NO_TORCH_RT"
@ -1355,7 +1355,7 @@ if [ "$_MIGRATED" = true ]; then
else else
run_install_cmd "install unsloth (migrated)" uv pip install --python "$_VENV_PY" \ run_install_cmd "install unsloth (migrated)" uv pip install --python "$_VENV_PY" \
--reinstall-package unsloth --reinstall-package unsloth-zoo \ --reinstall-package unsloth --reinstall-package unsloth-zoo \
"unsloth>=2026.4.7" unsloth-zoo "unsloth>=2026.4.8" unsloth-zoo
fi fi
if [ "$STUDIO_LOCAL_INSTALL" = true ]; then if [ "$STUDIO_LOCAL_INSTALL" = true ]; then
substep "overlaying local repo (editable)..." substep "overlaying local repo (editable)..."
@ -1519,7 +1519,7 @@ elif [ -n "$TORCH_INDEX_URL" ]; then
# runtime deps (typer, safetensors, transformers, etc.) with --no-deps. # runtime deps (typer, safetensors, transformers, etc.) with --no-deps.
run_install_cmd "install unsloth (no-torch)" uv pip install --python "$_VENV_PY" --no-deps \ run_install_cmd "install unsloth (no-torch)" uv pip install --python "$_VENV_PY" --no-deps \
--upgrade-package unsloth --upgrade-package unsloth-zoo \ --upgrade-package unsloth --upgrade-package unsloth-zoo \
"unsloth>=2026.4.7" unsloth-zoo "unsloth>=2026.4.8" unsloth-zoo
_NO_TORCH_RT="$(_find_no_torch_runtime)" _NO_TORCH_RT="$(_find_no_torch_runtime)"
if [ -n "$_NO_TORCH_RT" ]; then if [ -n "$_NO_TORCH_RT" ]; then
run_install_cmd "install no-torch runtime deps" uv pip install --python "$_VENV_PY" --no-deps -r "$_NO_TORCH_RT" run_install_cmd "install no-torch runtime deps" uv pip install --python "$_VENV_PY" --no-deps -r "$_NO_TORCH_RT"
@ -1530,7 +1530,7 @@ elif [ -n "$TORCH_INDEX_URL" ]; then
fi fi
elif [ "$STUDIO_LOCAL_INSTALL" = true ]; then elif [ "$STUDIO_LOCAL_INSTALL" = true ]; then
run_install_cmd "install unsloth (local)" uv pip install --python "$_VENV_PY" \ run_install_cmd "install unsloth (local)" uv pip install --python "$_VENV_PY" \
--upgrade-package unsloth "unsloth>=2026.4.7" unsloth-zoo --upgrade-package unsloth "unsloth>=2026.4.8" unsloth-zoo
substep "overlaying local repo (editable)..." substep "overlaying local repo (editable)..."
run_install_cmd "overlay local repo" uv pip install --python "$_VENV_PY" -e "$_REPO_ROOT" --no-deps run_install_cmd "overlay local repo" uv pip install --python "$_VENV_PY" -e "$_REPO_ROOT" --no-deps
else else
@ -1558,7 +1558,7 @@ else
tauri_log "STEP" "Installing Unsloth" tauri_log "STEP" "Installing Unsloth"
substep "installing unsloth (this may take a few minutes)..." substep "installing unsloth (this may take a few minutes)..."
if [ "$STUDIO_LOCAL_INSTALL" = true ]; then if [ "$STUDIO_LOCAL_INSTALL" = true ]; then
run_install_cmd "install unsloth (auto torch backend)" uv pip install --python "$_VENV_PY" unsloth-zoo "unsloth>=2026.4.7" --torch-backend=auto run_install_cmd "install unsloth (auto torch backend)" uv pip install --python "$_VENV_PY" unsloth-zoo "unsloth>=2026.4.8" --torch-backend=auto
substep "overlaying local repo (editable)..." substep "overlaying local repo (editable)..."
run_install_cmd "overlay local repo" uv pip install --python "$_VENV_PY" -e "$_REPO_ROOT" --no-deps run_install_cmd "overlay local repo" uv pip install --python "$_VENV_PY" -e "$_REPO_ROOT" --no-deps
else else