Repository navigation
Description
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/kfdpresent at mode0666 - KFD topology reports
vendor_id 4098, so_has_amd_rocm_gpu()passes amd-smiat/usr/bin/amd-smi;rocminfonot 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 | shBoth installers share $HOME/.unsloth/studio/unsloth_studio (install.sh:603), so this fixes an existing AppImage install without reinstalling the AppImage.
Suggested fix
- Separate "no version readable" from "version readable but unsupported". Only the second is a deliberate CPU fallback.
- 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. - Add Fedora-side version sources (
rpm -q rocm-runtime/rocm-hip,/opt/rocm/bin/hipconfig). - Reword the warning, and only suggest a package manager that exists on the host.
Reported in Discord.
Activity
ThomasEricB commentedon Aug 14, 2026
This issue may be solved by #8412 !
fix(AMD): route Fedora/Bazzite to per-arch ROCm wheels when no versio…