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
Hi @0daysophie, root cause identified and a fix is up in PR #6174.
What's happening: NVIDIA's open kernel module (driver 560+) registers your RTX 4070 Super as a node in the KFD GPU topology sysfs hierarchy (/sys/class/kfd/kfd/topology/nodes/). The installer was using gpu_id != 0 in that hierarchy as the sole signal for "AMD GPU present", which falsely triggered the ROCm install path on your system.
Fix in #6174: The sysfs check now also requires vendor_id 4098 (AMD's PCI vendor ID, 0x1002). NVIDIA nodes have vendor_id 4318 (0x10DE) and are skipped. A second guard passes the detected torch backend (cuda/rocm/cpu) from install.sh to install_python_stack.py so the ROCm repair step is skipped outright on NVIDIA hosts.
In the meantime, you can work around it by reinstalling the correct torch manually inside the Unsloth venv:
Activity
LeoBorcherding commentedon Jun 10, 2026
hi @0daysophie thank you for opening this issue, i am working on a fix for it now and will send you a branch to test that should fix this bug.
LeoBorcherding commentedon Jun 10, 2026
Hi @0daysophie, root cause identified and a fix is up in PR #6174.
What's happening: NVIDIA's open kernel module (driver 560+) registers your RTX 4070 Super as a node in the KFD GPU topology sysfs hierarchy (
/sys/class/kfd/kfd/topology/nodes/). The installer was usinggpu_id != 0in that hierarchy as the sole signal for "AMD GPU present", which falsely triggered the ROCm install path on your system.Fix in #6174: The sysfs check now also requires
vendor_id 4098(AMD's PCI vendor ID, 0x1002). NVIDIA nodes havevendor_id 4318(0x10DE) and are skipped. A second guard passes the detected torch backend (cuda/rocm/cpu) frominstall.shtoinstall_python_stack.pyso the ROCm repair step is skipped outright on NVIDIA hosts.In the meantime, you can work around it by reinstalling the correct torch manually inside the Unsloth venv:
Fix installer selecting ROCm torch on NVIDIA Linux hosts (unslothai#6174