Repository navigation
Bump install.sh / install.ps1 pin to unsloth>=2026.5.6 - #5716
Conversation
PyPI release 2026.5.6 is now live; update install.sh and install.ps1 to pin against the new minimum so fresh installs pick up the latest wheel.
There was a problem hiding this comment.
Code Review
This pull request updates the unsloth package version requirement from 2026.5.5 to 2026.5.6 across multiple installation paths in both the install.ps1 and install.sh scripts. The review feedback identifies inconsistencies in specific installation commands that are missing the --upgrade-package flag and use a package ordering that deviates from the established pattern in the rest of the codebase, potentially affecting update reliability and maintainability.
| substep "installing unsloth (this may take a few minutes)..." | ||
| if ($StudioLocalInstall) { | ||
| $baseInstallExit = Invoke-InstallCommand { uv pip install --python $VenvPython unsloth-zoo "unsloth>=2026.5.5" --torch-backend=auto } | ||
| $baseInstallExit = Invoke-InstallCommand { uv pip install --python $VenvPython unsloth-zoo "unsloth>=2026.5.6" --torch-backend=auto } |
There was a problem hiding this comment.
The uv pip install command in this fallback path is inconsistent with other installation paths in the script (e.g., line 1357). It lacks the --upgrade-package unsloth flag, which is important for ensuring the package is correctly updated during installation retries. Additionally, the package order is reversed compared to the established pattern in the rest of the module.
$baseInstallExit = Invoke-InstallCommand { uv pip install --python $VenvPython --upgrade-package unsloth "unsloth>=2026.5.6" unsloth-zoo --torch-backend=auto }
References
- Prioritize consistency with established coding patterns within a module.
| substep "installing unsloth (this may take a few minutes)..." | ||
| if [ "$STUDIO_LOCAL_INSTALL" = true ]; then | ||
| run_install_cmd "install unsloth (auto torch backend)" uv pip install --python "$_VENV_PY" unsloth-zoo "unsloth>=2026.5.5" --torch-backend=auto | ||
| run_install_cmd "install unsloth (auto torch backend)" uv pip install --python "$_VENV_PY" unsloth-zoo "unsloth>=2026.5.6" --torch-backend=auto |
There was a problem hiding this comment.
The uv pip install command in this fallback path is inconsistent with other installation paths in the script (e.g., line 2059). It is missing the --upgrade-package unsloth flag, which ensures the package is updated during retries. The package order should also be aligned with the pattern used in other hunks for better maintainability.
| run_install_cmd "install unsloth (auto torch backend)" uv pip install --python "$_VENV_PY" unsloth-zoo "unsloth>=2026.5.6" --torch-backend=auto | |
| run_install_cmd "install unsloth (auto torch backend)" uv pip install --python "$_VENV_PY" --upgrade-package unsloth "unsloth>=2026.5.6" unsloth-zoo --torch-backend=auto |
References
- Prioritize consistency with established coding patterns within a module.
PyPI release 2026.5.6 is now live; update install.sh and install.ps1 to pin against the new minimum so fresh installs pick up the latest wheel. Co-authored-by: Michael Han <[email protected]>
…oo>=2026.7.2 (#6981) PyPI release unsloth 2026.7.2 is now live. Bumps the pinned floor in install.sh and install.ps1 from 2026.7.1 to 2026.7.2 for both unsloth and unsloth-zoo across all 5 install commands (no-torch / reinstall / upgrade / local / auto torch backend paths) so fresh installs resolve to the new wheel. Follows the same pattern as #5716.
Bumps the default release install spec in the installers to the unsloth version just published to PyPI. - `install.sh`: `_unsloth_release_install_spec` default `unsloth>=2026.11.3` -> `unsloth>=2026.11.4` - `install.ps1`: `$_unslothReleaseInstallSpec` default `unsloth>=2026.11.3` -> `unsloth>=2026.11.4` `unsloth-zoo>=2026.11.4` is already the latest unsloth_zoo on PyPI, and `pyproject.toml` already carries `unsloth_zoo>=2026.11.4` on all three lines, so neither changes here. Same shape as #5716.
…>=2026.11.5 (#17988) Bumps the release install pins in `install.sh` and `install.ps1` to the current PyPI releases, following #5716: - `install.sh`: `_unsloth_release_install_spec` default to `unsloth>=2026.11.5`, `_unsloth_zoo_install_spec` to `unsloth-zoo>=2026.11.5` - `install.ps1`: `$_unslothReleaseInstallSpec` default to `unsloth>=2026.11.5`, `$_unslothZooInstallSpec` to `unsloth-zoo>=2026.11.5` `pyproject.toml` on main already carries `unsloth_zoo>=2026.11.5` on all three lines, so it is unchanged.
) Moves the installer release floors to the versions now on PyPI, following unslothai#5716. - `install.sh`: `_unsloth_release_install_spec` to `unsloth>=2026.11.6`, `_unsloth_zoo_install_spec` to `unsloth-zoo>=2026.11.6` - `install.ps1`: `$_unslothReleaseInstallSpec` to `unsloth>=2026.11.6`, `$_unslothZooInstallSpec` to `unsloth-zoo>=2026.11.6` Every install call site reads these two variables, so no other lines change. `pyproject.toml` already requires `unsloth_zoo>=2026.11.6` on all three lines. Tests: `tests/test_installer_zoo_floor_parity.py` and `tests/python/test_desktop_unsloth_spec_no_deps_pair.py` (24 passed, 2 skipped), `tests/sh/test_relax_unsloth_floors_to_index.sh` (23 passed), `bash -n install.sh` clean.
Summary
install.shandinstall.ps1fromunsloth>=2026.5.5tounsloth>=2026.5.6so fresh installs resolve to the new wheel.v0.1.415-beta.Test plan
install.shon a clean Linux hostinstall.ps1on a clean Windows hostuv pip install "unsloth>=2026.5.6"resolves cleanly