Skip to content

Studio: installer reports an AMD GPU while the backend runs CPU-only, with no reconciliation between them #8473

Closed

Description

@danielhanchen

What happens

On an AMD host, unsloth studio update prints

gpu AMD ROCm (gfx1201)
python dependencies up to date

and Studio then runs CPU-only. The Live monitor shows VRAM --, "No visible GPU", and a detail line reading CPU. The user is told twice that their GPU is fine and given no diagnostic at all.

Reported this way in #7485, and the same shape appears as problem 5 in #7307 (install path says gfx1201, update path says AMD Ryzen 9 9950X).

Why

The installer's GPU line and the backend's GPU verdict are computed by two stacks that share no state and never reconcile.

The installer probes rocminfo / amd-smi / hipinfo and a marketing-name table (studio/setup.sh:1798-1861, install.sh:2847-2860, studio/install_llama_prebuilt.py:2552-2585).

The backend's device list comes from get_backend_visible_gpu_info() (studio/backend/utils/hardware/hardware.py:3102). On an AMD host that function skips the SMI branch outright (hardware.py:3108 is device == DeviceType.CUDA and not IS_ROCM), so the only branch that can populate devices is torch.cuda (hardware.py:3123-3147). "No visible GPU" therefore means exactly one thing: torch.cuda.is_available() returned False in the backend process, so _detect_hardware_locked fell through to DEVICE = CPU.

Nothing in the current-layout install or update path ever runs torch.cuda.is_available() to check that the GPU the installer just announced is the GPU torch can actually see. The only such probe is the legacy-layout migration one at install.sh:2477-2483, which passes on device = 'cpu' by construction.

Nor does the installer persist any GPU identity the backend could compare against: unsloth_install_manifest.json (studio/install_manifest.py:124-158) carries no gfx field, and UNSLOTH_PREBUILT_INFO.json's rocm_gfx (install_llama_prebuilt.py:6206-6222) is read only by the updater.

Suggested fix

  1. After the Python stack step, run one bounded subprocess in the venv reporting torch.cuda.is_available(), device_count(), torch.__version__ and torch.version.hip, and fail the step loudly when the installer announced an AMD GPU and torch sees none. Print the mismatch instead of dependencies up to date.
  2. Persist the installer's detected gfx into the install manifest, and when DEVICE == CPU on a host where a ROCm GPU was recorded, have the Live monitor say "PyTorch cannot see the AMD GPU" with the recorded arch rather than "No visible GPU".

This is a small change and it converts an unfalsifiable user report into a self-diagnosing one.

Related

#7485, #7307.

Activity

  1. CSEliot commented on Aug 11, 2026

    @CSEliot

    +1, facing similar or same issue. I believe #7275 is related.

    Here's my install dump from unsloth desktop (same as unsloth studio):

    unslothInstallDump.txt

  2. danielhanchen commented on Aug 12, 2026

    @danielhanchen
    MemberAuthor

    Thanks will check

  3. added 3 commits that reference this issue on Aug 13, 2026
  4. PARLTOR commented on Aug 14, 2026

    @PARLTOR

    Similar issue with RDNA 2 architecture, gfx1030 (AMD 6000 series GPUs)

  5. marifcelik commented on Aug 17, 2026

    @marifcelik

    similar with RX5700XT (gfx1010)

    installation logs
    # Unsloth diagnostics phase log
    diag_schema=1
    flow=install
    segment_index=1
    started_at_ms=1786969397907
    attempt_id=install-1786969397907-2
    --- log ---
    [1786969397908][meta] Using script: /usr/lib/Unsloth/install.sh
    [1786969397930][stdout] 
    [1786969397930][stdout]   🦥 Unsloth Studio Installer
    [1786969397934][stdout]   ────────────────────────────────────────────────────
    [1786969397934][stdout] 
    [1786969397934][stdout] [TAURI:STEP] Detecting platform
    [1786969397934][stdout]   platform       linux
    [1786969397935][stdout] [TAURI:DIAG] diag_schema=1 platform=linux arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=unknown torch_index_family=none
    [1786969397935][stdout] [TAURI:STEP] Checking system dependencies
    [1786969397935][stdout]   deps           installing optional build tools: cmake git libcurl4-openssl-dev
    [1786969398025][stdout]   deps           using prebuilt llama.cpp (missing: cmake git libcurl4-openssl-dev)
    [1786969398025][stdout]                  Not required to run: Unsloth downloads a prebuilt inference engine.
    [1786969398025][stdout]                  Without git the triton kernels training speedup is skipped.
    [1786969398025][stdout] [TAURI:STEP] Installing uv package manager
    [1786969398047][stdout] [TAURI:STEP] Creating virtual environment
    [1786969398049][stdout]   venv           creating Python 3.13 virtual environment
    [1786969398049][stdout]                  /home/andronova/.unsloth/studio/unsloth_studio
    [1786969398052][stderr] [TAURI:OUTPUT_CLEAR] create venv
    [1786969398138][stdout] [TAURI:ERROR_CLEAR] create venv recovered
    [1786969398138][stderr] [TAURI:ERROR_CLEAR] create venv recovered
    [1786969398155][stdout]   venv           using environment
    [1786969398155][stdout]                  /home/andronova/.unsloth/studio/unsloth_studio
    [1786969399984][stdout] [TAURI:DIAG] diag_schema=1 platform=linux arch=x86_64 python_version=3.13 skip_torch=false mac_intel=false gpu_branch=rocm torch_index_family=rocm7.2
    [1786969400501][stdout]   gpu            AMD ROCm (gfx1010)
    [1786969400501][stdout]                  ROCm: /opt/rocm
    [1786969400501][stdout]                  hipconfig: 7.2.53211-97f5574fe2
    [1786969400502][stdout]                  wheels: https://download.pytorch.org/whl/rocm7.2
    [1786969400502][stdout] [TAURI:STEP] Installing PyTorch
    [1786969400503][stdout]                  installing PyTorch (https://download.pytorch.org/whl/rocm7.2)...
    [1786969400506][stderr] [TAURI:OUTPUT_CLEAR] install PyTorch
    [1786970394726][stderr] [TAURI:DL] triton-rocm 288.5MiB
    [1786970394726][stderr] [TAURI:DL] torch 5.8GiB
    [1786970394726][stderr] [TAURI:DL_DONE] triton-rocm
    [1786970394727][stderr] [TAURI:DL_DONE] torch
    [1786970394730][stderr] [TAURI:ERROR_CLEAR] install PyTorch recovered
    [1786970394731][stdout] [TAURI:ERROR_CLEAR] install PyTorch recovered
    [1786970396307][stdout]                  installing bitsandbytes for AMD ROCm (pre-release, PR #1887)...
    [1786970402529][stdout] [TAURI:STEP] Installing Unsloth
    [1786970402529][stdout]                  installing unsloth (this may take a few minutes)...
    [1786970402584][stderr] [TAURI:OUTPUT_CLEAR] install unsloth
    [1786970403677][stdout] [TAURI:ERROR_CLEAR] install unsloth recovered
    [1786970403677][stderr] [TAURI:ERROR_CLEAR] install unsloth recovered
    [1786970406725][stdout]   unsloth        2026.8.18 installed
    [1786970407984][stdout] [TAURI:STEP] Running Unsloth setup
    [1786970408021][stdout]   setup          running unsloth studio update...
    [1786970408028][stdout] 
    [1786970408028][stdout]   🦥 Unsloth Studio Setup
    [1786970408028][stdout]   ────────────────────────────────────────────────────
    [1786970408038][stdout]                  cleared stale WebView caches (ai.unsloth.studio); settings and data kept
    [1786970408042][stdout]   frontend       bundled (Tauri)
    [1786970408045][stdout]                  installing isolated Node (system Node/npm left untouched)...
    [1786970415137][stdout]   node           v24.18.0 | npm 11.16.0 (isolated)
    [1786970415137][stdout]   frontend       up to date
    [1786970426590][stdout]   deps           [=-------------------]  1/15  pip bootstrap         deps           [==------------------]  2/15  torch check (rocm)    deps           [====----------------]  3/15  unsloth extras        deps           [=====---------------]  4/15  extra codecs          deps           [======--------------]  5/15  dependency overrides
    [1786970427916][stdout]                  torch 2.11.0+rocm7.2 detected -- installing torchao==0.17.0
    [1786970427916][stdout]   deps           [========------------]  6/15  triton kernels (skipped, no git)
    [1786970427916][stdout]                  no working git -- skipping triton kernels (training speedup only)
    [1786970429384][stdout]   deps           [=========-----------]  7/15  flash-attn          
    [1786970429384][stdout]   warning        No compatible flash-attn prebuilt wheel found
    [1786970433341][stdout]   deps           [==========----------]  8/15  studio deps           deps           [============--------]  9/15  anyio check           deps           [=============-------] 10/15  data designer deps    deps           [==============------] 11/15  data designer         deps           [================----] 12/15  local plugin          deps           [=================---] 13/15  diffusers pin         deps           [==================--] 14/15  finalizing            deps           [====================] 15/15  torch final (rocm)  
    [1786970442711][stdout]   deps           installed
    [1786970442937][stdout]   transformers   5.3.0 pre-installed
    [1786970443082][stdout]   transformers   5.5.0 pre-installed
    [1786970443291][stdout]   transformers   5.10.2 pre-installed
    [1786970444062][stdout]   gpu            AMD ROCm (gfx1010)
    [1786970444062][stdout]                  ROCm: /opt/rocm
    [1786970444062][stdout]                  hipconfig: 7.2.53211-97f5574fe2
    [1786970444071][stdout]                  installing prebuilt llama.cpp...
    [1786970447011][stdout]   llama.cpp      prebuilt install failed
    [1786970447011][stdout]                  llama.cpp diagnostics (last 120 lines):
    [1786970447012][stderr]    | [llama-prebuilt] no existing llama.cpp install detected at /home/andronova/.unsloth/llama.cpp; performing fresh prebuilt install
    [1786970447013][stderr]    | [llama-prebuilt] published release skipped for install planning: unslothai/llama.cpp@b10360-mix-87da1a2 upstream_tag=b10360 (no compatible Linux prebuilt asset was found)
    [1786970447013][stderr]    | [llama-prebuilt] prebuilt install path failed; falling back to source build
    [1786970447013][stderr]    | [llama-prebuilt] prebuilt fallback reason: no compatible Linux prebuilt asset was found
    [1786970447013][stderr]    | platform=Linux machine=x86_64
    [1786970447013][stderr]    | driver_cuda_version=None
    [1786970447013][stderr]    | compute_caps=unknown
    [1786970447013][stderr]    | cuda_visible_devices=unset
    [1786970447013][stderr]    | has_physical_nvidia=False
    [1786970447013][stderr]    | has_usable_nvidia=False
    [1786970447013][stderr]    | chosen_asset=none
    [1786970447013][stderr]    | asset_source=none
    [1786970447013][stdout]                  falling back to source build
    [1786970447016][stdout]   llama.cpp      skipped (cmake not found)
    [1786970449484][stdout]   whisper.cpp    prebuilt install failed; curated whisper.cpp dictation is unavailable; retry setup or inspect verbose output; browser and Transformers dictation remain available
    [1786970449498][stdout]   ────────────────────────────────────────────────────
    [1786970449498][stdout]   Unsloth Studio Installed (limited: llama.cpp unavailable)
    [1786970449498][stdout]   ────────────────────────────────────────────────────
    [1786970449498][stdout]   launch         unsloth studio -p 8888
    [1786970449498][stdout]                  (add -H 0.0.0.0 for LAN / cloud access; exposes the raw port only, not a public URL)
    [1786970449499][stdout]                  (add -H 0.0.0.0 --cloudflare for a public Cloudflare HTTPS link, or --secure to keep the raw port private; anyone with the API key can run code)
    [1786970449499][stdout] 
    [1786970449499][stdout] [TAURI:PROGRESS] llama.cpp unavailable; GGUF inference is disabled until 'unsloth studio update' succeeds
    [1786970449499][stdout] [TAURI:ERROR_CLEAR] studio setup completed
    [1786970449499][stderr] [TAURI:ERROR_CLEAR] studio setup completed
    [1786970449503][stdout] [TAURI:DONE] 
    
    Image
  6. danielhanchen commented on Sep 9, 2026

    @danielhanchen
    MemberAuthor

    Closing. The update path now runs the AMD torch check and forces a repair when torch isn't a ROCm build, and the backend reports the physical card with a GPU unusable reason instead of a bare no visible GPU.

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

Metadata

Metadata

Assignees

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