Repository navigation
[Bug] AMD: Strix Halo VRAM shows carve-out plus shared RAM instead of the carve-out - #17509
Merged
danielhanchen merged 8 commits intoNov 14, 2026
Conversation
… shared RAM On a carve-out APU the driver pool is the BIOS carve-out plus WDDM shared memory, and that shared part is system RAM the RAM tile already counts. The VRAM tile, device row and floating monitor now divide usage by the carve-out and show the RAM the GPU can still borrow on its own line, capped by free RAM. The GGUF row names the llama.cpp build and drops the 'Shared system RAM' label from a budget that is mostly the carve-out.
…outgrows With no qualifying carve-out (a 2 GiB UMA slice with 34 GiB shared), the VRAM tile fell back to the combined pool as bare VRAM. It keeps main's split label there again; only a carve-out at least as large as its shared part reads as the carve-out alone.
…usage beside a discrete card
This was referenced Nov 11, 2026
This was referenced Nov 13, 2026
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…wn free as unknown [skip ci]
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
danielhanchen
pushed a commit
to danielhanchen/unsloth-staging-2
that referenced
this pull request
Nov 13, 2026
danielhanchen
pushed a commit
to danielhanchen/unsloth-staging-2
that referenced
this pull request
Nov 13, 2026
danielhanchen
added a commit
to danielhanchen/unsloth-staging-2
that referenced
this pull request
Nov 14, 2026
…nreadable shared iGPU sits beside discrete cards that report usage (unslothai#17523) On a Windows host with 2x Radeon AI PRO R9700 plus the CPU's integrated Radeon Graphics, Settings > System > Live monitor reads "Unknown / 65.7 GiB VRAM + 34.3 GiB shared". `/api/system` reports real `vram_used_gb` for both R9700s (21.75, 1.97), but the iGPU's is null and there's no host aggregate, so `resolveGpuVramUsedGb` returns null for the whole tile. `gpuMemoryDisplay` now moves a shared device with no usage counter into the shared group when every discrete card reports usage and there's no host aggregate. The tile then reads 23.7 / 63.7 GiB with free taken from the same cards, and the iGPU shows on the existing "Shared with system RAM" line. A host aggregate, an unreadable discrete card, or an APU on its own behave as before. It doesn't touch unslothai#17509's carve-out logic and merges cleanly with it. ## Tests `vram-tile-unreadable-igpu.test.ts` uses the reporter's device list: it fails on main and passes here. The existing `gpu-memory-display`, `rocm-windows-vram-aggregate` and `gpu-vram-split` suites still pass, and so do unslothai#17509's tests on a merge with it. Tested on Windows 11, Ryzen 9 9950X + 2x R9700 + integrated Radeon Graphics: frontend unit tests and typecheck. Not checked in the running app. ## Screenshots NPU spoofed: fake Lemonade/FastFlowLM on a Windows 11 PC with no NPU; no speed numbers. Before | after: fork phase stack, phase 4 `49a3094` | phase 5 `db8d450`. Shot at `db8d450`; this PR's head has since moved to `80154bb` (`06a0c5d` and `80154bb` drop the "Estimated available: Unknown" line still visible in these shots). Light mode, mint theme, glass on, same on both sides. Before | after, 2x R9700 plus an unreadable iGPU: the VRAM tile reads "16.4 GiB / 63.7 GiB" instead of "Unknown", with the iGPU on a "Shared with system RAM" line. The NPU tile is unslothai#17508.  Before | after: the floating monitor moves the iGPU under "Shared with system RAM" next to the two R9700s. The NPU row is unslothai#17508.  ## Before / after (Studio built from merge base and from this branch) `/api/system`'s `gpu` block stubbed with the reporter's 2x R9700 + unreadable iGPU reading; everything else is the real server. The VRAM tile goes from "Unknown / 65.7 GiB VRAM + 34.3 GiB shared" to "23.7 GiB / 63.7 GiB, 40 GiB free, Shared with system RAM".  Floating monitor: the iGPU moves under "Shared with system RAM" beside the two R9700 rows.  --------- Co-authored-by: Daniel Han <[email protected]> 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.
On an AMD Strix Halo APU (Radeon 8060S) with a 96 GB carve-out, Settings > System showed "1.16 GiB / 95.8 GiB VRAM + 12.1 GiB shared" (cut off in the tile), "1.16 GiB used of 107.9 GiB" in the device row and "1.16 GiB / 107.9 GiB" in the floating monitor. The backend reports the driver pool and marks 12.1 GiB as host-backed. The frontend added that into the VRAM total even though it comes out of the same RAM the RAM card shows, so the same memory was counted twice. The GGUF row also printed a bare "VULKAN" next to a ROCm system and called llama.cpp's Vulkan budget "Shared system RAM".
Tests: Windows 11, Ryzen 9 9950X, no Strix Halo, so the reading is pinned in
tests/strix-halo-memory-display.test.ts(red on main, green here). Typecheck is clean. Two backend tests intest_system_poll_no_cuda_context.pyfail identically on main at f9c20c0 (they read this host); unrelated.Before / after (Studio built from merge base and from this branch)
/api/system'sgpublock stubbed with the Strix Halo reading above (96 GB VGM, 12.1 GiB host-backed, 11.3 GiB RAM free); everything else is the real server. The VRAM tile goes from "1.16 GiB / 95.8 GiB VRAM + 12.1 GiB shared, 106.8 GiB free" to "1.16 GiB / 95.8 GiB, 94.7 GiB free, Can also borrow up to 11.3 GiB of system RAM", and the GGUF row reads "llama.cpp CPU build".Floating monitor: "1.16 GiB / 107.9 GiB" becomes "1.16 GiB / 95.8 GiB".
