Skip to content

[Bug] unsloth studio setup failed #6898

Description

@huainian6911

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions