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] Unsloth detected signs of an AMD ROCm GPU, but your current PyTorch build has no usable HIP accelerator #5180
In Unsloth Studio, starting with package version 2026.4.5.
When loading any model or starting finetune, I've tried different versions of Pytorch with ROCm support, and the same thing happens everywhere.
"Error loading model: Subprocess error: Failed to import ML libraries: Unsloth detected signs of an AMD ROCm GPU, but your current PyTorch build has no usable HIP accelerator.
This usually means torch/torchvision/torchaudio were installed from default PyPI wheels instead of ROCm wheels.\nDetected ROCm version hint: 7.1\nTry reinstalling PyTorch wheels with:
uv pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm7.1/ --upgrade --force-reinstall\nVerified index URL is reachable: https://download.pytorch.org/whl/rocm7.1/", "exc_info": true}
The detection logic that produces that exact error message gets rewritten in #5301 (d89d9b1 routes Linux AMD hosts to repo.amd.com/rocm/whl/{arch}/ which serves matching torch+rocm wheels directly, replacing the older guess-the-PyTorch-build flow). If your GPU is gfx1151 / gfx1150 (Strix Halo / Strix Point) it definitely fixes this for you; for other AMD targets it depends whether AMD ships wheels at the per-arch index.
Could you share the output of amd-smi list and python -c 'import torch; print(torch.__version__, torch.version.hip, torch.cuda.is_available())'? That'll tell us (a) which arch you're on and (b) whether your torch build is ROCm-flagged at all — both are needed to know whether #5301 lands your case or whether there's a separate gap.
Activity
LeoBorcherding commentedon May 5, 2026
@guinmoon thank you for sharing, we are looking into this and will get back to you
fix(studio): honour HIP_VISIBLE_DEVICES in _get_parent_visible_gpu_sp…
h34v3nzc0dex commentedon May 18, 2026
The detection logic that produces that exact error message gets rewritten in #5301 (
d89d9b1routes Linux AMD hosts torepo.amd.com/rocm/whl/{arch}/which serves matchingtorch+rocmwheels directly, replacing the older guess-the-PyTorch-build flow). If your GPU isgfx1151/gfx1150(Strix Halo / Strix Point) it definitely fixes this for you; for other AMD targets it depends whether AMD ships wheels at the per-arch index.Could you share the output of
amd-smi listandpython -c 'import torch; print(torch.__version__, torch.version.hip, torch.cuda.is_available())'? That'll tell us (a) which arch you're on and (b) whether your torch build is ROCm-flagged at all — both are needed to know whether #5301 lands your case or whether there's a separate gap.fix/strix halo and windows AMD ROCm support (#5301)