Skip to content

[Bug] Not Unsloth Studio detects my GPU But not use but only uses CPU/RAM #5106

Closed

Description

@senyiloo7227

Note: Please do not remove the questions. Answer beside them.

  1. Did you update? pip install --upgrade unsloth unsloth_zoo
  2. Colab or Kaggle or local / cloud
  3. Number GPUs used, use nvidia-smi
  4. Which notebook? Please link!
  5. Which Unsloth version, TRL version, transformers version, PyTorch version?
  6. Which trainer? SFTTrainer, GRPOTrainer etc
Put Minimal code to reproduce error here ###Remove Hugging Face token###
###Please make sure to check formatting properly, edit if needed.###

🦥 You can also ask via our Reddit page: https://reddit.com/r/unsloth/

I downloaded unsloth today so i doubt it is version issue.Is it that I have to manually set the gpu/cpu load?

Image Image

Activity

  1. Datta0 commented on Apr 20, 2026

    @Datta0
    Contributor

    Hey @senyiloo7227 what is the issue you are facing? From what I see from your screenshot, Unsloth did detect your GPU right?

  2. added
    unsure bug?
    and removed on Apr 20, 2026
  3. senyiloo7227 commented on Apr 20, 2026

    @senyiloo7227
    Author

    Yeah but it doesnt use any of my gpu resource, while my cpu is in 70%. It doesnt use it at all.

    Image
  4. Datta0 commented on Apr 20, 2026

    @Datta0
    Contributor

    Do you happen to have full logs of the unsloth studio that you can share?

  5. rolandtannous commented on Apr 20, 2026

    @rolandtannous
    Contributor

    @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:

    • 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:
    winget install --id=Nvidia.CUDA --version=<VERSION_FROM_NVIDIA_SMI> -e --source winget --accept-package-agreements --accept-source-agreements
    

    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

  6. polskiTran commented on Apr 21, 2026

    @polskiTran

    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

  7. gcj9exvx commented on Apr 21, 2026

    @gcj9exvx

    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.

  8. Ezzz-dev commented on Apr 23, 2026

    @Ezzz-dev

    Happening with me in 7900XTX, Windows 11

  9. noahterbest commented on May 1, 2026

    @noahterbest

    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.

  10. hzpkk520 commented on May 13, 2026

    @hzpkk520

    Same thing happened to me. Version 13.0 CUDA and 13.0 on Windows 11.

    Image Image
  11. Anjum9694 commented on May 30, 2026

    @Anjum9694

    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.py contained:

    runtime_by_line = {"cuda12": "12.4", "cuda13": "13.1"}

    However, llama.cpp release b9415 publishes:

    llama-b9415-bin-win-cuda-13.3-x64.zip
    cudart-llama-bin-win-cuda-13.3-x64.zip
    

    and no longer provides CUDA 13.1 assets.

    As a result, CUDA asset selection failed and Studio silently installed:

    llama-b9415-bin-win-cpu-x64.zip
    

    This produced a CPU-only installation:

    ggml-cuda.dll missing
    cudart64_13.dll missing
    

    Symptoms included:

    • CUDA toolkit detected correctly
    • RTX 5080 detected correctly
    • -ngl -1 passed to llama-server
    • No CUDA initialization in logs
    • CPU-only inference
    • UNSLOTH_PREBUILT_INFO.json showed:
    "asset": "llama-b9415-bin-win-cpu-x64.zip"

    Workaround

    Update both occurrences of:

    runtime_by_line = {"cuda12": "12.4", "cuda13": "13.1"}

    to:

    runtime_by_line = {"cuda12": "12.4", "cuda13": "13.3"}

    Then force a reinstall:

    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.

  12. danielhanchen commented on Jun 17, 2026

    @danielhanchen
    Member

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    unsure bug?

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions