Repository navigation
Conversation
…GPU hint caps a process, and an unreported memory mode is unknown On the M5 (2026-11-10, resources/board) the VRAM row read 0 available while the RAM row read 3,165 MiB of the same unified memory: the VRAM ceiling was min(pool, Metal's working-set hint), netted against the whole system's usage, CPU-only processes included. A 4,096,000-byte learning step waited on it (training.admission.waiting) and every VRAM lease beyond a floor did. 1. Unified memory is one pool: both views carry the pool's ceiling and one measured usage. 2. The working-set hint bounds ONE GPU process (CapacitySource::per_process_cap, ResourceDaemon::per_process_cap): the serving plan sizes the engine under it as well as under what the pool has left; it never shrinks the pool. 3. Dedicated VRAM is unchanged (GpuCapacitySource, no per-process cap). 4. The memory mode is the backend's report: GpuMonitor/GpuDeviceProbe::memory_mode return Option, None is unknown. Metal reports hasUnifiedMemory, NVIDIA its dedicated framebuffer. An unreported mode leaves VRAM ungoverned and named (resources.memory_mode_unknown), never a guessed Discrete over what may be one pool (an AMD APU, an ARM iGPU). Tests: both rows of the M5's unified pool offer 3,165 MiB; the hint caps a GPU process, not the pool; the serving plan reads the pool and stays under the cap (simulated 32 GiB host, labelled). Card 13c81ced: the first resource-kind adapter in the shared-resources shape. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
marked this pull request as draft
November 10, 2026 15:00
Contributor
Author
|
Do not merge: this broke serving on the M5, and the live node is reverted (99919af). Deployed as 75f1ba7 at 14:33Z.
|
Contributor
Author
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.
Serves learning and every machine kind. It's the first resource-kind adapter of card 13c81ced (design: #5912). Joel: Windows, CUDA, and dedicated versus shared memory all use the same adaptation.
The defect
On the M5 (2026-11-10,
resources/board), the VRAM row read 0 available while the RAM row read 3,165 MiB of the same unified memory.min(pool, Metal's working-set hint), netted against the whole system's usage, including CPU-only processes.training.admission.waiting), and so did every VRAM lease beyond a standing floor.The change, (1)–(4) as agreed with Codex
CapacitySource::per_process_capandResourceDaemon::per_process_cap. The serving plan sizes the engine under the hint as well as under what the pool has left. It never shrinks the pool.GpuCapacitySourcehas no per-process cap.GpuMonitor::memory_modeandGpuDeviceProbe::memory_modereturnOption, andNonemeans unknown.hasUnifiedMemory; NVIDIA reports its dedicated framebuffer.resources.memory_mode_unknown. It's never a guessedDiscrete.Measured
both_rows_of_a_unified_pool_offer_the_same_free_memory: the M5's numbers.the_gpu_hint_caps_a_gpu_process_never_the_pool.the_engine_plan_reads_the_pool_and_stays_under_its_gpu_process_cap: a simulated 32 GiB host, labelled as a simulation.resources/boardreads VRAM and RAM at 57,344 MiB capacity and 32,299 MiB available each. Before, VRAM read 0. Nomemory_mode_unknownfired, since Metal reports its mode.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo