Skip to content

Models page, model files on disk, and Will it fit? (0.9.10) - #149

Merged
tokenmeter1 merged 3 commits into
mainfrom
claude/project-thread-81rgve
Dec 1, 2026
Merged

tokenmeter1 merged 3 commits into
mainfrom
claude/project-thread-81rgve

Conversation

@jacques-pr

Copy link
Copy Markdown
Collaborator

What changes

Batch F of the third review, second part: N2 and N5. Version 0.9.10.

Models is a new page (after Performance in the sidebar, Mac and Linux):

  • Models: one row for each model that answered a request in the range, over every machine that shares its history: requests, typical writing speed and first token, cache, tokens per watt-hour, the share that didn't finish, when it last ran and on which machines.
  • Will it fit? Pick a model and optionally a context size; each machine of the mesh answers Fits, Tight or Won't fit, with the figure and what it rests on: measured here (the most memory its server reported there), worked out (from another machine or another context size) or rough estimate (the file's size plus a tenth, where it never ran). A card with its own memory is what the model is held against. Nothing is loaded to find out.
  • Model files: for each machine, what Ollama, LM Studio, the Hugging Face cache and llama.cpp keep on disk, with size, when it was downloaded and when a request last named it. Files with no request in 30 days are amber and added up in the card's corner. Folders are listed and sizes read; no model file is opened, and nothing is ever deleted.

Models

How it is built

  • App/ModelFiles.swift scans the managers' folders (following OLLAMA_MODELS, HF_HOME, HF_HUB_CACHE, LLAMA_CACHE), off the main line, kept ten minutes.
  • App/ModelsPage.swift: the rows, the footprints (noted every half minute from each server's own report, kept as a note in the history database) and the fit.
  • Linux/ModelRoutes.swift: GET /models, GET /models/fit, and GET /mesh/models for members of the mesh (each machine reports its own files and footprints). Not among the pages a read-only viewer may ask for.
  • KDE ModelsPage.qml, Mac ModelsView.swift, the sidebar and the command palette.

Also in here: the Reliability checks from #148 rewritten in steps the Mac's compiler can type-check. #148 merged just before that fix was pushed, so the Mac test job fails on main until this lands.

Checks

  • scripts/check.sh: 32 of 32 passed in 34 min 17 s (Tokenmeter 0.9.10, x86_64): 6,030 unit checks, the build, every service test including the new Linux/tests/models.sh, and the KDE pages standing still.
  • The KDE page drawn with sample data (picture above).
  • Not compiled here: the Mac page (App/ModelsView.swift); the compile job on this pull request does that. Not tried against real model folders or a real mesh of two machines.

Generated by Claude Code

claude and others added 3 commits December 1, 2026 04:31
Co-Authored-By: tokenmeter1 <358883051+tokenmeter1@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EE8zW9xXDFNPa2ueA83i2x
A page about the models themselves: one row for each model that answered a
request, over every machine that shares its history; "Will it fit?", whether a
model would fit on each machine of the mesh at a context size, from the memory
its server was seen to hold; and the model files Ollama, LM Studio, the Hugging
Face cache and llama.cpp keep on each machine, with the ones no request has
named in 30 days marked and added up.

- App/ModelFiles.swift: lists the managers' folders and reads sizes (Ollama's
  from its manifests); no model file is opened. A scan is kept ten minutes.
- App/ModelsPage.swift: the rows, the footprints (the most memory a server
  reported for a model, engine and context, kept in the history database) and
  the fit: measured where it ran, worked out from another machine or context,
  a rough estimate from the file's size where it never ran.
- Linux/ModelRoutes.swift: GET /models, GET /models/fit and, for members of
  the mesh, GET /mesh/models.
- KDE ModelsPage.qml and the Mac's ModelsView, a sidebar row on both, and the
  command palette.
- Linux/tests/models.sh, unit checks, docs. Version 0.9.10.

Also: the Reliability checks are written in steps the Mac's compiler can
follow (its test job timed out type-checking them on main).

Co-Authored-By: tokenmeter1 <358883051+tokenmeter1@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EE8zW9xXDFNPa2ueA83i2x
@tokenmeter1
tokenmeter1 merged commit 48d1ec0 into main Dec 1, 2026
5 of 6 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.

3 participants