Skip to content

[Bug] RX 5700XT doesn't recognize in Unsloth Desktop #8529

Closed

Description

@AssabTigleG
Image Image

Activity

  1. Lyxot commented on Aug 12, 2026

    @Lyxot
    Collaborator

    Sorry but currently we only support AMD Radeon RDNA 3/3.5/4 (RX 6000–9000 series)

  2. AssabTigleG commented on Aug 12, 2026

    @AssabTigleG
    Author

    Is there any chance that you will support in the FUTURE?
    and i think LMStudio supports this GPU too...

  3. Lyxot commented on Aug 12, 2026

    @Lyxot
    Collaborator

    If your target is only inference, we do support it. But according to your screenshots, the installer did not install llama.cpp Vulkan for you. We will fix it

  4. Lyxot commented on Aug 12, 2026

    @Lyxot
    Collaborator

    I didn't see a Driver version in your screenshot. Is your driver properly installed?

  5. danielhanchen commented on Aug 12, 2026

    @danielhanchen
    Member

    Thanks for the report, and sorry for the confusing message.

    The RX 5700 XT is Navi 10, gfx1010, RDNA 1. That generation is not supported by ROCm PyTorch: AMD publishes Windows wheel indexes for gfx103X (RDNA 2), gfx110X (RDNA 3), gfx1150/gfx1151 (RDNA 3.5) and gfx120X (RDNA 4), and there is no gfx101X index. So the card is genuinely usable only on CPU for training and Transformers inference here, and the CPU fallback you got is the correct outcome. Your screenshot confirms that is what happened: Torch 2.10.0+cpu, backend CPU.

    Two things on our side are wrong regardless, and I am fixing them:

    • Studio says "No visible GPU detected" when the GPU is plainly there and simply unsupported. Detected but unsupported is not the same as absent, and it should not read as though the hardware is missing.
    • The installer tells you to install the HIP SDK or set UNSLOTH_ROCM_GFX_ARCH to enable ROCm. On RDNA 1 neither can work, so that advice sends you on an errand with no ending. It should name the card's arch and say plainly that ROCm does not cover it.

    One thing that may still be useful to you: GGUF inference through llama.cpp does not go through ROCm PyTorch, so a Vulkan build can use the 5700 XT for chat even though training stays on CPU. That path is not affected by any of the above.

  6. danielhanchen commented on Aug 12, 2026

    @danielhanchen
    Member

    Update, including a correction to what I said above.

    The advice half is fixed in #8577. On an RDNA 1 card the installer now names the arch and says plainly that ROCm does not cover it, instead of telling you to install the HIP SDK or set UNSLOTH_ROCM_GFX_ARCH, neither of which could ever have worked on this GPU. It covers gfx1010 (RX 5700 / 5700 XT, RX 5600 series, Radeon Pro 5600 XT), gfx1011 and gfx1012 (RX 5500 / 5500 XT), taken from LLVM's AMDGPU processor table. CPU fallback itself is unchanged, since that part was correct.

    The wording half I promised is not fixed, and I was wrong to say it would be. "No visible GPU" comes from GET /api/system, whose device list is populated only by torch.cuda. The backend does no WMI or lspci enumeration at all, and the install manifest records no GPU identity, so at the point that string is rendered the backend genuinely cannot tell "no GPU present" from "GPU present but unsupported". Making the text vaguer would hide that rather than fix it. The real fix is to reconcile what the installer detected with what the backend can see, which is #8473, and I would rather do it there properly than paper over it here.

    Your card will still show as no GPU until that lands. What you see in the installer will at least now be accurate.

  7. AssabTigleG commented on Aug 13, 2026

    @AssabTigleG
    Author

    Hello unsloths:
    Thank you for your response, i intent to use Unsloth Desktop only to chat with the models and use tools - not to train model
    You've said that you can bypass PyTorch/ROCm completely and can use a Vulkan build through llama.cpp to run GGUF models directly on your RX 5700 XT hardware...

    can you tell me how can i do that?

  8. danielhanchen commented on Aug 13, 2026

    @danielhanchen
    Member

    #8577 is merged, so the RDNA 1 wording is in. One gap I found while merging main into two other AMD branches, which affects the RX 5700 XT specifically.

    On Linux the new message is reachable only when no gfx token could be read. The report chain in studio/setup.sh is:

    if [ -n "$_setup_gfx" ]; then
        step "gpu" "AMD ROCm ($_setup_gfx)"
    elif _setup_unsup_gfx=$(_setup_unsupported_gfx_any "$_setup_mkt"); then
        step "gpu" "AMD GPU detected ($_setup_unsup_gfx) -- no ROCm PyTorch wheels Unsloth installs"

    _setup_gfx is taken verbatim from the gfx tokens rocminfo prints, with no filtering against the supported table (setup.sh:1857). An RX 5700 XT with ROCm installed reports gfx1010, so the first arm wins and the new message never fires. Reproduced both ways against the merged chain:

    ROCm installed, rocminfo reports gfx1010
      STEP: AMD ROCm (gfx1010)
    
    same card, runtime-less host (no gfx token)
      STEP: AMD GPU detected (gfx1010) -- no ROCm PyTorch wheels Unsloth installs
    

    So the users who see the fix are the ones who never installed ROCm, and anyone who did install it to try to make the card work still gets a plain "AMD ROCm (gfx1010)" followed by CPU torch, which is the original complaint in this issue.

    The Windows side does not have this shape: setup.ps1 sets $script:ROCmUnsupportedGfxArch from a name table and #8577 added -not $script:ROCmUnsupportedGfxArch guards to the arms that would otherwise win, so the unsupported arm outranks them there.

    The Linux fix is the same idea: the unsupported lookup should outrank the -n "$_setup_gfx" arm rather than sit below it, or _setup_gfx should be checked against the supported table before that arm is allowed to claim the host. I did not change it inside either merge, since it alters behaviour that main ships today rather than resolving a conflict, so it wants its own change. Leaving this issue open for that.

  9. Lyxot commented on Aug 13, 2026

    @Lyxot
    Collaborator

    Hello unsloths: Thank you for your response, i intent to use Unsloth Desktop only to chat with the models and use tools - not to train model You've said that you can bypass PyTorch/ROCm completely and can use a Vulkan build through llama.cpp to run GGUF models directly on your RX 5700 XT hardware...

    can you tell me how can i do that?

    I think #8520 will help you

  10. danielhanchen commented on Aug 13, 2026

    @danielhanchen
    Member

    A second, worse half of this on Linux, found while reviewing #8606. Separate from the messaging gap above, and pre-existing on main rather than introduced by that PR.

    _ensure_rocm_torch() in studio/install_python_stack.py will install a generic ROCm torch on this card. The gate that decides an AMD GPU is present is _has_rocm_gpu(), which only looks for a real gfx id:

    lambda out: bool(re.search(r"gfx[1-9][0-9a-z]{2,3}", out.lower())),

    gfx1010 matches. Nothing between that guard and the install consults _unsupported_gfx_arch_from_gpu_name(), which the same file already defines at line 1095 and uses only to print a warning near line 1003. I checked: between def _ensure_rocm_torch and the install site there are zero references to it. The tag is then chosen purely from the detected ROCm version:

    tag = next((t for (maj, mn), t in sorted(_ROCM_TORCH_INDEX.items(), reverse = True) if ver >= (maj, mn)), None)
    ...
    index_url = f"{_PYTORCH_WHL_BASE}/{tag}"

    So an RX 5700 XT with ROCm installed can pull a multi-gigabyte ROCm torch from an index that publishes no gfx1010 kernels, and end up with a torch that still cannot use the card. That is the same conclusion as the report at the top of this issue, reached by a more expensive route.

    Worth stating clearly that this is main's behaviour, not #8606's. #8606 refactors the logic into _linux_rocm_torch_plan and calls an extracted _generic_pytorch_rocm_tag, and I briefly misread the absence of that call on main as the behaviour being new before finding main has the same lookup inlined. A review item on #8606 raised it at P1; I am leaving it declined there, because it is not that PR's defect and a contributor's branch is the wrong place to change it.

    The fix belongs here: consult the unsupported-arch table before selecting any ROCm index, and say what this issue's title asks for instead of installing wheels that cannot work.

  11. PARLTOR commented on Aug 14, 2026

    @PARLTOR

    Similar issue with RDNA 2 architecture, gfx1030 (AMD 6000 series GPUs)

  12. LeoBorcherding commented on Sep 24, 2026

    @LeoBorcherding
    Collaborator

    hey @AssabTigleG, late follow-up but a hopeful one. i picked up an RX 5700 XT (gfx1010) and put it next to an RX 6500 XT to work through exactly what you hit. short version: the card can now train with unsloth on windows, with a few pieces that are landing one by one. it is not in Unsloth Desktop out of the box yet, and the tracking issue with everything linked is #11614.

    everything daniel and lyxot said above was right for the state of things in august, and it still holds for the index Unsloth Desktop installs from: https://repo.amd.com/rocm/whl has gfx103X, gfx110X, gfx1150/1151/1152, gfx120X and the datacenter parts, and no gfx101X. so the installer had no torch it could give this card, and the CPU fallback was the honest outcome.

    what changed since

    AMD's multi-arch index (https://repo.amd.com/rocm/whl-multi-arch/, stable, torch 2.9.1 through 2.12.0 on ROCm 7.13 to 7.14.1; there is a 10.2 nightly of it too) ships per-card kernel packs, and gfx1010, gfx1011 and gfx1012 are in it. the install shape is a little different from the per-family index: pip install "torch[device-gfx1010]" pulls torch plus an amd-torch-device-gfx1010 pack (several cards can go in the brackets). with that torch the 5700 XT runs, and then four things break in turn, each with a fix:

    what breaks what you see fix
    triton's default AMD buffer ops on gfx1010 every triton kernel launches fine and writes nothing, so a run looks healthy and learns nothing #11615 (merged): turns them off on gfx101x and keeps the compile caches separate
    any fp16 tl.dot RDNA1 has no dot instructions and LLVM aborts the process. that is every flash-linear-attention kernel, so every gated-delta model (qwen3.5) unslothai/unsloth-zoo#1356: routes those cards to transformers' pure-torch path
    that pure-torch path in eager mode its q/k l2norm reduces in float16 and overflows, so the loss goes NaN after step 1. only visible with torch.compile off, which is how Unsloth Desktop runs on windows ROCm same PR: that l2norm now reduces in float32, like the fla kernel it replaces
    offloaded activations coming back in the wrong dtype bf16 staging buffers on a card that has no bf16 unslothai/unsloth-zoo#1316

    with all of those, on windows 11 (torch 2.12.0+rocm10.2 nightly, and the same numbers on the stable 2.11.0+rocm7.14.1, triton-windows 3.8.0, unsloth 2026.9.7 to 2026.9.11, 16-bit lora; qlora works too, more on that in the desktop paragraph):

    model RX 5700 XT
    Qwen3-1.7B trains, losses within noise of the RX 6500 XT
    Qwen3.5-0.8B trains (pure-torch gated delta)
    gemma-3-270m trains, but the compiled path gives a different loss curve on every run in fp16 on ROCm; separate issue coming

    what this means for Unsloth Desktop today

    still CPU fallback out of the box today, because the shipped installer does not know the new index or its torch[device-gfxNNNN] shape. the fix for that is #11755: the windows installers route gfx1010/1011/1012 to the stable multi-arch index, pinned to 2.11.0+rocm7.14.1. a fresh install from that branch on my box, with only the 5700 XT visible, gave the ROCm 10.2 torch and trained both lora and qlora (yes, qlora: the bitsandbytes wheel Unsloth Studio already installs runs on gfx1010). as a proof of the end state i swapped the torch in my own Unsloth Desktop install by hand and put the fixes in: the app picks up both cards, chooses the 5700 XT on its own (most free VRAM) and trained Qwen3.5-0.8B 16-bit lora on alpaca-cleaned for 30 steps, mean loss 1.41. that run is what caught the eager-mode l2norm bug in the table.

    Unsloth Desktop About page showing the RX 5700 XT under ROCm 7.17

    and the same app with only the 5700 XT visible, which is what your machine looks like: it trains the same job to the same numbers (mean loss 1.4119, final 1.5441 both times).

    Unsloth Desktop seeing only the RX 5700 XT

    30 steps on the 5700 XT alone

    two related notes for anyone landing here:

    and for your original question: chatting with GGUF models goes through llama.cpp, not through ROCm torch, so the vulkan build uses the 5700 XT regardless of all of the above. lyxot's pointer to #8520 is the right thread for that.

  13. danielhanchen commented on Oct 13, 2026

    @danielhanchen
    Member

    Fixed! Sorry on the delay. On Windows, the RX 5700 XT (and the rest of the RX 5000 series) now gets a ROCm PyTorch build from AMD's multi-arch index instead of the CPU fallback, so Unsloth Desktop can train on it (#11755, #11846, plus unslothai/unsloth-zoo#1356 and #1316). On Linux with ROCm installed, the installer no longer downloads a generic ROCm PyTorch these cards cannot run, and says plainly that they have no ROCm wheels there, installing CPU PyTorch instead (#13419). GGUF chat can use the card through Vulkan either way.
    To update: Unsloth Desktop will have an update banner. For Studio, use unsloth studio update, or re-run the installer (irm https://unsloth.ai/install.ps1 | iex on Windows, curl -fsSL https://unsloth.ai/install.sh | sh on Linux). If the Linux part is not in the current release yet it'll be in the next one. Reopen if it still happens.

  14. AssabTigleG commented on Oct 13, 2026

    @AssabTigleG
    Author

    Thank you guyz, will check these

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