Skip to content

[Bug] AMD GPU not loading into VRAM or detected #7776

Closed

Description

@shimmyshimmer

From: @ruZeph

So steps are, before installing studio:

ensure HIP SDK installed
IGPU is hidden using HIP_SET_VISIBLE
i think you can add it in prerequistes, or else lot of people gonna open the same issue
this solves the issue


  1. The HIP SDK was not installed during the Studio Desktop app installation. It needs to be installed separately by following the AMD ROCm for Windows guide: https://rocm.docs.amd.com/projects/install-on-windows/en/latest/

  2. Important: Even after installing the HIP SDK, if your system has both an AMD iGPU and a discrete AMD GPU, Unsloth Studio may detect the iGPU (e.g. gfx1036) instead of the discrete GPU (e.g. gfx1200) and download the wrong ROCm PyTorch wheels.

    Setting the following environment variable before running the installer fixes the issue by forcing HIP to use the discrete GPU:

    setx HIP_VISIBLE_DEVICES 1

    After opening a new terminal and rerunning the installer, it correctly detected my RX 9060 XT (gfx1200) and installed the appropriate gfx120X wheels.

It would be helpful to add this as a note in the installation guide or have the installer detect this situation and suggest setting HIP_VISIBLE_DEVICES when multiple AMD GPUs are present.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions