update requirements-rocm.txt for Windows support via AMD TheRock nightly
Summary
The current requirements-rocm.txt specifies torch==2.9.1+rocm6.3 which only has wheels for manylinux_2_28_x86_64 (Linux). This makes installation completely impossible on Windows, regardless of the install method.
This PR replaces the Linux-only wheels with AMD's TheRock nightly index, which is the only source of ROCm PyTorch wheels for Windows.
Problem
× No solution found when resolving dependencies:
╰─▶ Because torch==2.9.1+rocm6.3 has no wheels with a matching platform
tag (e.g., `win_amd64`) and you require torch==2.9.1+rocm6.3, we can
conclude that your requirements are unsatisfiable.
hint: Wheels are available for `torch` (v2.9.1+rocm6.3) on the following
platform: `manylinux_2_28_x86_64`
Changes
- Replace
--extra-index-url https://download.pytorch.org/whl/rocm6.3+ pinned versions with--find-linkspointing to AMD's TheRock nightly S3 bucket - Add commented-out URLs for each RDNA generation (RDNA2/gfx103X, RDNA3/gfx110X, RDNA4/gfx120X) so users can uncomment the one matching their GPU
- Replace
onnxruntime==1.23.2with plainonnxruntime— the ROCm Execution Provider was removed in ORT 1.23 (ROCm 7.0 was the last supported version). See ORT ROCm EP docs - Use
--preflag to allow nightly/pre-release builds from TheRock
Tested on
- OS: Windows 11
- GPU: AMD RX 9060 XT (gfx1200, RDNA4)
- ROCm build:
7.13.0a20260318(TheRock nightly) - Install method: Stability Matrix (uses
uv) and standalone - Result: OneTrainer launches successfully and UI is fully functional
TheRock nightly index URLs
| Architecture | GPU series | Index URL |
|---|---|---|
| RDNA2 (gfx103X) | RX 6000 | https://therock-nightly-python.s3.us-east-2.amazonaws.com/gfx103X-all/index.html |
| RDNA3 (gfx110X) | RX 7000 | https://therock-nightly-python.s3.us-east-2.amazonaws.com/gfx110X-all/index.html |
| RDNA4 (gfx120X) | RX 9000 | https://therock-nightly-python.s3.us-east-2.amazonaws.com/gfx120X-all/index.html |
Notes
- On Linux, the existing
--extra-index-url https://download.pytorch.org/whl/rocm6.3approach still works. A future improvement could auto-detect the OS and use the appropriate index. tritonis also missing on Windows (no ROCm Windows wheels exist for it) — OneTrainer already handles this gracefully withcontinueing without triton.- Closes #1381
Closing this PR in favor of a narrower Windows-only follow-up.
The current version changes requirements-rocm.txt globally, and reviewer feedback is correct that this could affect Linux ROCm users.
I’ll open a new PR that:
- keeps Linux
requirements-rocm.txtunchanged - adds a separate
requirements-rocm-windows.txt - limits the change to Windows AMD / TheRock nightly only
Please dont, there is already ongoing modernisation of the installation #1244 because Windows + ROCM installation cannot be automated it requires user intervention. It will be wasted effort on your part.
If you can describe exactly how and AMD user should determine what GPU they have, then exactly what to install, we can create a small helper script in the installer that detects if you are Win+AMD and links to documentation on exactly how to do that
@titansonico10 oops forgot to ping, please see above message
Thanks @O-J1 for the heads up about #1244. I wasn't aware of the ongoing pixi-based installation work.
Here's the exact info you asked for, in case it's useful for the helper script or documentation:
GPU detection (Windows): wmic path win32_videocontroller get name or rocminfo
Install PyTorch per architecture (Windows):
Architecture GPU series Command Architecture GPU series Command RDNA3 RX 7000 pip install --index-url https://rocm.nightlies.amd.com/v2/gfx110X-all/ --pre torch torchaudio torchvision RDNA4 RX 9000 pip install --index-url https://rocm.nightlies.amd.com/v2/gfx120X-all/ --pre torch torchaudio torchvision Alternatively, AMD provides stable ROCm 7.2 wheels directly (Python 3.12 required):
text
pip install --no-cache-dir
https://repo.radeon.com/rocm/windows/rocm-rel-7.2/torch-2.9.1%2Brocmsdk20260116-cp312-cp312-win_amd64.whl
https://repo.radeon.com/rocm/windows/rocm-rel-7.2/torchaudio-2.9.1%2Brocmsdk20260116-cp312-cp312-win_amd64.whl `
https://repo.radeon.com/rocm/windows/rocm-rel-7.2/torchvision-0.24.1%2Brocmsdk20260116-cp312-cp312-win_amd64.whl
Additional notes:
onnxruntime should not be pinned ≥ 1.23 for ROCm (EP dropped). Use unpinned.
triton can be skipped on Windows — no ROCm wheels exist, OneTrainer handles it gracefully.
Tested on Windows 11, RX 9060 XT (RDNA4/gfx1200), ROCm 7.13.0a20260318. Happy to help with the helper script or docs if needed.
gfx1151 / Strix Halo (Ryzen AI Max+ 395 iGPU) isn't in the gfx115X-all S3 bucket - that URL 404s. The wheels for gfx1151 live at AMD's separate v2 index instead: https://rocm.nightlies.amd.com/v2/gfx1151/
got it working on linux just now:
pip install --pre --index-url https://rocm.nightlies.amd.com/v2/gfx1151/ torch torchvision
result: torch 2.12.0a0+rocm7.13.0a20260411, hip 7.13.60980, torch.cuda.is_available() True, device 0 reports as "Radeon 8060S Graphics". scripts/train.py --help happy.
caveat that bit me: had to do this AFTER pip install -r requirements-global.txt and then uninstall the cu130 torch that transitive deps (accelerate/transformers/diffusers) had already pulled in from pypi's default index. pip's "already satisfied" check skips the rocm wheel otherwise. install ordering matters - the rocm torch needs to be either first or force-reinstalled afterward.
a row to add to your table:
| Strix Halo APU (gfx1151) | Ryzen AI Max+ 395 | pip install --pre --index-url https://rocm.nightlies.amd.com/v2/gfx1151/ torch torchvision |
side note - the v2 index also has per-arch buckets for gfx1100, gfx1101, gfx1102, gfx1151, gfx1200 etc, might be worth listing those alongside the *-all S3 rollups for cases where the per-arch wheels are needed (like this one).
@titansonico10 Why are you uploading a PDF file (please make it markdown) and why is it about stability matrix? Something that we neither support nor the topic of this issue?
1: I am autistic and a systems technician. 2: I opened this issue. 3: I opened this issue because I found a way to get an AMD graphics card working in OneTrainer via the Stability Matrix. 4: I decided to upload the tutorial so that people who see this issue have a short guide on how to get their AMD graphics card working.
Please dont, there is already ongoing modernisation of the installation #1244 because Windows + ROCM installation cannot be automated it requires user intervention. It will be wasted effort on your part.
If you can describe exactly how and AMD user should determine what GPU they have, then exactly what to install, we can create a small helper script in the installer that detects if you are Win+AMD and links to documentation on exactly how to do that
FWIW you are incorrect that windows + ROCm cannot be installed without user intervention. SDNext has managed it, all that they require is putting --use-rocm in the arguments and it automatically installs the correct builds of everything to use ROCm for Windows. I'm sure you if you reached out to them, they'd share how they accomplished this.