Skip to content

[Bug] AMD: Strix Halo VRAM shows carve-out plus shared RAM instead of the carve-out - #17509

Merged
danielhanchen merged 8 commits into
unslothai:mainfrom
LeoBorcherding:studio/strix-halo-memory-display
Nov 14, 2026
Merged

danielhanchen merged 8 commits into
unslothai:mainfrom
LeoBorcherding:studio/strix-halo-memory-display

Conversation

@LeoBorcherding

@LeoBorcherding LeoBorcherding commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

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".

  • When the carve-out is at least as large as the shared part, VRAM reads as the carve-out alone (tile, device row, floating monitor), with free and percent against it. A separate line says how much system RAM the GPU can still borrow. Small-carve-out APUs keep the current pool view.
  • The GGUF row reads "llama.cpp VULKAN build" and "Estimated available: N".
  • Display only; model-fit budgets and the backend are unchanged. 25 locales updated.

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 in test_system_poll_no_cuda_context.py fail identically on main at f9c20c0 (they read this host); unrelated.

Before / after (Studio built from merge base and from this branch)

/api/system's gpu block 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".
17509 settings

Floating monitor: "1.16 GiB / 107.9 GiB" becomes "1.16 GiB / 95.8 GiB".
17509 floating

… 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.
@danielhanchen danielhanchen self-assigned this Nov 13, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T16:01:14.643606Z dc35167 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: dc35167056

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Nov 13, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Nov 13, 2026
@danielhanchen
danielhanchen merged commit 49870bf into unslothai:main Nov 14, 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.

![17523](https://raw.githubusercontent.com/LeoBorcherding/unsloth/213eeb5869056aa16d7170b41f6949f57ee3517a/npu-phases/phase-5/17508-17523-system-live-monitor.png)

Before | after: the floating monitor moves the iGPU under "Shared with
system RAM" next to the two R9700s. The NPU row is unslothai#17508.

![17523](https://raw.githubusercontent.com/LeoBorcherding/unsloth/213eeb5869056aa16d7170b41f6949f57ee3517a/npu-phases/phase-5/17508-17523-floating-monitor.png)

## 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".
![17523
settings](https://raw.githubusercontent.com/danielhanchen/unsloth-staging-2/pr-media/pr/17523/pr17523_pair_01_q-68b0a7e12e33.png)

Floating monitor: the iGPU moves under "Shared with system RAM" beside
the two R9700 rows.
![17523
floating](https://raw.githubusercontent.com/danielhanchen/unsloth-staging-2/pr-media/pr/17523/pr17523_pair_00_q-0b9434df5882.png)

---------

Co-authored-by: Daniel Han <[email protected]>
Co-authored-by: Daniel Han <[email protected]>
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