Repository navigation
Studio: show what a Vulkan iGPU's shared pool holds instead of an Unknown VRAM tile - #11306
Closed
LeoBorcherding wants to merge 1 commit into
Closed
LeoBorcherding wants to merge 1 commit into
LeoBorcherding wants to merge 1 commit into
Conversation
… used unknown get_vulkan_inference_gpu_info zeroed an integrated GPU's total so the fit budget stays the capped free figure, and that also dropped the used figure, so the Live monitor's VRAM tile read Unknown on every APU. ggml's budget already reports what the rest of the machine holds as total minus free; publish that, with the utilization taken against the pool. The budget and free figures are unchanged. Measured on a Windows 11 Strix Halo (Radeon 8060S) via the AMD DevLab runner: the tile went from Unknown to a figure with this change.
Member
|
Confirmed this hits hardware.py where the shared-memory branch zeroes the total, so vram_used_gb and vram_utilization_pct come back None on every Vulkan iGPU, and the budget and free figures stay untouched here. Will get this reviewed. |
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 any machine where llama.cpp runs on Vulkan and the GPU is an integrated one (Strix Halo, Strix Point, Radeon 780M, Intel Iris Xe), the Live monitor's VRAM tile reads
Unknown / 0 GiB VRAM + N GiB shared, the detail line readsUnknown, and the device row carries an "Unknown VRAM" badge. Nothing failed to probe.get_vulkan_inference_gpu_infozeroes an iGPU's total on purpose, because that total is shared RAM and not a VRAM ceiling, and the used figure was derived from that zeroed total, so it came outNoneand the frontend hides usage when it isNone. This PR derives it from what ggml actually reports.What changes: the iGPU row now carries
vram_used_gb(ggml's pool total minus its free figure, which is what the driver says the rest of the machine holds in the pool) andvram_utilization_pct(that used figure against the pool, so it stays under 100%). The budget (memory_total_gb) and free figures are untouched, so the fit and the model picker do not move. Discrete Vulkan cards and the torch (CUDA / ROCm) path are not touched at all. No frontend change: the tile already renders a number whenevervram_used_gbis finite.One caveat on what the number means. It is the driver's memory budget as ggml sees it, not a live meter. On the Windows AMD driver (32.0.31041.3013) the same 5.58 GiB came back on three Strix Halo boxes across two runs with different amounts of RAM in use, so there it reads as the driver's own reservation. RADV on Linux reported 1.79 GiB on the same hardware. It is the figure llama.cpp itself budgets against, and it beats "Unknown", but it is not system RAM usage.
Before and after
Radeon 8060S (Strix Halo), Windows 11 Pro 26200, AMD driver 32.0.31041.3013, Vulkan prebuilt b11030,
install.ps1 --local --no-torch, real web Studio, Settings, System tab.14b40739a084037d7/api/system, the inference row the tile renders. Before:memory_total_gb 105.06, vram_used_gb null, vram_free_gb 105.06, vram_utilization_pct null, shared_memory true. After:vram_used_gb 5.58, vram_utilization_pct 5.0, the rest identical. The raw probe on both runs: pool 114326 MiB, free 108610 MiB.Tests
studio/backend/tests/test_gpu_selection.py:test_vulkan_igpu_info_uses_capped_free_budgetnow expects the used figure (20.0 GiB from a 32768 / 12288 MiB row) instead ofNone, andtest_vulkan_igpu_info_reports_what_the_pool_holdsis new, with the Strix Halo numbers above plus a row from an older probe that carries no total, which still reportsNone. Both pass at84037d7. The refactor guard passes.Test matrix
The org's hosted runners have no AMD GPU. The AMD runner we do have is the Strix Halo DevLab pool, and this time it is the hardware the change is about: its boxes run the Vulkan path on both Windows and Linux, so the runner rows below are measurements, not claims. Every row is a fresh
--localinstall, a real web Studio, a login, and a Playwright screenshot of the System tab. The Windows boxes are identical EVO-X2 units from the pool; before and after did not necessarily land on the same unit.--no-torch14b40739a0: tile Unknown. After at84037d7: 5.58 GiB / 0 GiB VRAM + 105.1 GiB shared, 105.1 GiB free (screenshots above)14b40739a0: 7.70 GiB / 63.8 GiB VRAM + 35.9 GiB shared. After at84037d7: 0.23 GiB / 63.8 GiB VRAM + 35.9 GiB shared, same torch path, only the load differs. Its Vulkan inventory row went from used null to 5.58--no-torch84037d7: 1.79 GiB / 0 GiB VRAM + 92.4 GiB shared, 92.4 GiB free, device row 2% VRAM. Raw probe: pool 97504 MiB, free 95671 MiBused_mib = Nonebranch fed it, but nobody watched the Unknown tile theretest_discrete_vulkan_inference_gpu_infoat84037d7Solid: before and after on Windows Strix Halo, after on Linux Strix Halo, and the unit tests. Biggest gap: no non-AMD iGPU has been seen, and that is the shape the report came from.