Repository navigation
cli: tensorfold models lists what fits this machine, with a rough one-stream speed - #3483
Merged
Merged
Conversation
ashhart
added a commit
that referenced
this pull request
Nov 15, 2026
ashhart
added a commit
that referenced
this pull request
Nov 16, 2026
ashhart
force-pushed
the
lead/models-fit
branch
from
November 16, 2026 02:05
83e0035 to
7b2534b
Compare
ashhart
added a commit
that referenced
this pull request
Nov 17, 2026
ashhart
force-pushed
the
lead/models-fit
branch
from
November 17, 2026 01:09
106a4ed to
641cbce
Compare
ashhart
added a commit
that referenced
this pull request
Nov 18, 2026
ashhart
force-pushed
the
lead/models-fit
branch
from
November 18, 2026 15:06
724a3ae to
81eb6e8
Compare
ashhart
added a commit
that referenced
this pull request
Nov 19, 2026
-- 2.54.0 (Apple Git-157) -- 2.43.0
ashhart
force-pushed
the
lead/models-fit
branch
from
November 19, 2026 15:58
81eb6e8 to
dc48f4c
Compare
…-stream speed `models` now reads the machine (chip, memory, GPU limit and memory bandwidth) and lists the chat checkpoints from README's model table that fit, largest first. Each line gives the memory the engine keeps (resident weights, any drafter and the 2 GiB runtime margin `info` reports) and a one-stream decode speed with drafts as shipped: measured on this chip, or estimated from the nearest measurement on the same backend, scaled by memory bandwidth. Under it is the command that installs it. `--all` adds what needs more memory, two machines or the other backend. `--json` keeps schema 1's cached checkpoints and adds `machine` and `catalog`. The cached checkpoints still print last. The macOS GPU-limit rule and the chip bandwidth table move from cluster/node.zig to platform/machine.zig, which cluster now calls. The table gains the M5 family and the base and Pro chips, and the smaller-GPU Max configurations get their narrower buses.
-- 2.54.0 (Apple Git-157) -- 2.43.0
…b's quality suite tools/quality_suite.py runs the suite's 228 items (web/tensorfold_web/quality.py, digest d21a62442423) against a served model: one request at a time, greedy, thinking off when /v1/models says the off request works, scored by the Bench's own rules. It writes a receipt with every item's verdict. docs/receipts/quality-suite holds one receipt per checkpoint measured, each with its revision checked against the Hub. The catalog carries the passed and graded counts, and a host test checks each against its receipt. `tensorfold models` prints the share in a quality column, with `-` for checkpoints not rated yet, and `--json` gives each entry's quality object or null.
…s 192 The same revision (d9d758fb) on CUDA and on Metal: three GSM8K items differ where the backends' rounding takes a long greedy calculation down different tokens. The receipts README says the catalog cites one receipt per checkpoint and how close the backends come.
The copy served is revision f84b054c, whose config.json and five safetensors shards hash the same as 81169a9b, the revision the README pins; the catalog cites the receipt.
ashhart
force-pushed
the
lead/models-fit
branch
from
November 19, 2026 18:38
dc48f4c to
f1f9e94
Compare
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.
tensorfold modelsused to list only the checkpoints already in the Hugging Face cache. Someone new to TensorFold had to read the README's model table, work out which rows their machine could hold, and guess how fast and how good each would be. Nowtensorfold modelsanswers that directly.What it does:
zig/src/platform/machine.zigreads the machine: chip, memory and GPU core count on a Mac (sysctl, ioreg), and nvidia-smi's first GPU elsewhere. A GB10, or any GPU nvidia-smi reports without its own memory, gets the same share of RAM that macOS gives its GPU by default. The macOS GPU-limit rule and the chip bandwidth table move here fromcluster/node.zig, which now points at them. The table gains the M5 family (Apple's published 153, 307, 460/614 and 1,200 GB/s) and the base and Pro chips, and the smaller-GPU M3, M4 and M5 Max configurations get their narrower buses.zig/src/cli/catalog.zigholds the README's chat checkpoints: 24 entries, each with its Hub safetensors size (drafter included), a resident figure where the README documents one (Flash Next 4-bit's 73.3 GiB, Qwen3.6 NVFP4's 20.9 GiB, Flint's 21.4 GiB), the backends and machine count its row names, every one-stream decode speed our docs record with its source, and its quality score with the receipt. Speech, OCR, decisions and checkpoints that need a conversion step (Gemma 4 12B, Step-5-Preview) are left out.tensorfold infoprints it: resident bytes plus the 2 GiB runtime margin, against the GPU limit. With less than 4 GiB to spare it says there is little room for context. A Mac that could hold it after raisingiogpu.wired_limit_mb(keeping 8 GiB for macOS) is told so, and the serve refusal names the value. Flint is marked untested on M1-M4, as its row says.~. Before M5, Gemma 4 31B's drafters don't run, so its estimate scales the plain number. Models with no recorded number say so instead of guessing.tools/quality_suite.pyruns the suite's 228 items (web/tensorfold_web/quality.py, digestd21a62442423) against a served model, one request at a time, greedy, with thinking off when/v1/modelssays the off request works, and scores them with the Bench's own rules. Each receipt sits indocs/receipts/quality-suitewith every item's verdict. A host test re-reads each receipt and checks its digest, its checkpoint and the passed and graded counts against the catalog. A checkpoint not rated yet shows-.--alladds what needs more memory, two machines or the other backend.--jsonkeeps schema 1'smodelsarray unchanged and addsmachineandcatalog, each entry with itsqualityobject or null. The cached checkpoints still print last.Quality scores, greedy with thinking off (100 GSM8K problems, 100 MMLU questions, 20 instruction checks, 8 long-context items):
tensorfold pullfetches. The Qwen3.6 copy is f84b054c, whose config and five shard hashes equal 81169a9b, the revision the README pins.-until their jobs run and the receipts are added.Issue: none. This is a CLI listing and a benchmark tool with no inference, kernel or arithmetic change, so it needs no gate.
Checks on 7b2534b, rebased onto main b4f1bf2 (the only conflict was this PR's CHANGELOG line, kept beside main's new ones). The head, 106a4ed, only adds the Qwen3.6 receipt and its catalog line; the CLI tests pass on it too:
zig build test-cli test-machine-host: 49 pass, 15 skip (existing family checks). New since the first commit: the receipt cross-check incatalog.zigand the quality column and JSON assertions inmodels.zig.python3 -m unittest discover -s tools/tests -p 'test_bench_quality_suite.py': 2 pass. A stand-in server shows right answers scoring 100/100 by the Bench's rules and wrong ones 0, with the off field sent only when the switch works.tools/quality_suite.pyagainst real servers: the receipts above. Lightning MLX 4-bit ran on this M5 Max with this PR's build; the rest ran as box jobs serving main's d6c4cce.zig build native -Dcpu=apple_m1, thentensorfold models,--all,--jsonand a bad flag (exit 2 with usage) on an M5 Max. The output above ran with an emptyHF_HUB_CACHE.atc overlap --jsonafter the rebase (base b4f1bf2): 6 open PRs conflict, each on its CHANGELOG line only (qwen27 metal: M5 takes TF_QWEN27_METAL_KV_PAGES; a paged prompt chunk finds its two pages once #3180, EXL3 Flash Next: draft lane guard for offloaded experts (8/8) #1446, glm cuda: each decode window width keeps its faster expert form #3249, fix(cuda): allocate Qwen3.5 scratch at load #1879, Flash Next on CUDA: TF_FLASHNEXT_MTP_WEIGHTS selects how the drafter keeps its BF16 linears #3218, CUDA (GB10): a lending-daemon source for the display carveout, opt-in #2762); 4 clean; 109 unknown at ATC's limits.zig fmt --check build.zig zig,git diff --check: clean.docs/receipts/quality-suite.Not run:
tensorfold modelson a GB10 or other CUDA host (host tests cover the nvidia-smi reader with GB10 and RTX 3090 rows), and Windows beyond CI's host suite (zig-windows passed on the previous head).