You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Windows AMD ROCm installer replaces ROCm PyTorch, then torch import fails #7275
On native Windows with an AMD GPU detected as gfx1103, the Unsloth Studio installer installs AMD's ROCm PyTorch wheel successfully, but the subsequent unsloth installation replaces it with a non-ROCm torch wheel. The Studio setup then fails because torch cannot be imported.
During the following installing unsloth step, the resolver uninstalls the ROCm wheel and installs:
- torch==2.11.0+rocm7.13.0
+ torch==2.10.0
Studio setup reports:
Stale venv detected (torch could not be imported).
[ERROR] The existing Unsloth environment needs repair.
Actual import error
After the failed install, importing Torch in the generated venv fails with:
OSError: [WinError 1114] A dynamic link library (DLL) initialization routine failed.
Error loading "...\\site-packages\\torch\\lib\\c10.dll" or one of its dependencies.
Expected behavior
The installer should preserve the AMD ROCm PyTorch wheel (or install Unsloth without resolving/replacing torch) so that the virtual environment remains importable and Unsloth Studio can finish setup.
The installer rolls back correctly, but rerunning it repeats the same package replacement and failure.
This should be fixed now - sorry on the delay - please update Unsloth Studio to the latest via curl -fsSL https://unsloth.ai/install.sh | sh for Linux, Mac, WSL or irm https://unsloth.ai/install.ps1 | iex for Windows - if it's not fixed yet, it'll be in the next Studio release - if it's still not working after that, please open another issue - appreciate it again!
The Windows ROCm installer no longer replaces your ROCm PyTorch, and setup.ps1 now repairs the venv in place instead of aborting when torch cannot be imported.
Activity
pip: allow torch<2.12 and add amd/huggingfacenotorch extras
CSEliot commentedon Aug 11, 2026
Same or similar issue. And I believe is related to #8473 .
Here's my install dump from unsloth desktop (same as unsloth studio):
unslothInstallDump.txt
danielhanchen commentedon Aug 28, 2026
This should be fixed now - sorry on the delay - please update Unsloth Studio to the latest via
curl -fsSL https://unsloth.ai/install.sh | shfor Linux, Mac, WSL orirm https://unsloth.ai/install.ps1 | iexfor Windows - if it's not fixed yet, it'll be in the next Studio release - if it's still not working after that, please open another issue - appreciate it again!The Windows ROCm installer no longer replaces your ROCm PyTorch, and
setup.ps1now repairs the venv in place instead of aborting when torch cannot be imported.setup.ps1: classify a probe killed by a code integrity status, and re…