-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
fix(studio): install unsloth and unsloth_zoo from git main #4794
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 |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
| # Core unsloth packages | ||
| unsloth-zoo | ||
| unsloth | ||
| # Temporarily install from git main instead of PyPI to pick up latest | ||
| # fixes (Gemma 4 support, Studio patches). Revert to package names | ||
| # once the next PyPI release is cut. | ||
| git+https://github.com/unslothai/unsloth_zoo.git | ||
| git+https://github.com/unslothai/unsloth.git |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,6 +42,15 @@ def _infer_no_torch() -> bool: | |
|
|
||
| NO_TORCH = _infer_no_torch() | ||
|
|
||
| # -- Maintainer-editable package defaults -------------------------------------- | ||
| # Temporarily install from git main instead of PyPI to pick up latest fixes | ||
| # (Gemma 4 support, Studio patches). Revert to PyPI package names once the | ||
| # next release is cut. | ||
| # PyPI: _DEFAULT_UNSLOTH_PKG = "unsloth" | ||
| # _DEFAULT_ZOO_PKG = "unsloth-zoo" | ||
| _DEFAULT_UNSLOTH_PKG = "git+https://github.com/unslothai/unsloth.git" | ||
| _DEFAULT_ZOO_PKG = "git+https://github.com/unslothai/unsloth_zoo.git" | ||
|
|
||
| # -- Verbosity control ---------------------------------------------------------- | ||
| # By default the installer shows a minimal progress bar (one line, in-place). | ||
| # Set UNSLOTH_VERBOSE=1 in the environment to restore full per-step output: | ||
|
|
@@ -471,11 +480,11 @@ def install_python_stack() -> int: | |
| "--no-cache-dir", | ||
| "--no-deps", | ||
| "--upgrade-package", | ||
| package_name, | ||
| "unsloth", | ||
| "--upgrade-package", | ||
| "unsloth-zoo", | ||
| package_name, | ||
| "unsloth-zoo", | ||
| _DEFAULT_UNSLOTH_PKG, | ||
| _DEFAULT_ZOO_PKG, | ||
|
Comment on lines
+483
to
+487
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.
In Useful? React with 👍 / 👎. |
||
| ) | ||
| pip_install( | ||
| "Installing no-torch runtime deps", | ||
|
|
||
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.
install.ps1still parses--package, but the base install now always uses$DefaultUnslothPkg/$DefaultZooPkg, so users testing a fork (for example--package roland-sloth) will silently install the default gitunslothinstead. This is a regression from the previous behavior where the non-local install path used$PackageName, and it matters becauseSKIP_STUDIO_BASE=1means the later setup step does not reinstall base packages.Useful? React with 👍 / 👎.