Repository navigation
Models page, model files on disk, and Will it fit? (0.9.10) - #149
Merged
Merged
Conversation
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
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.
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):
How it is built
App/ModelFiles.swiftscans the managers' folders (followingOLLAMA_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, andGET /mesh/modelsfor members of the mesh (each machine reports its own files and footprints). Not among the pages a read-only viewer may ask for.ModelsPage.qml, MacModelsView.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
testjob 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 newLinux/tests/models.sh, and the KDE pages standing still.App/ModelsView.swift); thecompilejob on this pull request does that. Not tried against real model folders or a real mesh of two machines.Generated by Claude Code