[Bug] AMD: the Linux installer puts a CUDA build of xFormers on ROCm hosts
Author: ZnuffCreated Sep 23, 2026Updated Sep 28, 2026
Labelsfeature requestbug
Environment
Where are you using Unsloth?
- Unsloth desktop application
- Unsloth web UI (
unsloth studio) - Unsloth CLI
- Python package or notebook
- Colab or Kaggle
Operating system and version: Ubuntu 24.04-HWE, Kernel 7.0.0-31-generic
GPU model(s) and accelerator backend: AMD ROCm
Versions:
| Component | Version |
|---|---|
| Unsloth Version | v0.1.814-beta |
| Package Version | 2026.9.10 |
| llama.cpp Version | b11030-mix-5ff778e |
What happened?
Steps to reproduce:
- Install Unsloth studio
- Start when asked
Expected behavior: No warnings.
Actual behavior:
WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for:
PyTorch 2.10.0+cu128 with CUDA 1208 (you have 2.11.0+rocm7.13.0)
Python 3.10.19 (you have 3.13.11)
Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers)
Memory-efficient attention, SwiGLU, sparse and more won't be available.
Set XFORMERS_MORE_DETAILS=1 for more details
Failed to load /root/.unsloth/studio/unsloth_studio/lib/python3.13/site-packages/torchao/_C_cutlass_90a.abi3.so: Could not load this library: /root/.unsloth/studio/unsloth_studio/lib/python3.13/site-packages/torchao/_C_cutlass_90a.abi3.so
Failed to load /root/.unsloth/studio/unsloth_studio/lib/python3.13/site-packages/torchao/_C_mxfp8.cpython-310-x86_64-linux-gnu.so: Could not load this library: /root/.unsloth/studio/unsloth_studio/lib/python3.13/site-packages/torchao/_C_mxfp8.cpython-310-x86_64-linux-gnu.soModel and operation involved: not relevant
Diagnostics and logs
platform linux
deps all system dependencies found
uv cache reusing existing shared cache (/root/.cache/uv) to avoid duplicate Torch/CUDA downloads; use --isolated-uv-cache to isolate
preserving existing environment for rollback...
previous environment preserved for rollback
venv creating Python 3.13 virtual environment
/root/.unsloth/studio/unsloth_studio
venv using environment
/root/.unsloth/studio/unsloth_studio
[WARN] gfx1151 (Strix) detected -- routing to the AMD arch-specific index
[WARN] torch 2.11+rocm7.13 has AMD's real gfx1150/gfx1151 fixes (the ROCm 7.1
[WARN] _grouped_mm segfault, moe_utils.py:167, and later Strix kernel bugs),
[WARN] and is more reliable than the rocm7.2 index or an offline Radeon repo.
existing install has torch 2.11.0+rocm7.13.0 -- keeping it (set UNSLOTH_TORCH_UPGRADE=1 to get the newest release)
gpu AMD Radeon 8060S Graphics (gfx1151)
ROCm: /opt/rocm
hipconfig: 7.14.60850-0000000
wheels: https://repo.amd.com/rocm/whl/gfx1151/
installing PyTorch (https://repo.amd.com/rocm/whl/gfx1151/)...
installing bitsandbytes for AMD ROCm (pre-release, PR #1887)...
installing unsloth (this may take a few minutes)...
unsloth 2026.9.10 installed
setup running unsloth studio update...
Unsloth Studio Setup
────────────────────────────────────────────────────
frontend bundled (pip install)
installing isolated Node (system Node/npm left untouched)...
node v24.18.0 | npm 11.16.0 (isolated)
frontend up to date
deps [==------------------] 2/17 torch check (rocm) fied, skipped)
torch already runs on the AMD gfx1151 wheels; keeping it.
deps [=====---------------] 5/17 dependency overrides
torch 2.11.0+rocm7.13.0 detected -- installing torchao==0.17.0
deps [========------------] 7/17 flash-attn
warning No compatible flash-attn prebuilt wheel found
deps [==================--] 16/17 torch final (rocm)
torch already runs on the AMD gfx1151 wheels; keeping it.
bitsandbytes (AMD) is already this build -- keeping it
deps [====================] 17/17 torchcodec
torch 2.11.0+rocm7.13.0 detected -- installing torchcodec>=0.11.0,<0.12.0
deps installed
transformers 5.3.0 sidecar current
transformers 5.5.0 sidecar current
transformers 5.10.2 sidecar current
gpu Radeon 8060S Graphics (gfx1151)
ROCm: /opt/rocm
hipconfig: 7.13.99004-3309c6114a
installing prebuilt llama.cpp...
existing install detected -- validating update
llama.cpp prebuilt up to date and validated
installed release: unslothai/llama.cpp@b11030-mix-5ff778e (tag b11030) -- rocm backend
whisper.cpp prebuilt up to date
────────────────────────────────────────────────────
Unsloth Studio Installed
────────────────────────────────────────────────────Additional context
Upon running, a warning about XFORMERS is issued:
{"timestamp": "2026-09-23T04:00:11.325745Z", "level": "info", "event": "torch warm finished in 6113.3ms"}
WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for:
PyTorch 2.10.0+cu128 with CUDA 1208 (you have 2.11.0+rocm7.13.0)
Python 3.10.19 (you have 3.13.11)
Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers)
Memory-efficient attention, SwiGLU, sparse and more won't be available.
Set XFORMERS_MORE_DETAILS=1 for more details
Failed to load /root/.unsloth/studio/unsloth_studio/lib/python3.13/site-packages/torchao/_C_cutlass_90a.abi3.so: Could not load this library: /root/.unsloth/studio/unsloth_studio/lib/python3.13/site-packages/torchao/_C_cutlass_90a.abi3.so
Failed to load /root/.unsloth/studio/unsloth_studio/lib/python3.13/site-packages/torchao/_C_mxfp8.cpython-310-x86_64-linux-gnu.so: Could not load this library: /root/.unsloth/studio/unsloth_studio/lib/python3.13/site-packages/torchao/_C_mxfp8.cpython-310-x86_64-linux-gnu.soFurther more, I have installed ROCm 7.14 and 7.13, but my current in-use is 7.14, not sure why it defaults to 7.13 builds.
Source: unslothai/unsloth