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] Not Unsloth Studio detects my GPU But not use but only uses CPU/RAM #5106
please follow my comment here it should solve ur problem. it's a known windows issue . Easy to solve though:
On windows the Cuda toolkit version should match verbatim the Cuda version shown in cuda-smi .
You got two issues at play here:
CUDA 13.2: CUDA 13.2 is problematic , so I advise that you downgrade to driver 580 then run nvidia-smi afterwards. Take note of the new CUDA version.
CUDA Toolkit: once the first issue is resolved and you downgraded then make sure that your Cuda toolkit version matches the CUDA version shown on nvidia-smi. You can do so via:
Replace <VERSION_FROM_NVIDIA_SMI> with the version shown in nvidia-smi (e.g. 12.8).
Once that's done, close and reopen your terminal, restart the Studio server, and try again — it should work.
Also if you have an older card like gtx 10 series, make sure that nvidia smi shows a cuda version 12.4 or 12.6 , any higher cuda version won't work as your card is old. To downgrade , you'll need to downgrade your nvidia driver
Same problem on window PC running RTX5060ti 16 gb vram: no GPU utilization or vram usage. CUDA version in nvidia-smi matched with installed cuda tool kit version 13.2
Same problem on an RTX2070. Latest nvidia studio driver (e.g. up to CUDA 13.2 supported). My installed CUDA toolkit however is 12.8 and I need to keep it that way, since I'm juggling other CUDA-dependent software on this machine, some of it somewhat legacy. Downgrading drivers as per @rolandtannous's suggestion should not be necessary, and no other CUDA-using applications on this machine have any problems doing GPU-accelerated inference. It seems to be an issue with the prebuilt llama.cpp.
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2026 NVIDIA Corporation
Built on Thu_Mar_19_22:28:55_Pacific_Daylight_Time_2026
Cuda compilation tools, release 13.2, V13.2.78
Build cuda_13.2.r13.2/compiler.37668154_
Also, when loading Unsloth Studio:
INFO: Started server process [2468]
INFO: Waiting for application startup.
Hardware detected: CUDA -- NVIDIA GeForce RTX 4090
INFO: Application startup complete.
Remove-Item"$HOME\.unsloth\llama.cpp"-Recurse -Force
unsloth studio update -v
The installer then correctly selected:
llama-b9415-bin-win-cuda-13.3-x64.zip
and installed:
ggml-cuda.dll
cudart64_13.dll
restoring GPU acceleration.
Additional Windows Issue
The installer later failed with:
unsloth.exe missing at ...\Scripts\unsloth.exe
because unsloth.exe was locked by a running process during installation. Re-running the installer after stopping Unsloth processes resolved the launcher issue. GPU offloading works perfectly after this fix.
This issue should be fixed now - sorry on the delay - reinstall the latest - Linux / WSL / Mac curl -fsSL https://unsloth.ai/install.sh | sh or Windows irm https://unsloth.ai/install.ps1 | iex - if the issue is still there, please open another issue - appreciate it again!
Activity
Datta0 commentedon Apr 20, 2026
Hey @senyiloo7227 what is the issue you are facing? From what I see from your screenshot, Unsloth did detect your GPU right?
senyiloo7227 commentedon Apr 20, 2026
Yeah but it doesnt use any of my gpu resource, while my cpu is in 70%. It doesnt use it at all.
Datta0 commentedon Apr 20, 2026
Do you happen to have full logs of the unsloth studio that you can share?
rolandtannous commentedon Apr 20, 2026
@senyiloo7227 you are on windows.
please follow my comment here it should solve ur problem. it's a known windows issue . Easy to solve though:
On windows the Cuda toolkit version should match verbatim the Cuda version shown in cuda-smi .
You got two issues at play here:
nvidia-smiafterwards. Take note of the new CUDA version.Replace <VERSION_FROM_NVIDIA_SMI> with the version shown in nvidia-smi (e.g. 12.8).
Once that's done, close and reopen your terminal, restart the Studio server, and try again — it should work.
Also if you have an older card like gtx 10 series, make sure that nvidia smi shows a cuda version 12.4 or 12.6 , any higher cuda version won't work as your card is old. To downgrade , you'll need to downgrade your nvidia driver
polskiTran commentedon Apr 21, 2026
Same problem on window PC running RTX5060ti 16 gb vram: no GPU utilization or vram usage. CUDA version in nvidia-smi matched with installed cuda tool kit version 13.2
gcj9exvx commentedon Apr 21, 2026
Same problem on an RTX2070. Latest nvidia studio driver (e.g. up to CUDA 13.2 supported). My installed CUDA toolkit however is 12.8 and I need to keep it that way, since I'm juggling other CUDA-dependent software on this machine, some of it somewhat legacy. Downgrading drivers as per @rolandtannous's suggestion should not be necessary, and no other CUDA-using applications on this machine have any problems doing GPU-accelerated inference. It seems to be an issue with the prebuilt llama.cpp.
Ezzz-dev commentedon Apr 23, 2026
Happening with me in 7900XTX, Windows 11
Studio: probe AMD GPUs in llama-server VRAM detection (#5172)
noahterbest commentedon May 1, 2026
Happening to me as well both on version 13 CUDA and 13.2 on Windows 11. (upgraded from v13 to try and fix) This is my updated results.
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 596.36 Driver Version: 596.36 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 4090 WDDM | 00000000:09:00.0 On | Off |
| 0% 47C P5 43W / 495W | 1267MiB / 24564MiB | 32% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2026 NVIDIA Corporation
Built on Thu_Mar_19_22:28:55_Pacific_Daylight_Time_2026
Cuda compilation tools, release 13.2, V13.2.78
Build cuda_13.2.r13.2/compiler.37668154_
Also, when loading Unsloth Studio:
INFO: Started server process [2468]
INFO: Waiting for application startup.
Hardware detected: CUDA -- NVIDIA GeForce RTX 4090
INFO: Application startup complete.
When loading a model:
{"timestamp": "2026-04-30T23:06:32.858476Z", "level": "info", "event": "GGUF size: 20.8 GB, est. KV cache: 0.1 GB, context: 4096, GPUs free: [(0, 22805)], selected: None, fit: True"}
Still unloads the entire thing into CPU & RAM.
Studio: download paired cudart bundle on Windows CUDA installs (unslo…
Studio: add torch's pip nvidia DLL dirs to PATH on Windows (unslothai…
test_5106_windows_gpu_detection_mock: don't shadow real httpx
hzpkk520 commentedon May 13, 2026
Same thing happened to me. Version 13.0 CUDA and 13.0 on Windows 11.
Studio: pin GPU at 95% headroom and warn on silent CPU fallback (#5323)
tests/studio: lock in Windows GPU detection fix (#5106) with a synthe…
Anjum9694 commentedon May 30, 2026
Can confirm this bug still exists. Matching cuda versions in both nvidia-smi and nvcc. Here's what I did:
On Windows with an RTX 5080 (SM120) and CUDA 13.2 installed, Unsloth Studio incorrectly selected the CPU llama.cpp bundle.
The asset selection code in
install_llama_prebuilt.pycontained:However, llama.cpp release
b9415publishes:and no longer provides CUDA 13.1 assets.
As a result, CUDA asset selection failed and Studio silently installed:
This produced a CPU-only installation:
Symptoms included:
-ngl -1passed to llama-serverUNSLOTH_PREBUILT_INFO.jsonshowed:Workaround
Update both occurrences of:
to:
Then force a reinstall:
The installer then correctly selected:
and installed:
restoring GPU acceleration.
Additional Windows Issue
The installer later failed with:
because
unsloth.exewas locked by a running process during installation. Re-running the installer after stopping Unsloth processes resolved the launcher issue. GPU offloading works perfectly after this fix.Studio: validate real GPU offload and stop silently shipping CPU-only…
Studio: warn when a GPU model silently loaded on CPU
Studio: warn when a GPU model silently loaded on CPU (#6339)
danielhanchen commentedon Jun 17, 2026
This issue should be fixed now - sorry on the delay - reinstall the latest - Linux / WSL / Mac
curl -fsSL https://unsloth.ai/install.sh | shor Windowsirm https://unsloth.ai/install.ps1 | iex- if the issue is still there, please open another issue - appreciate it again!Studio: show a VRAM memory bar on downloaded models (#7880)