Skip to content

[Bug] AMD: fine-tuning fails on 2x R9700 on Linux (ROCm 7.14 host gets ROCm 7.2 PyTorch) #10657

Closed

Description

@cminnoy

name: Unsloth Studio Bug
about: Report a problem with the Unsloth Studio desktop app or web UI
title: "[Unsloth Bug] Training fails always; using wrong ROCm"
labels: bug
assignees: ""

Environment

Where are you using Unsloth?

  • Unsloth desktop application
  • Unsloth web UI (unsloth studio)
  • Unsloth CLI
  • Python package or notebook
  • Colab or Kaggle

Operating system and version:

Ubuntu 24.04.4 LTS

GPU model(s) and accelerator backend:

2x AMD AI Pro 9700 (gfx1201)

Versions:

Unsloth
Unsloth Version
v0.1.807-beta
Package Version
2026.9.3
llama.cpp Version
b10840-mix-d5c17a0

What happened?

Steps to reproduce:

  1. Install Ubuntu 24.04 and install ROCm 7.14
  2. curl -fsSL https://unsloth.ai/install.sh | sh
  3. Try training any model.

Expected behavior:

Unsloth installer recognizes ROCm version 7.14 and installs correct PyTorch 2.14 for AMD.

Actual behavior:

Unsloth installer installs PyTorch with ROCm 7.2.
This leads in unstable behavior where fine tuning a model always fails.

Model and operation involved:

Diagnostics and logs

Desktop application

Click Copy Diagnostics on the error, startup, or update screen and paste the
result below:

PASTE COPY DIAGNOSTICS HERE

If Copy Diagnostics is unavailable, attach the newest relevant files from:

  • Windows: %USERPROFILE%\.unsloth\studio\
  • Linux/macOS: ~/.unsloth/studio/

Useful files include:

  • tauri.log and, if relevant, tauri.log.1
  • logs/install-*.log, logs/update-*.log, logs/repair-*.log, or logs/backend-*.log
  • The newest logs/server/server-*.log

Unsloth web UI

Attach the newest relevant items:

  • Linux/macOS/Windows: ~/.unsloth/studio/logs/server/server-*.log
    (use %USERPROFILE%\.unsloth\studio\logs\server\ on Windows)
  • Linux/macOS shortcut launches only: ~/.local/share/unsloth/studio.log
  • Terminal output if Unsloth was launched from a terminal
  • Browser Console errors for browser-only problems

If you configured UNSLOTH_STUDIO_HOME or STUDIO_HOME, look under
<CUSTOM_STUDIO_HOME>/logs/ instead.

Model-specific logs, if applicable

  • GGUF/llama.cpp: newest ~/.unsloth/studio/logs/llama-server/*.log
  • Diffusion GGUF: newest ~/.unsloth/studio/logs/diffusion-server/*.log
  • Training resume/checkpoint bug: relevant trainer_state.json

Python package or notebook, if applicable

Paste the complete traceback and minimal reproduction:

# Remove all tokens and private data.

Also include Python, Unsloth, unsloth_zoo, PyTorch, Transformers, and TRL
versions, plus nvidia-smi output when applicable.

Additional context

Activity

  1. added
    feature request
    on Sep 9, 2026
  2. changed the title [-][Bug] Please fill in your issue title here.[/-] [+][Bug] Unsloth installer does not recognize ROCm 7.14 and installs ROCm 7.2.[/+] on Sep 9, 2026
  3. changed the title [-][Bug] Unsloth installer does not recognize ROCm 7.14 and installs ROCm 7.2.[/-] [+][Bug] Unsloth installer does not recognize ROCm 7.14 and installs PyTorch 2.11 with ROCm 7.2.[/+] on Sep 9, 2026
  4. LeoBorcherding commented on Sep 23, 2026

    @LeoBorcherding
    Collaborator

    two things in your report, and only the second one is a bug.

    the rocm7.2 wheels are on purpose. your 7.14 was detected correctly (your log shows it).
    the installer then picks the newest PyTorch build we've tested, which is the rocm7.2 one.
    those wheels ship their own copy of the ROCm libraries, so they run fine on your 7.14
    system; 7.2 is just the name of the build. it tried two closer options first and neither
    exists: AMD never published 7.14 on repo.radeon.com (it stops at 7.2.4), and pytorch.org's
    rocm7.14 index has only torch 2.14.

    that's also why you got 2.11 -- it's our version pin, not the index. the rocm7.2 index
    carries 2.12, 2.13 and 2.14 as well; we pin torch>=2.11,<2.12 because 2.11 is what's
    tested. so UNSLOTH_TORCH_INDEX_FAMILY=rocm7.14 won't get you 2.14, it will just fail to
    install. moving that pin is #9932, which you're already following.

    "training always fails" is the real bug, and there's no log for it. the rocm7.2 wheels
    shouldn't break training on your cards, so two things to try first:

    1. update. you're on v0.1.807-beta. v0.1.810 was the first build that switches on PyTorch's
      fast ROCm attention kernels (fix(amd): turn on PyTorch's fast ROCm attention kernels on import unsloth, and drop the installers' host-wide export #8821). without it, attention falls back to a slow path that
      uses far more memory and fails in a way that looks like a broken install. latest is
      v0.1.811-beta.
    2. if it still fails, set TORCH_BLAS_PREFER_HIPBLASLT=0 before starting. AMD lists
      fine-tuning with Unsloth crashing or resetting the GPU on exactly your card (RX 9070
      series and Radeon AI PRO R9700), with that as the workaround: PyTorch training and fine-tuning workloads might experience GPU resets or crashes on some Radeon GPUs ROCm/TheRock#7699.

    if it still fails after both, could you post the error? the newest
    ~/.unsloth/studio/logs/server/server-*.log, the model, and whether you train on one card
    or both. two R9700s on one linux box is hardware nobody here has, so your logs are the only
    way we see that setup.

  5. LeoBorcherding commented on Sep 24, 2026

    @LeoBorcherding
    Collaborator

    update on the "why not 7.14" question: AMD does publish a 7.14.1-built torch on a stable index, just not on the two the installer looks at. https://repo.amd.com/rocm/whl-multi-arch/ has torch 2.11.0+rocm7.14.1 (and 2.12.0) with a per-card device pack for every RDNA 2 / 3 / 3.5 / 4 and CDNA arch, linux and windows, including gfx1103 (780M/760M), gfx1152 and gfx1153 (860M/840M) that have nothing in the rocm7.2 wheel, and gfx1201 (R9700). install shape is one index and the card in the extra:

    pip install --index-url https://repo.amd.com/rocm/whl-multi-arch/ --extra-index-url https://pypi.org/simple "torch[device-gfx1201]==2.11.0+rocm7.14.1" "torchvision==0.26.0+rocm7.14.1" "torchaudio==2.11.0+rocm7.14.1"
    

    no torch ceiling bump needed, 2.11.0 sits inside the current window. i have it training on RDNA 2 (RX 6500 XT) and RDNA 1 (RX 5700 XT) on windows, numbers in #11755; nobody has run it on bare-metal linux yet. if either of you can drop that trio into a throwaway venv on your box and run a few training steps, i'll wire the linux route next.

  6. changed the title [-][Bug] Unsloth installer does not recognize ROCm 7.14 and installs PyTorch 2.11 with ROCm 7.2.[/-] [+][Bug] AMD: fine-tuning fails on 2x R9700 on Linux (ROCm 7.14 host gets ROCm 7.2 PyTorch)[/+] on Sep 25, 2026
  7. danielhanchen commented on Oct 10, 2026

    @danielhanchen
    Member

    Fixed! Sorry on the delay. The installer was capping your ROCm 7.14 to the generic ROCm 7.2 PyTorch wheels; since #11935 an R9700 (gfx1201) gets AMD's own RDNA 4 build instead (torch 2.11 + ROCm 7.13 from repo.amd.com), and unsloth studio update moves an existing install over to it. We never got a log for the training failure itself, so if fine-tuning still fails after updating, please first try starting with TORCH_BLAS_PREFER_HIPBLASLT=0 unsloth studio (AMD's workaround for fine-tuning crashes on the R9700, ROCm/TheRock#7699), and if that doesn't help, reopen with the newest ~/.unsloth/studio/logs/server/server-*.log, the model, and whether you train on one card or both.
    To update: Unsloth Desktop will have an update banner. For Studio, use unsloth studio update. For Docker, use docker exec <container> unsloth-studio-update. Reopen if it still happens.

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

Metadata

Metadata

Labels

AMDbugfeature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions