You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Linux: Debian 13 hipconfig 5.7 shadows ROCm 6.1, installer falls back to CPU torch on a supported gfx1100 #8402
On Linux Mint (Debian 13 base) with a Radeon RX 7900 XTX, the installer detects the GPU correctly and finds ROCm at /opt/rocm, but still installs torch 2.10.0+cpu, so Studio launches CPU-only with no visible GPU.
Reported on Discord. Environment: Linux Mint / Debian-based, RX 7900 XTX, ROCm at /opt/rocm, rocminfo reports gfx1100 correctly, Unsloth Studio v0.1.61-beta, package 2026.8.12, desktop app 0.1.525-beta.
What the user sees
AMD GPU detected, but no ROCm/HIP install was found... falling back to CPU-only PyTorch
...
gpu AMD ROCm (gfx1100) ROCm: /opt/rocm
The same install log both falls back to CPU and then reports a working ROCm gfx1100 GPU. After the user installed hipconfig, the message became:
hipconfig: 5.7.31921-0
[WARN] ROCm rocm5.7 detected but PyTorch ROCm wheels require ROCm 6.0+ -- falling back to CPU-only PyTorch
while rocminfo and HSA on the same machine report 6.1.x.
Cause
install.sh:2977-2990 resolves the ROCm version from the first source that answers, in this order:
amd-smi version
/opt/rocm/.info/version
hipconfig --version
dpkg-query -W rocm-core
rpm -q rocm-core
The gate at install.sh:3005 then rejects anything below 6.0:
rocm[1-5].*)
echo "[WARN] ROCm $_rocm_tag detected but PyTorch ROCm wheels require ROCm 6.0+ -- falling back to CPU-only PyTorch" >&2
Debian 13 packages hipconfig at 5.7.x while the runtime the GPU actually uses is 6.1.x, so on this distro the chain settles on a stale version and the gate fires against a supported card.
Two things make it worse than a wrong guess:
The detection never cross-checks the arch probe, even though rocminfo had already answered gfx1100 in the same run. The installer therefore holds evidence that contradicts its own conclusion.
The warning names no override, so there is no documented way forward. The user's only signal is a CPU-only Studio.
Suggested fix
Prefer the highest version any source reports rather than the first that answers, or cross-check the hipconfig value against rocminfo / /opt/rocm/.info/version before rejecting. Failing that, the warning should name an override so a user on a distro with split ROCm packaging can proceed.
Note
Distinct from #8335 (Windows, single AMD GPU, PowerShell scalar unroll) and from #7275 (Windows, ROCm torch replaced during the unsloth install step), though all three end at a CPU-only or unusable environment on a supported AMD card.
Activity
Linux: resolve the ROCm version from every source, not the first that…