ROCm with PyTorch and PyTorch Lightning seems to still suck for research [D]
Mirrored from r/MachineLearning for archival readability. Support the source by reading on the original site.
So I asked about people's experiences with ROCm in a post a few weeks or so ago
https://www.reddit.com/r/MachineLearning/comments/1t6cng3/rocm_status_in_mid_2026_d/
I actually went and procured a RX 7900XTX reference version to give it a try
My discovery is that it kind of still sucks
I have a small codebase for training flow matching models (SANA Architecture), which runs fine on my RTX3090s. But the moment I ported it across to ROCm it was NaNs absolutely everywhere. Forward passes were absolutely fine, but the moment you called backwards() all bets were off. The code was kept identical, apart from altering the pip environment to point to torch2.12 with ROCm7.2 instead of CUDA
Trying everything from switching between bf16, fp32, to tweaking various environment variables yielded nothing.
Unless there's some trick I'm missing, I get the feeling that ROCm is still seriously behind.
I tried running the nanoGPT training script, which ran perfectly
My intuition is that the ROCm people have probably tested their stack on established well known codebases. But, it's still remarkably fragile on even slightly uncommon code.
[link] [comments]
More from r/MachineLearning
-
A map of the latest 11 million papers split by semantic similarity and time slices [P]
Jun 30
-
Update on CVIL: the free CV interview prep checklist after landing my internship... just added Segmentation, OCR, and VLM sections [D]
Jun 30
-
EACL 2027: Author response and author-reviewer discussion are now two separate stages and allow more time [D]
Jun 30
-
Loss functions in Instance Representation Learning [R]
Jun 29
Discussion (0)
Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.
Sign in →No comments yet. Sign in and be the first to say something.