Repository navigation
feat(models): report per-model disk usage in API and WebUI - #12551
Merged
Merged
Conversation
New admin endpoint GET /api/models/storage reports disk usage of the installed models: each model's files and sizes, files shared between models counted once, and configured files that are missing from disk. The models WebUI page shows a usage summary, each model's file table, and the full file list with per-file status. Assisted-by: Claude Code:claude-fable-5 Signed-off-by: Plamen K. Kosseff <p.kosseff@gmail.com>
mudler
approved these changes
Oct 7, 2026
2 tasks
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.
Description
A new admin endpoint,
GET /api/models/storage, reporting the on-disk footprint of the installed model configurations:The WebUI (Installed models view) shows:
Design notes
listModelFilesβ the same resolution the delete endpoint trusts β so a model's reported size is what deleting it would consider, gallery sidecar included. An absent sidecar on a hand-written config is normal and not reported as missing.errorsfield instead of failing the index.Testing
core/gallery/storage_test.go: sidecar-inclusive attribution, shared-file dedup, missing references per model and per file, and broken-config resilience.getting-started/models.md,features/api-discovery.md); swagger regenerated.Notes for Reviewers
Signed commits