Repository navigation
Studio: show Vulkan iGPU memory as shared availability - #11305
Merged
danielhanchen merged 2 commits intoSep 20, 2026
Merged
Conversation
This was referenced Sep 20, 2026
shimmyshimmer
pushed a commit
to shimmyshimmer/unsloth-staging-4
that referenced
this pull request
Sep 20, 2026
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
shaojun
pushed a commit
to shaojun/unsloth
that referenced
this pull request
Sep 29, 2026
Co-authored-by: Daniel Han <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The System panel shows
Unknownfor integrated GPU memory: anUnknown / …VRAM reading, anUnknown VRAMbadge, 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:
Unknown / 0 GiB VRAM + 25.7 GiB sharedEstimated available: 25.7 GiBUnknownbelow the readingShared with system RAMUnknown VRAMbadgeWhy 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
Those are separate amounts. Previously, that summary combined them into a single
30.4 GiBfigure.This only changes presentation. Memory allocation, reserved memory, and model-fit decisions are unchanged. Missing readings remain unknown; a measured zero remains zero.
Screenshot
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
What it looks like
Two isolated Studio installs, one built from this branch's merge base
76042c0aaand one from its head, driven by the same Playwright scene. This box has no Vulkan iGPU, so both installs were served thegpublock 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.The tile, closer:
76042c0aaVRAMGPU MEMORYUnknown / 0 GiB VRAM + 93 GiB sharedEstimated available: 93 GiBUnknownShared with system RAM--with an empty barUnknown used, badgeUnknown VRAMShared with system RAM,Estimated available: 93 GiBOne correction to how this was described before the run. The merge base does not present the 93 GiB as a card's capacity:
hardware.pyalready setsshared_memoryfor a ggml iGPU, so main already renders0 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 intoUnknownagainst a capacity, anUnknown VRAMbadge 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.