Skip to content

[Bug] Latest llama.cpp build broke AMD GPU detection #7485

Closed

Description

@guliaka

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

  1. Did you update? pip install --upgrade unsloth unsloth_zoo Fresh install
  2. Colab or Kaggle or local / cloud - local
  3. Number GPUs used, use nvidia-smi 2 AMD ROCm (gfx1201)
  4. Which notebook? Please link! - n/a
  5. Which Unsloth version, TRL version, transformers version, PyTorch version? unsloth 2026.7.5
  6. Which trainer? SFTTrainer, GRPOTrainer etc

Latest llama.cpp build broke AMD GPU detection.

Image

gt@gt-ai-rig2:~$ rocm-smi

========================================== ROCm System Management Interface ==========================================
==================================================== Concise Info ====================================================
Device  Node  IDs              Temp    Power  Partitions          SCLK   MCLK    Fan    Perf     PwrCap  VRAM%  GPU%  
              (DID,     GUID)  (Edge)  (Avg)  (Mem, Compute, ID)                                                      
======================================================================================================================
0       2     0x7551,   33599  N/A     N/A    N/A, N/A, 0         N/A    N/A     0%     unknown  N/A     0%     0%    
1       1     0x7551,   2934   37.0°C  15.0W  N/A, N/A, 0         14Mhz  456Mhz  20.0%  auto     300.0W  2%     1%    
======================================================================================================================
================================================ End of ROCm SMI Log =================================================

Update run:

gt@gt-ai-rig2:~$ unsloth studio update

  🦥 Unsloth Studio Setup
  ────────────────────────────────────────────────────
                 installing isolated Node (system Node/npm left untouched)...
  node           v24.18.0 | npm 11.16.0 (isolated)
  frontend       up to date
  python         unsloth 2026.7.5 is up to date
  python         dependencies up to date
  gpu            AMD ROCm (gfx1201)
                 ROCm: /opt/rocm
                 hipconfig: 7.14.60850-0000000
                 installing prebuilt llama.cpp...
                 existing install detected -- validating update
  llama.cpp      prebuilt up to date and validated
                 installed release: unslothai/llama.cpp@b10107-mix-1911198 (tag b10107)

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

Activity

  1. changed the title [-][Bug] Please fill in your issue title here.[/-] [+][Bug] Latest llama.cpp build broke AMD GPU detection[/+] on Jul 27, 2026
  2. LeoBorcherding commented on Jul 31, 2026

    @LeoBorcherding
    Collaborator

    rocm-smi seeing both cards while studio doesn't is the useful part here: the driver is
    clearly fine, so this is the prebuilt llama.cpp not picking up the arch rather than
    anything wrong with your system. and "latest build broke it" points right at a specific
    tag, so let's pin that down.

    the fastest test is just rolling the prebuilt back. set an older tag before you launch and
    see if detection comes back:

    UNSLOTH_LLAMA_TAG=b10069-mix-fb3d4ca
    

    (or b10068-mix-fb3d4ca). if it detects fine on the older tag and breaks on latest, that's
    basically the whole answer, and it gives us the exact window to look at.

    alongside that, two things would help:

    • the studio log around startup, specifically the llama.cpp version line and the rocm
      device enumeration lines. that shows whether it finds zero devices or misreads the arch.
    • if you can run llama-server directly, its --version and device list from the build
      studio pulled, so we know if the break is in the binary or in how studio calls it.

    do you remember which build you were on before this one? that'd save a step.

  3. aelfwyne commented on Aug 12, 2026

    @aelfwyne

    Downloaded today, was happy to see AMD support listed. Does not detect my R9700. Extremely frustrated.

    (No integrated GPU on my system)

  4. LeoBorcherding commented on Aug 28, 2026

    @LeoBorcherding
    Collaborator

    Two different problems in this thread, so one ask each.

    @guliaka the prebuilt has moved four times since you filed. You were on b10107-mix-1911198, current is b10639-mix-f6f92fe. Does it still reproduce after unsloth studio update?

    @aelfwyne yours is likely a different bug. What OS are you on, and could you post a screenshot of Settings > System in Studio? What that panel reports for GPU and backend should be enough to tell the two apart.

  5. LeoBorcherding commented on Sep 2, 2026

    @LeoBorcherding
    Collaborator

    The detection fix has landed. #9499 makes unsloth studio update notice a CPU or CUDA torch sitting in an AMD venv and reinstall the ROCm wheel instead of printing "dependencies up to date", and #9498 stops the rocminfo probe naming the CPU as the GPU. Both shipped in v0.1.802-beta and were run before/after on a real gfx1151 box. @guliaka an update on the 2x gfx1201 rig should repair it now; if Settings > System still shows no GPU afterwards, paste the update output. @aelfwyne same ask, plus your OS. If both come back clean this closes.

  6. cxwithyxy commented on Sep 8, 2026

    @cxwithyxy

    #10468 I was thinking is that Windows BUG

  7. LeoBorcherding commented on Sep 22, 2026

    @LeoBorcherding
    Collaborator

    Closing this: the detection fix shipped in v0.1.802-beta (#9498 and #9499) and neither reporter has come back on a current build. Reopen rather than filing fresh if it still happens.

    @guliaka on the 2x gfx1201 rig, unsloth studio update should repair it. If Settings > System still shows no GPU after that, paste the update output here.

    @aelfwyne your case was probably never this bug. #9499 covers a CPU or CUDA torch wheel left behind in the AMD venv, which is the most common cause of "AMD GPU not detected" and is what the update now repairs, so try that first. If a current build still misses the card, please open a separate issue with your OS and a screenshot of Settings > System: a single R9700 with no integrated GPU is a different shape from this thread and will get lost in it.

    @cxwithyxy the 6950 XT is RDNA2, which ROCm has no Windows support for at all, so that is a third thing again. The Vulkan entry in the compute backend dropdown is the path for that card.

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions