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] Windows ROCm: torchao==0.17.0 crashes on import, breaking sentence-transformers and llama-server embedder #6833
On Windows with AMD ROCm (Strix Halo / Radeon 8060S, gfx1151), the Unsloth installer installs torchao==0.17.0 alongside torch 2.11.0+rocm7.13.0. However, torchao 0.17.0 crashes on import because torch.ops._c10d_functional.all_gather_into_tensor does not exist in ROCm Windows builds of PyTorch.
On ROCm Windows torch 2.11.0, torch.ops._c10d_functional exists but only contains ["name"] — no all_gather_into_tensor op.
Root Cause
The installer should either:
Not install torchao on ROCm Windows if it's known to be incompatible
Install a torchao version compatible with ROCm Windows
Perform a post-install import smoke test and warn/revert on failure
Workaround
Users can work around by patching transformers/quantizers/quantizer_torchao.py to wrap the import torchao in a try/except, but this is fragile.
Note
The ROCm GPU itself works fine — torch.cuda.is_available() returns True after install. The issue is specifically with torchao's module-level initialization.
This should be fixed now - sorry on the delay - please update Unsloth Studio to the latest via curl -fsSL https://unsloth.ai/install.sh | sh for Linux, Mac, WSL or irm https://unsloth.ai/install.ps1 | iex for Windows - if it's not fixed yet, it'll be in the next Studio release - if it's still not working after that, please open another issue - appreciate it again!
Fixed in #6837, which skips torchao on Windows ROCm during install, so the import no longer crashes on startup.
Activity
rodboev commentedon Jul 9, 2026
The Windows ROCm torchao import crash was addressed in #6837, which guards the override skip. This can probably be closed.
danielhanchen commentedon Jul 14, 2026
This should be fixed now - sorry on the delay - please update Unsloth Studio to the latest via
curl -fsSL https://unsloth.ai/install.sh | shfor Linux, Mac, WSL orirm https://unsloth.ai/install.ps1 | iexfor Windows - if it's not fixed yet, it'll be in the next Studio release - if it's still not working after that, please open another issue - appreciate it again!Fixed in #6837, which skips torchao on Windows ROCm during install, so the import no longer crashes on startup.