Skip to content

[Bug] ROCm backend can't load any models #8998

Closed

Description

@TheGeekno72

name: Unsloth Studio Bug
about: Report a problem with Unsloth Studio
title: "[Bug] ROCm backend can't load any models"
labels: bug
assignees: ""

Environment

Where are you using Unsloth?

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

Operating system and version:

GPU model(s) and accelerator backend:
AMD Radeon 9070XT 16GB // ROCm & Vulkan
(CPU's iGPU disabled in BIOS so no other GPU available)

Versions:
Image

What happened?

Steps to reproduce:

  1. install unsloth (tried both install script & appimage after running uninstall script)
  2. download various models
  3. set backend to ROCm if it's not done automatically
  4. attempt to load a model
  5. observe result

Expected behavior:
loading a model normally

Actual behavior:
using ROCm backend does not load ANY model
using Vulkan backend works just fine
using llama-server from unsloth folder works just fine (see additional context at the bottom)

Model and operation involved:
various iterations of gemma4, Qwen 3.5, Qwen 3.8, Qwen-AgentWorld, North Mini Code...

Diagnostics and logs

backend-backend-1786709808697-3-s01.log

Desktop application

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

Failed to load model: llama-server exited immediately (status 127): either the llama-server executable could not be found or run, or one of the shared libraries it needs could not be loaded. Check the llama-server log, and run "unsloth studio update" to reinstall the llama.cpp runtime.

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

Studio 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 Studio 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

llama-1786885962-retry-port-51533-try0.log
llama-1786885960-port-51533-try0.log
llama-1786885950-port-51669-try0.log
llama-1786885941-retry-port-44647-try0.log
llama-1786885940-port-44647-try0.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

running llama-server directly from .unsloth loads the model and operates properly
Image
Image

Activity

  1. added
    feature request
    on Aug 16, 2026
  2. indrajeetapache commented on Aug 16, 2026

    @indrajeetapache
    Contributor

    Studio dies with: ~/.unsloth/llama.cpp/build/bin/libamdhip64.so.7: undefined symbol: hsa_amd_queue_create, version ROCR_1

    It prepends system ROCm (HIP 7.2) in front of the bundled HIP. Vulkan and a terminal llama-server skip that mix, so they work. Studio then retries with --fit on, which cannot fix a symbol lookup.

    Workaround: UNSLOTH_LLAMA_NO_SYSTEM_ROCM=1

  3. indrajeetapache commented on Aug 16, 2026

    @indrajeetapache
    Contributor

    The 127 is bundled libamdhip64.so.7 looking up hsa_amd_queue_create@ROCR_1 against system ROCm. Studio was retrying that as a VRAM miss (--fit on), which cannot fix a symbol lookup.

    The PR retries once with the bundled HIP only (same as a terminal llama-server). Workaround until it lands: UNSLOTH_LLAMA_NO_SYSTEM_ROCM=1

  4. danielhanchen commented on Aug 28, 2026

    @danielhanchen
    Member

    This should be fixed now - sorry on the delay - please update Unsloth Studio to the latest via curl -fsSL https://unsloth.ai/install.sh | sh for Linux, Mac, WSL or irm https://unsloth.ai/install.ps1 | iex for Windows - if it's not fixed yet, it'll be in the next Studio release - if it's still not working after that, please open another issue - appreciate it again!

    A bundled HIP symbol mismatch is now detected at startup and the server is relaunched against the bundled ROCm libraries, so the load recovers on its own.

  5. TheGeekno72 commented on Aug 28, 2026

    @TheGeekno72
    Author

    @danielhanchen can confirm, switching to ROCm backend and loading models works as expected now, glad to see this fixed, thanks!

    NOTE : I updated via the appimage, launching the latest version took care of the updating process

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

Metadata

Metadata

Labels

bugfeature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions