Repository navigation
Closed
Description
I failed to install Unsloth Studio, the installation log is as follows.
GPU: RTX5060Ti
Mon Jul 6 15:54:50 2026
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 595.97 Driver Version: 595.97 CUDA Version: 13.2 |
+-----------------------------------------+------------------------+----------------------+
| GPU Name Driver-Model | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 5060 Ti WDDM | 00000000:01:00.0 On | N/A |
| 0% 40C P3 N/A / N/A | 1384MiB / 16311MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
CUDA:
Copyright (c) 2005-2026 NVIDIA Corporation
Built on Mon_Mar__2_21:54:11_Pacific_Standard_Time_2026
Cuda compilation tools, release 13.2, V13.2.51
Build cuda_13.2.r13.2/compiler.37434383_0
Windows11 25H2
PS C:\Users\53106> irm https://unsloth.ai/install.ps1 | iex
🦥 Unsloth Studio Installer (Windows)
────────────────────────────────────────────────────
winget available
python Python 3.13 already installed
venv creating Python 3.13 virtual environment
C:\Users\53106\.unsloth\studio\unsloth_studio
gpu NVIDIA GPU detected
installing PyTorch (https://download.pytorch.org/whl/cu130)...
installing unsloth (this may take a few minutes)...
PyTorch flavor mismatch (installed cpu, need cu130) -- reinstalling correct build...
[WARN] PyTorch is CPU-only but a cu130 GPU build was expected for this machine.
[WARN] Training and GPU inference will run on CPU until this is fixed.
[WARN] Re-run this installer, or reinstall the GPU build manually for your GPU.
setup running unsloth studio setup...
🦥 Unsloth Studio Setup
────────────────────────────────────────────────────
gpu NVIDIA GPU detected
long paths enabled
git git version 2.54.0.windows.1
vcredist present
cmake cmake version 4.3.3
vs Visual Studio 17 2022 (filesystem (BuildTools)) (only used if a source build is needed)
cl.exe: C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.44.
35207\bin\Hostx64\x64\cl.exe
Node v24.11.0 and npm 11.6.2 already meet requirements (system).
Python 3.13.14
system prerequisites ready
frontend up to date
node v24.11.0 | npm 11.6.2 (system)
installing OXC validator runtime...
oxc runtime installed
setting up Python environment...
Python found: C:\Users\53106\.unsloth\studio\unsloth_studio\Scripts\python.exe
Stale venv detected (torch cpu != required cu130).
[ERROR] The existing Studio environment needs repair.
Re-run install.ps1 so it can replace the environment safely with rollback.
[ERROR] unsloth studio setup failed (exit code 1)
Activity
Etherll commentedon Jul 8, 2026
Thanks for the full log - this looks like a bug. The machine is correctly selecting
cu130, but Torch is ending up CPU-only and then setup rejects the venv; could you rerun with$env:UNSLOTH_VERBOSE='1'; irm https://unsloth.ai/install.ps1 | iexand paste the PyTorch reinstall part of the log? That should show why the CUDA Torch install is not sticking.huainian6911 commentedon Jul 8, 2026
@Etherll
PS C:\Users\53106> $env:UNSLOTH_VERBOSE='1'; irm https://unsloth.ai/install.ps1 | iex
huainian6911 commentedon Jul 8, 2026
I suddenly remembered that I had set UV_DEFAULT_INDEX in the system environment variables. After I deleted this environment variable, Unsloth Studio installed successfully.
Can the installation script be modified so that it can still install correctly when UV_DEFAULT_INDEX is set?
Fix Windows installer torch index override (#6972)
Studio: report the uv side of a hardened policy, and only what is act…
Studio: keep an explicit no-index under the opt-out, and read exclude…
Studio: honour the policy opt-out in the shell installers too
Studio: keep the uv wheelhouse under the opt-out
Enforce the restored only-binary on the uv leg, and dictate the read …
Studio: keep the operator's package-manager policy in the installer (#…
Studio: carry the remaining pip policies, and fix two defects the sta…