Repository navigation
Studio: torch 2.13 for new Windows x64 cu130 Python 3.13 installs, existing installs keep their torch #13263
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
c829922
Studio: torch 2.13 for new Windows x64 cu130 Python 3.13 installs, ex…
danielhanchen f20a4b4
install.ps1: keep an occupied venv's torch from version.py when its i…
danielhanchen 4fe251a
Windows: the missing-Triton hint names the triton-windows range for t…
danielhanchen e857401
Keep the CWD-relative legacy venv's torch on migration; Windows-on-AR…
danielhanchen 0da3b92
Trim comments in the Windows torch 2.13 install route
danielhanchen c28b265
Keep the resident torch on every Windows repair path: forced setup re…
danielhanchen 444ceb1
Gate the cu130 torch 2.13 route on --package unsloth and ignore prere…
danielhanchen aad4e37
Skip the core-update torch freeze when the override path cannot be ma…
danielhanchen 9c583fc
Never let a setup or update retry move torch to another release; keep…
danielhanchen bc32031
Keep the torch freeze file user-private and pin a resident torch only…
danielhanchen 19b56c9
Give the Windows torch freeze file a current-user-only ACL; freeze em…
danielhanchen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
When
UNSLOTH_TORCH_UPGRADE=1migrates a healthy legacy.venvor CWD-relative environment on the new Windows x64/cu130/Python 3.13 route, this unconditional override freezes the old torch trio during the core install, while the laterGet-PreviousTorchPindeliberately returns null for an upgrade. The migrated branch never callsResolve-Cu130TorchRoute, andsetup.ps1subsequently installs bare, already-satisfied package names unless another condition forces reinstall, so a resident 2.11 installation remains on 2.11 instead of opting into the intended 2.13 default; if a reinstall is forced, it may instead select the newest unconstrained release. Skip this preservation for an explicit upgrade and route the migrated environment through the same 2.13 selection used by other existing layouts.Useful? React with 👍 / 👎.
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.
Leaving this one as is. The legacy migration in install.sh freezes torch the same way (its migrated branch always runs under _UNSLOTH_TORCH_OVERRIDES, whatever UNSLOTH_TORCH_UPGRADE says), and before this PR the Windows migrated branch never went through the 2.13 route either, so nothing that used to upgrade stops upgrading. The migration only fires once, when the old ~/.unsloth/studio/.venv layout exists and the new one does not. The next install with UNSLOTH_TORCH_UPGRADE=1 runs on the migrated venv as a normal existing install, and that path takes the upgrade.