Skip to content

[Bug] AMD: Fedora/Bazzite installs CPU PyTorch on gfx1201 because no source reports a ROCm version #8731

Closed

Description

@LeoBorcherding

Summary

On Bazzite (Fedora 44 atomic) with a Radeon RX 9070 XT, the AppImage installer detects the AMD GPU, fails to resolve a ROCm version, and installs CPU-only PyTorch. Training is greyed out and inference is CPU-bound on a card that works.

setup.sh resolves the same host correctly 70 seconds later in the same install. Nothing reconciles the two, so the CPU wheels stay.

Reproduction

Install the Linux AppImage on Fedora/Bazzite with an RDNA4 card and no ROCm version metadata.

Install phase log, first run:

[WARN] AMD GPU detected, but no ROCm/HIP install was found to select the matching
       GPU PyTorch build -- falling back to CPU-only PyTorch.
[WARN]   Arch / CachyOS : sudo pacman -S rocm-hip-sdk
[TAURI:DIAG] ... gpu_branch=cpu torch_index_family=cpu
  gpu            AMD GPU (no usable ROCm -- CPU fallback)
                 installing PyTorch (https://download.pytorch.org/whl/cpu)...
  deps           ... torch 2.10.0+cpu detected

Same run, 70 seconds later, in setup.sh:

  gpu            AMD ROCm (gfx1201)
                 ROCm: /opt/rocm

Second run, identical machine, only UNSLOTH_TORCH_INDEX_URL added:

  gpu            AMD ROCm (gfx1201)
                 ROCm: /opt/rocm
                 wheels: https://repo.amd.com/rocm/whl/gfx120X-all
                 installing PyTorch (https://repo.amd.com/rocm/whl/gfx120X-all)...

Nothing about the host changed between those runs.

Host

  • Bazzite, Fedora 44 base, kernel 7.1.5
  • RX 9070 XT (gfx1201), /dev/kfd present at mode 0666
  • KFD topology reports vendor_id 4098, so _has_amd_rocm_gpu() passes
  • amd-smi at /usr/bin/amd-smi; rocminfo not installed
  • Unsloth 2026.8.15, AppImage

Root cause

_detect_rocm_version_tag() (install.sh:3511) polls five sources; all five miss on Fedora packaging. amd-smi reports the gfx arch but no numeric ROCm version, /opt/rocm/.info/version is AMD-installer layout, hipconfig is absent, dpkg is Debian-only, and rocm-core is not the package name Fedora ships.

With no version, the runtime-less reroute at install.sh:4297 is the remaining path to the AMD per-arch wheels, and its gate is closed for this host. All three disjuncts are false: no UNSLOTH_ROCM_GFX_ARCH, _has_amd_rocm_gpu true, and _probe_amd_gfx_arch non-empty because amd-smi static --asic answers gfx1201. Readable arch plus unreadable version is the one combination nothing covers.

The version is only needed to pick between the generic rocmX.Y leaves. _amd_arch_index_family_for_gfx (install.sh:3085) already maps gfx1201 to gfx120X-all from the arch alone, and the arch was readable throughout.

Secondary: the warning is actively misleading

It says no ROCm install was found on a host where /opt/rocm exists, then names one distro's package manager. The reporter was about to run sudo pacman -S rocm-hip-sdk on an immutable Fedora image, for a package he already had, which on rpm-ostree would also have cost a reboot.

Workaround

export UNSLOTH_TORCH_INDEX_URL=https://repo.amd.com/rocm/whl/gfx120X-all/
curl -fsSL https://unsloth.ai/install.sh | sh

Both installers share $HOME/.unsloth/studio/unsloth_studio (install.sh:603), so this fixes an existing AppImage install without reinstalling the AppImage.

Suggested fix

  1. Separate "no version readable" from "version readable but unsupported". Only the second is a deliberate CPU fallback.
  2. When the arch maps to a dedicated repo.amd.com/rocm/whl/gfx* index, route on the arch and do not gate on a version reading.
  3. Add Fedora-side version sources (rpm -q rocm-runtime / rocm-hip, /opt/rocm/bin/hipconfig).
  4. Reword the warning, and only suggest a package manager that exists on the host.

Reported in Discord.

Activity

  1. changed the issue type fromtoon Aug 14, 2026
  2. ThomasEricB commented on Aug 14, 2026

    @ThomasEricB
    Contributor

    This issue may be solved by #8412 !

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

Metadata

Metadata

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions