Skip to content

[Bug] Unsloth detected signs of an AMD ROCm GPU, but your current PyTorch build has no usable HIP accelerator #5180

Closed

Description

@guinmoon

In Unsloth Studio, starting with package version 2026.4.5.
When loading any model or starting finetune, I've tried different versions of Pytorch with ROCm support, and the same thing happens everywhere.

"Error loading model: Subprocess error: Failed to import ML libraries: Unsloth detected signs of an AMD ROCm GPU, but your current PyTorch build has no usable HIP accelerator.
This usually means torch/torchvision/torchaudio were installed from default PyPI wheels instead of ROCm wheels.\nDetected ROCm version hint: 7.1\nTry reinstalling PyTorch wheels with:
uv pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm7.1/ --upgrade --force-reinstall\nVerified index URL is reachable: https://download.pytorch.org/whl/rocm7.1/", "exc_info": true}

My Env:

HIP_VISIBLE_DEVICES="1"
FLASH_ATTENTION_TRITON_AMD_ENABLE="TRUE"

With the package unsloth[amd]==2026.4.4, everything works fine.

Moreover, if I simply launch finetune not from the studio but from a python script, everything works fine even with version 2026.4.8.

Activity

  1. LeoBorcherding commented on May 5, 2026

    @LeoBorcherding
    Collaborator

    @guinmoon thank you for sharing, we are looking into this and will get back to you

  2. h34v3nzc0dex commented on May 18, 2026

    @h34v3nzc0dex
    Contributor

    The detection logic that produces that exact error message gets rewritten in #5301 (d89d9b1 routes Linux AMD hosts to repo.amd.com/rocm/whl/{arch}/ which serves matching torch+rocm wheels directly, replacing the older guess-the-PyTorch-build flow). If your GPU is gfx1151 / gfx1150 (Strix Halo / Strix Point) it definitely fixes this for you; for other AMD targets it depends whether AMD ships wheels at the per-arch index.

    Could you share the output of amd-smi list and python -c 'import torch; print(torch.__version__, torch.version.hip, torch.cuda.is_available())'? That'll tell us (a) which arch you're on and (b) whether your torch build is ROCm-flagged at all — both are needed to know whether #5301 lands your case or whether there's a separate gap.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions