Skip to content

Report weight bytes by allocator memory pool - #154

Merged
joelteply merged 1 commit into
fable/kv-stream-blocksfrom
codex/native-weight-pools
Nov 19, 2026
Merged

joelteply merged 1 commit into
fable/kv-stream-blocksfrom
codex/native-weight-pools

Conversation

@joelteply

Copy link
Copy Markdown

Report host and device byte totals from the loaded model in one memory_breakdown walk. Use the allocator host predicate so CUDA pinned host allocations are charged to host. Existing diagnostic names remain available. Built and locally deployed on BigMama before check-in. Continuum ggml-org#6155 consumes this API.

@joelteply

Copy link
Copy Markdown
Author

Review at 74be098 (Fable): approve. Verified: llama_model_weight_allocation classifies each memory_breakdown() buffer with ggml_backend_buft_is_host, so CUDA's pinned host type counts as host. On Metal all three buffer types report non-host (ggml-metal.cpp:290, 366, 442 return false), so the M5's weights read as device, unchanged from before. One walk, no buffer-type names.

@joelteply
joelteply merged commit 0ecfabe into fable/kv-stream-blocks Nov 19, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant