Repository navigation
Description
On Windows, the Unsloth Studio installer fails to detect the available CUDA version with newer NVIDIA driver / nvidia-smi output formats.
My nvidia-smi output reports:
NVIDIA-SMI 610.47 KMD Version: 610.47 CUDA UMD Version: 13.3
However, when running the official Unsloth Studio installer, it detects the NVIDIA GPU but fails to detect the CUDA version and falls back to CUDA 12.6 PyTorch wheels:
gpu NVIDIA GPU detected
could not determine CUDA version from nvidia-smi, defaulting to cu126
installing PyTorch (https://download.pytorch.org/whl/cu126)...
The GPU itself is detected correctly. The issue appears to be that the installer only parses the older CUDA Version: field, while newer NVIDIA drivers on Windows report CUDA UMD Version: instead.
Environment
OS: Windows
GPU: NVIDIA GeForce RTX 5090 Laptop GPU
NVIDIA driver / NVIDIA-SMI version: 610.47
CUDA version reported by nvidia-smi: CUDA UMD Version 13.3
Installed CUDA Toolkit: CUDA 13.0
Python: 3.13.13
Installation command:
irm https://unsloth.ai/install.ps1 | iex
Steps to reproduce
Run the official Windows installer:
irm https://unsloth.ai/install.ps1 | iex
Observe the CUDA / PyTorch selection step.
Actual behavior
The installer detects the NVIDIA GPU, but it cannot determine the CUDA version:
gpu NVIDIA GPU detected
could not determine CUDA version from nvidia-smi, defaulting to cu126
installing PyTorch (https://download.pytorch.org/whl/cu126)...
As a result, PyTorch is installed using the cu126 wheel index even though the system driver reports CUDA 13.3 capability.
Expected behavior
The installer should recognize CUDA UMD Version: 13.3 and select the supported CUDA 13 PyTorch wheel index:
installing PyTorch (https://download.pytorch.org/whl/cu130)...
Relevant nvidia-smi output
Wed May 27 15:27:49 2026
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 610.47 KMD Version: 610.47 CUDA UMD Version: 13.3 |
+-----------------------------------------+------------------------+----------------------+
| 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 5090 ... WDDM | 00000000:02:00.0 Off | N/A |
| N/A 39C P0 25W / 175W | 0MiB / 24463MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| No running processes found |
+-----------------------------------------------------------------------------------------+
Additional GPU query output:
nvidia-smi -L
GPU 0: NVIDIA GeForce RTX 5090 Laptop GPU (UUID: GPU-26566e48-9496-6872-e79c-3743e3dfa0f6)
nvidia-smi --query-gpu=index,name,uuid,driver_version,compute_cap --format=csv,noheader
0, NVIDIA GeForce RTX 5090 Laptop GPU, GPU-26566e48-9496-6872-e79c-3743e3dfa0f6, 610.47, 12.0
Suspected cause
The installer appears to look only for the older output format:
CUDA Version:\s+(\d+).(\d+)
On my system, nvidia-smi instead outputs:
CUDA UMD Version: 13.3
Therefore, the regex does not match and the installer falls back to cu126.
Suggested fix
Support both output formats when parsing the CUDA version, for example:
CUDA(?: UMD)? Version:\s+(\d+).(\d+)
This would match both:
CUDA Version: 13.0
CUDA UMD Version: 13.3
Local verification
After locally adjusting the parser to recognize CUDA UMD Version: 13.3, the installer selected the CUDA 13 PyTorch wheels and PyTorch successfully used the GPU:
Torch: 2.10.0+cu130
CUDA Runtime: 13.0
CUDA available: True
GPU: NVIDIA GeForce RTX 5090 Laptop GPU
Additional note
I also observed a separate llama.cpp / GGUF inference issue where a CPU-only Windows prebuilt was selected despite an NVIDIA GPU being available. I believe that is a separate issue from the CUDA version parser problem described here and can be reported separately.
Activity
Detect CUDA UMD Version from newer nvidia-smi output (fixes unslothai…