Skip to content

Broken installer #6172

Closed
Closed

Description

@0daysophie

image-7.png

image.webp

Screenshot_20260610-231254~2.png

OS: Linux Mint 22.2

GPU: RTX 4070 Super

Installer installs ROCm libs on Nvidia system, breaking Unsloth Studio

Activity

  1. LeoBorcherding commented on Jun 10, 2026

    @LeoBorcherding
    Collaborator

    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.

  2. LeoBorcherding commented on Jun 10, 2026

    @LeoBorcherding
    Collaborator

    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:

    source ~/.unsloth/studio/unsloth_studio/bin/activate
    pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
  3. added a commit that references this issue on Jun 11, 2026
    bf2cd74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions