Repository navigation
Description
Summary
unsloth==2026.5.8 (the current PyPI release, published May 8) has 4 bugs that completely break CUDA 13.x support on Windows for users with NVIDIA driver 610+. All 4 are already fixed on main (commit a62eb80, May 27) but not yet in a PyPI release.
Users with driver 610+ get:
- PyTorch installed with cu130 (correct, via
install.ps1) - setup.ps1 rejects it as "stale" because
Get-PytorchCudaTagreturns cu126 (wrong) - llama.cpp installed as CPU-only because the prebuilt selector can not find the cuda-13.3 asset
Net result: install fails, and even if manually patched past setup, inference runs on CPU at ~10 tok/s instead of GPU at ~40+ tok/s.
Environment
- unsloth: 2026.5.8 (PyPI)
- OS: Windows 11 (10.0.26200)
- GPU: NVIDIA GeForce RTX 4070 Super (sm_89)
- Driver: 610.47 (
CUDA UMD Version: 13.3) - CUDA Toolkit: 13.2
- Python: 3.13.12
Bugs
Bug 1: setup.ps1 -- Get-PytorchCudaTag regex misses CUDA UMD Version
File: studio/setup.ps1, line ~355
NVIDIA driver 610+ outputs CUDA UMD Version: X.Y instead of CUDA Version: X.Y. The PyPI version only matches the old format:
# PyPI (broken)
if ($output -match 'CUDA Version:\s+(\d+)\.(\d+)') {
# main (fixed)
if ($output -match 'CUDA(?: UMD)? Version:\s+(\d+)\.(\d+)') {When the regex fails, the function returns "cu126" (the fallback default). install.ps1 correctly detects CUDA 13.3 and installs torch+cu130. setup.ps1 then sees torch cu130 != required cu126 and exits with error.
The same fix is needed for the $DriverMaxCuda regex ~30 lines later.
Bug 2: install_llama_prebuilt.py -- same CUDA UMD Version detection failure
File: studio/install_llama_prebuilt.py, line ~2607
# PyPI (broken) -- substring check, not regex
if "CUDA Version:" in line:
raw = line.split("CUDA Version:", 1)[1].strip().split()[0]
# main (fixed) -- handles both spellings
if "UMD Version:" in line:
raw = line.split("UMD Version:", 1)[1].strip().split()[0]
elif "CUDA Version:" in line:
raw = line.split("CUDA Version:", 1)[1].strip().split()[0]Result: host.driver_cuda_version is None even though nvidia-smi reports 13.3. The CUDA prebuilt selection logic has no version to work with.
Bug 3: install_llama_prebuilt.py -- pick_windows_cuda_runtime hardcodes 13.1
File: studio/install_llama_prebuilt.py, pick_windows_cuda_runtime() function
# PyPI (broken)
if major > 13 or (major == 13):
return "13.1"
# main (fixed)
# returns "13.3" to match actual release asset namingThe generated asset name becomes llama-{tag}-bin-win-cuda-13.1-x64.zip, but ggml-org/llama.cpp releases ship cuda-13.3 assets. No match -> falls through to CPU.
Bug 4: install_llama_prebuilt.py -- compatible_windows_runtime_lines also hardcodes 13.1
File: studio/install_llama_prebuilt.py, compatible_windows_runtime_lines() function
# PyPI (broken)
if driver_runtime == "13.1":
return ["cuda13", "cuda12"]
# main (fixed)
if driver_runtime and driver_runtime.startswith("13"):
return ["cuda13", "cuda12"]Even if Bug 3 is patched to return "13.3", this function still returns [] because it compares against the literal "13.1".
Verification
After manually patching all 4 bugs in the installed package:
driver supports up to CUDA 13.3
installing PyTorch with CUDA support (cu130)...
prebuilt installed: llama-b9409-bin-win-cuda-13.3-x64.zip
Unsloth Studio Setup Complete
Inference performance restored to 40+ tok/s (GPU) vs 10 tok/s (CPU-only).
Request
Please publish a new PyPI release that includes commit a62eb80 and the NVCC_PREPEND_FLAGS fix from a3a0cb1. The current 2026.5.8 is broken for all Windows users on NVIDIA driver 610+ with CUDA 13.x.
Activity
mxmind commentedon May 29, 2026
I have the same issue.
During the setup step,
$expectedTorchTagevaluates to cu126 (or incorrectly falls back), while$installedTorchTagis already cu130, causing an unwanted$shouldRebuild = $trueand an exit code of 1.These lines of code are causing the issue:
unsloth/studio/setup.ps1
Lines 1641 to 1655 in a3a0cb1
studio: make NVIDIA prebuilt selection track CUDA version bumps (Wind…
wasimysaid commentedon May 31, 2026
@Deathdadev and @mxmind we have published new release could you try it out, it should resolve the issues you guys were having, if anything comes up let me know, thank you a lot for filing the issue! use
irm https://unsloth.ai/install.ps1 | iexon windows orcurl -fsSL https://unsloth.ai/install.sh | shon linux.mxmind commentedon May 31, 2026
@wasimysaid I can confirm the issue is gone. RTX 5090, CUDA 13.3, studio works well for me
danielhanchen commentedon Jun 18, 2026
This should be fixed now - sorry on the delay - please update with
uv pip install --upgrade unsloth unsloth_zoo --force-reinstall --no-cache-dir- if it's not fixed yet, it'll be in the next pip / PyPI release - if it's still not working after that, please open another issue - appreciate it again!