Skip to content

Studio: show Vulkan iGPU memory as shared availability - #11305

Merged
danielhanchen merged 2 commits into
unslothai:mainfrom
oobabooga:fix/vulkan-igpu-memory-display
Sep 20, 2026
Merged

danielhanchen merged 2 commits into
unslothai:mainfrom
oobabooga:fix/vulkan-igpu-memory-display

Conversation

@oobabooga

@oobabooga oobabooga commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

The System panel shows Unknown for integrated GPU memory: an Unknown / … VRAM reading, an Unknown VRAM badge, and an empty usage bar. This makes the GPU look undetected even when an estimate of available memory exists.

This PR fixes that display for Vulkan integrated GPUs. With the Intel UHD 620 readings used to reproduce it:

Before After
Unknown / 0 GiB VRAM + 25.7 GiB shared Estimated available: 25.7 GiB
Unknown below the reading Shared with system RAM
Empty GPU usage bar and Unknown VRAM badge No GPU usage bar or percentage

Why it happens

These GPUs use the computer's RAM rather than dedicated VRAM. The backend reports an estimate of how much memory the GPU can still allocate, but it does not report how much the GPU is using. The UI treats that estimate as VRAM capacity and tries to show used/total, leaving the used amount as Unknown.

What changes

  • Show Shared with system RAM and Estimated available in the System panel and floating monitor.
  • On machines with both a dedicated GPU and an integrated GPU, keep the dedicated GPU's usage separate from shared availability.
  • Keep one device list. Rename the compact GGUF inference summary to GGUF model memory and label its two memory amounts explicitly:
VULKAN
VRAM: 2.24 GiB
Shared system RAM: estimated 28.2 GiB available

Those are separate amounts. Previously, that summary combined them into a single 30.4 GiB figure.

This only changes presentation. Memory allocation, reserved memory, and model-fit decisions are unchanged. Missing readings remain unknown; a measured zero remains zero.

Screenshot

vulkan-igpu-before-after

Final layout using replayed readings from an Intel UHD 620 + NVIDIA MX150 laptop. The VRAM amount is reported by Vulkan; it is not a new measurement of the card's physical capacity.

Verification

  • Real-backend laptop testing confirmed the Intel UHD 620 and MX150 readings. The final layout was checked with those readings at wide and narrow window sizes.
  • Nine browser A/B cases cover integrated-only, mixed, dedicated-only, zero/missing readings, shared pools, and ROCm reporting. The local comparisons use replayed readings.
  • Dedicated-GPU usage remained unchanged on the real two-GPU test host.
  • Production build, type checks, translation checks, and all 24 focused memory tests pass.

What it looks like

Two isolated Studio installs, one built from this branch's merge base 76042c0aa and one from its head, driven by the same Playwright scene. This box has no Vulkan iGPU, so both installs were served the gpu block a Strix Halo gfx1151 box (AMD Radeon Graphics, RADV GFX1151) really reported, captured on the self-hosted AMD runner: index_kind vulkan, shared_memory true, vram_used_gb null, memory_total_gb 93.02. Everything else in the payload is each install's own live reading, and both sides received the identical injection, so the only thing that can differ between the halves is the code under test.

System panel, merge base against head

The tile, closer:

GPU memory tile, merge base against head

merge base 76042c0aa head
tile label VRAM GPU MEMORY
tile value Unknown / 0 GiB VRAM + 93 GiB shared Estimated available: 93 GiB
tile detail Unknown Shared with system RAM
usage percent and bar -- with an empty bar absent
device row Unknown used, badge Unknown VRAM Shared with system RAM, Estimated available: 93 GiB

One correction to how this was described before the run. The merge base does not present the 93 GiB as a card's capacity: hardware.py already sets shared_memory for a ggml iGPU, so main already renders 0 GiB VRAM + 93 GiB shared. What is actually wrong before this change is the usage half. The backend reports no per-device usage for an iGPU, and the panel turned that into Unknown against a capacity, an Unknown VRAM badge and a usage bar drawn empty at --, which reads as a device in trouble rather than one whose memory is simply the host's. That framing is what the change removes.

The CPU and RAM tiles differ between the halves because those are wall clock on a shared machine, not anything this change touches.

@danielhanchen

Copy link
Copy Markdown
Member

Confirmed the Resources VRAM tile in studio/frontend/src/features/settings/tabs/resources-tab.tsx still renders Unknown with an empty bar when usage cannot be resolved, and that this keeps the allocation and model-fit totals untouched. Will get this reviewed.

shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Sep 20, 2026
shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Sep 20, 2026
danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Sep 20, 2026
danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Sep 20, 2026
@danielhanchen
danielhanchen merged commit 857f68d into unslothai:main Sep 20, 2026
53 of 54 checks passed
shaojun pushed a commit to shaojun/unsloth that referenced this pull request Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants