-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Bump install.sh / install.ps1 pin to unsloth>=2026.5.6 #5716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -1865,15 +1865,15 @@ if [ "$_MIGRATED" = true ]; then | |||||
| # to prevent transitive torch resolution. | ||||||
| run_install_cmd "install unsloth (migrated no-torch)" uv pip install --python "$_VENV_PY" --no-deps \ | ||||||
| --reinstall-package unsloth --reinstall-package unsloth-zoo \ | ||||||
| "unsloth>=2026.5.5" unsloth-zoo | ||||||
| "unsloth>=2026.5.6" unsloth-zoo | ||||||
| _NO_TORCH_RT="$(_find_no_torch_runtime)" | ||||||
| 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" | ||||||
| fi | ||||||
| else | ||||||
| run_install_cmd "install unsloth (migrated)" uv pip install --python "$_VENV_PY" \ | ||||||
| --reinstall-package unsloth --reinstall-package unsloth-zoo \ | ||||||
| "unsloth>=2026.5.5" unsloth-zoo | ||||||
| "unsloth>=2026.5.6" unsloth-zoo | ||||||
| fi | ||||||
| if [ "$STUDIO_LOCAL_INSTALL" = true ]; then | ||||||
| substep "overlaying local repo (editable)..." | ||||||
|
|
@@ -2041,7 +2041,7 @@ elif [ -n "$TORCH_INDEX_URL" ]; then | |||||
| # runtime deps (typer, safetensors, transformers, etc.) with --no-deps. | ||||||
| run_install_cmd "install unsloth (no-torch)" uv pip install --python "$_VENV_PY" --no-deps \ | ||||||
| --upgrade-package unsloth --upgrade-package unsloth-zoo \ | ||||||
| "unsloth>=2026.5.5" unsloth-zoo | ||||||
| "unsloth>=2026.5.6" unsloth-zoo | ||||||
| _NO_TORCH_RT="$(_find_no_torch_runtime)" | ||||||
| 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" | ||||||
|
|
@@ -2056,7 +2056,7 @@ elif [ -n "$TORCH_INDEX_URL" ]; then | |||||
| fi | ||||||
| elif [ "$STUDIO_LOCAL_INSTALL" = true ]; then | ||||||
| run_install_cmd "install unsloth (local)" uv pip install --python "$_VENV_PY" \ | ||||||
| --upgrade-package unsloth "unsloth>=2026.5.5" unsloth-zoo | ||||||
| --upgrade-package unsloth "unsloth>=2026.5.6" unsloth-zoo | ||||||
| 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 main..." | ||||||
|
|
@@ -2088,7 +2088,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 "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 | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Suggested change
References
|
||||||
| 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 main..." | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
uv pip installcommand in this fallback path is inconsistent with other installation paths in the script (e.g., line 1357). It lacks the--upgrade-package unslothflag, 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.References