Skip to content

[Bug] AMD: Unsloth Desktop picks the Ryzen iGPU as GPU 0 and adds its memory to an RX 7800 XT's VRAM #8847

Closed

Description

@kablam

name: Unsloth Desktop Bug
about: Report a problem with the Unsloth Studio desktop app or web UI
title: "[Desktop Bug] "
labels: bug
assignees: ""

Environment

Where are you using Unsloth?

  • [x ] Studio desktop application
  • Studio web UI (unsloth studio)
  • Unsloth CLI
  • Python package or notebook
  • Colab or Kaggle

Operating system and version:
Windows 11 25H2 fresh install last week

GPU model(s) and accelerator backend:

amd 7800xt 16gb

Versions:

Tryed this on desktop versio 1.701 and 1.800

Unsloth Version - v0.1.800-beta
Package Version - 2026.8.18
Desktop App Version - 0.1.800-beta
llama.cpp Version - b10360-mix-87da1a2
ROCm - 7.13.99004

What happened?

Unsloth grabs my cpus internal gpu as gpu0 and assings it 12.2 gb of ram
my 7800xt shows up as gpu1 with 16gb vram
says i have a total of 28gb of vram on system screen many models fail to load when it trys to assign the vram from the internal gpu so far i can only load small models like unsloth/gemma-4-12B-it-qat-GGUF on 1.70.
on 1.800 i can load larger models like unsloth/gpt-oss-20b-GGUF and unsloth/gemma-4-12b-it-GGUF

but it looks wierd i can see it in system on my gpu1 but the vram field isnt updating says unknown/ 28.2 gb and nothign shows as loaded.
I tried to use vulkan and dled the llama.cpp for vulkan and switched to it now it says i have 30gb vram in vulkan availeble and i cant switch back to rocm ad when i load a model its hows up on my GPU1 wich says its used by rocm.

i would like to be able to turn of the cpus internal gpu....

Image

I cant switch back from Vulkan to rocm, rocm isnt availeble in the dropdown menu only cpu and vulkan

Image

Steps to reproduce:

Expected behavior:

Actual behavior:

Model and operation involved:

Diagnostics and logs

Desktop application

Click Copy Diagnostics on the error, startup, or update screen and paste the
result below:

server-20260814-181044-pid22988.log

backend-backend-1786704429216-2-s01.log
backend-backend-1786712883711-2-s01.log
backend-backend-1786723693816-2-s01.log
backend-backend-1786723774772-2-s01.log
backend-backend-1786723843806-2-s01.log
install-install-1786617344040-2-s01.log
update-update-1786723715283-3-s01.log

tauri.log

If Copy Diagnostics is unavailable, attach the newest relevant files from:

  • Windows: %USERPROFILE%\.unsloth\studio\
  • Linux/macOS: ~/.unsloth/studio/

Useful files include:

  • tauri.log and, if relevant, tauri.log.1
  • logs/install-*.log, logs/update-*.log, logs/repair-*.log, or logs/backend-*.log
  • The newest logs/server/server-*.log

Studio web UI

Attach the newest relevant items:

  • Linux/macOS/Windows: ~/.unsloth/studio/logs/server/server-*.log
    (use %USERPROFILE%\.unsloth\studio\logs\server\ on Windows)
  • Linux/macOS shortcut launches only: ~/.local/share/unsloth/studio.log
  • Terminal output if Studio was launched from a terminal
  • Browser Console errors for browser-only problems

If you configured UNSLOTH_STUDIO_HOME or STUDIO_HOME, look under
<CUSTOM_STUDIO_HOME>/logs/ instead.

Model-specific logs, if applicable

  • GGUF/llama.cpp: newest ~/.unsloth/studio/logs/llama-server/*.log
  • Diffusion GGUF: newest ~/.unsloth/studio/logs/diffusion-server/*.log
  • Training resume/checkpoint bug: relevant trainer_state.json

Python package or notebook, if applicable

Paste the complete traceback and minimal reproduction:

# Remove all tokens and private data.

Also include Python, Unsloth, unsloth_zoo, PyTorch, Transformers, and TRL
versions, plus nvidia-smi output when applicable.

Additional context

https://discordapp.com/channels/1179035537009545276/1537729955356483644/1537731293649960971

Activity

  1. added
    feature request
    on Aug 14, 2026
  2. changed the title [-][Bug] Unsloth trys to use my amd 7600x cpus internal gpu as gpu0 and shows me having 28gb vram together with my amd 7800xt[/-] [+][Bug] Unsloth Desktop trys to use my amd 7600x cpus internal gpu as gpu0 and shows me having 28gb vram together with my amd 7800xt[/+] on Aug 14, 2026
  3. LeoBorcherding commented on Aug 28, 2026

    @LeoBorcherding
    Collaborator

    Thanks for the logs, they turned up something nobody had spotted. Your install log has two GPU detections about a minute apart that disagree with each other:

    [...382337]  gpu   AMD GPU detected -- arch unknown
                       Detected: AMD Radeon(TM) Graphics
                       Installing CPU-only PyTorch (AMD GPU arch unknown ...)
    
      ... 42 seconds later, same machine ...
    
    [...424753]        gfx arch inferred from GPU name: gfx1101
    [...424757]  gpu   AMD ROCm (gfx1101)
    

    The first pass read your 7600X's built-in graphics, could not work out an arch from the name "AMD Radeon(TM) Graphics", and installed CPU-only PyTorch. The second pass looked again, found the 7800 XT, and installed the right ROCm build. So you ended up in the correct state, after a wasted download and a message telling you to install the HIP SDK that you do not actually need.

    That was supposed to be handled already. The fix in #7778 taught the studio setup script to pick the discrete card rather than the first adapter it sees, but the installer script has its own copy of that logic and was not changed, which is why the two disagree on your machine. It is still that way on main: the installer takes the first healthy AMD adapter Windows lists (install.ps1:4667) and a comment a few lines below even notes that the setup script scores every adapter and this one does not.

    Something you can do today: set UNSLOTH_ROCM_GFX_ARCH=gfx1101 before installing or updating. Your own log suggests it. It skips the detection and points straight at the 7800 XT.

    Your report is really four separate problems, so here is where each one stands.

    The iGPU showing as GPU 0. Not fixed. Tracked at #8792 with #8791 in review. Earlier fixes (#7670, #8667, #8841) stopped GGUF inference landing on the integrated part, but the training-side selection still ranks purely by free memory.

    The 28 GB total. Not fixed, but a fix is in review at #9198. Worth knowing that Vulkan already gets this right on your machine. Your server log shows it recognising the integrated part and holding memory back for the system:

    Vulkan device VK1 is an integrated GPU sharing system RAM; reserving 1024MiB host headroom
    Vulkan GPU memory detected: VK0=15409MiB, VK1=14378MiB
    

    The ROCm path does not do that yet.

    The VRAM field reading unknown. This one should be fixed. The change in #8863 merged on Aug 25 and closed #8862, which was the same symptom. Your logs are from Aug 14 so they predate it. If you are on a build from the 25th or later and it still says unknown, please say so, because that would be a different bug from the one that got fixed.

    Not being able to switch back from Vulkan to ROCm. Nobody is tracking this one and it is arguably the worst thing in your report, since it leaves you stuck on a backend you did not want. Nothing in the files you attached covers it: your tauri.log ends before the switch. If you can reproduce it, the useful file is the newest logs/backend-*.log under %USERPROFILE%\.unsloth\studio\, grabbed right after ROCm disappears from the dropdown.

  4. kablam commented on Aug 28, 2026

    @kablam
    Author

    ok ran the update for 1.804...... stil looks wierd

    I removed unsloth desktop and reinstalled after 1.801 came out so the old info is gone that didnt work so i gave up, I tried to update after the email with your coments and this is the result..... sending you the logs and screenshots of how it looks now hope this helps.

    windows security now gives me a message that it protected me from som python when i start unsloth.. might ahve something to do with that unsloth cant see my gpus at all now.

    Image Image Image

    backend-backend-1786787954416-3-s01.log
    backend-backend-1786961124639-2-s01.log
    backend-backend-1787335870200-2-s01.log
    backend-backend-1787336059869-2-s01.log
    backend-backend-1787336059869-2-s02.log
    backend-backend-1787336059869-2-s03.log
    backend-backend-1787916716677-2-s01.log
    backend-backend-1787916812589-2-s01.log

    tauri.log

  5. LeoBorcherding commented on Sep 22, 2026

    @LeoBorcherding
    Collaborator

    Sorry for the silence. Your 1.804 logs do explain the "can't see my GPUs", and probably the missing ROCm option too.

    Windows is blocking part of the ROCm PyTorch install. From your newest log:

    torch is installed but failed to import: OSError(22, 'En programkontrollprincip har blockerat den här filen.', None, 4551)
    Error loading "...\torch\lib\aotriton_v2.dll" or one of its dependencies.
    Hardware detected: CPU training backend
    

    That is the Windows Security popup you saw: an App Control policy (Smart App Control, on by default on a fresh Windows 11 25H2 install) blocking a DLL from the AMD PyTorch package, so PyTorch can't load and Unsloth Desktop drops to CPU. It has come and gone across your updates: blocked 08-17 (torch.dll), fine 08-21, blocked again after 1.804 on 08-28 (aotriton_v2.dll), because each update brings new files for it to judge. Fix is Windows Security > App & browser control > Smart App Control > Off, then run the updater once more. We can't work around this one from our side.

    ROCm missing from the backend dropdown is most likely the same cause. The picker only lists ROCm after a small AMD tool from that same package confirms a GPU, and with the package blocked that check fails, so the entry disappears while the installed build stays ROCm. That matches your screenshot. If it's still missing after the fix, the newest logs\backend-*.log right after opening that page is what we'd need, because the first time it happened (08-14) PyTorch was working and that one is still unexplained.

    Turning the iGPU off: your own update log prints it. setx HIP_VISIBLE_DEVICES 1, then reopen, and ROCm sees only the 7800 XT. You're on 1.804, and current is v0.1.812-beta, which also gets you #8791 so training stops picking the iGPU at all.

    Where the rest stands: the Unknown VRAM field was #8863 and shipped in v0.1.802, so it should read correctly once the GPU is visible again. The 28 GB summed total is #9198, still open.

  6. changed the title [-][Bug] Unsloth Desktop trys to use my amd 7600x cpus internal gpu as gpu0 and shows me having 28gb vram together with my amd 7800xt[/-] [+][Bug] AMD: Unsloth Desktop picks the Ryzen iGPU as GPU 0 and adds its memory to an RX 7800 XT's VRAM[/+] on Sep 25, 2026
  7. danielhanchen commented on Oct 11, 2026

    @danielhanchen
    Member

    Fixed! Sorry on the delay. On a Ryzen desktop with the integrated graphics enabled, Studio could treat the iGPU as a real training GPU: it ranked it by its shared memory (half your RAM) and assumed PyTorch could run on it, even though only the RX 7800 XT's kernels are installed. That is fixed in #13196 and #13231, ROCm missing from the backend dropdown was fixed in #11442, the Unknown VRAM field in #8863, and the 28 GB figure is now shown as 16 GB VRAM plus the iGPU's shared memory (#9247). If Unsloth still cannot see your GPUs after updating, that is Windows Smart App Control blocking AMD's PyTorch files, so turn it off under Windows Security > App & browser control and run the update once more.
    To update: Unsloth Desktop will have an update banner. For Studio, use unsloth studio update. For Docker, use docker exec <container> unsloth-studio-update. Reopen if it still happens.

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

Metadata

Metadata

Labels

AMDbugfeature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions