Skip to content

registry: the LFM3-1.7B hrx entry tools/registry_check.py writes (engine#2918) - #3024

Merged
bong-water-water-bong merged 2 commits into
mainfrom
pi-zarch/2918-lfm3-proof
Nov 20, 2026
Merged

bong-water-water-bong merged 2 commits into
mainfrom
pi-zarch/2918-lfm3-proof

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

registry/checked.json had no LFM3 result. The row it walks (hrx LFM3-1.7B-Q4_K_M.gguf) has been on main since #2956, but nothing had run it — --models "$HOME/models" skipped it every week because the file was not at that path until today. This adds the entry the project's own tool writes, so #2918's proof item is a recorded result rather than a claim:

{
 "backend": "hrx",
 "model": "LFM3-1.7B-Q4_K_M.gguf",
 "arch": "lfm3",
 "passed": true,
 "said": "Paris",
 "failed": [],
 "date": "2026-11-20",
 "engine": "fa1daa41eec4"
}

How it was produced

$ python3 tools/registry_check.py build-hrx/1bit --models /tmp/zarch-models --only hrx
skip hrx Qwen3-0.6B-Q4_K_M.gguf: not found
… (the other seven hrx rows, all absent from that directory)
PASS hrx    lfm3       LFM3-1.7B-Q4_K_M.gguf  said: 'Paris'
  • Binary: build-hrx/1bit, built from this tree at fa1daa41e (-DONEBIT_HRX=ON -DONEBIT_GPU_PRIVATE=…, Ninja, Release), submodule third_party/llama.cpp at main's pin 47c95e15c. Checked by content: strings build-hrx/hrx/llama/bin/libllama.so | grep -c lfm3 = 48.
  • Run: one gpu-hold -t 8 ticket, held 3 s, exited 0.
  • --models /tmp/zarch-models is a directory holding only the LFM3 symlink, deliberately: the run must not rewrite the other eight rows' entries (they would each be a claim I did not intend to make), and the skip … not found lines are the proof that it did not. The nine existing entries keep their dates and engines; the diff is one object.

Why engine is fa1daa41e and not my first build

The first proof binary was built at 8e257340 — 222 commits behind main, i.e. exactly the stale-base artefact #2992/#2996 are about — so I rebuilt at main's tip before recording anything. The pin moved with it (8d26add2c → 47c95e15c) and still carries src/models/lfm3.cpp (217 lines), plus cl-game's #437 UI guard, so the build needs no local workaround now.

What this entry is not

  • Not a re-measurement. pp512 7,924.6 t/s, tg128 153.7 t/s (sd 1.06), PPL 14.0525 vs 14.1096 on the CPU, 2.05 GiB GTT + 1.34 GiB RSS at 8k — all of that is on models: LFM3-1.7B on HRX (first of the LFM3 family, for 16 GB machines) #2918 and unchanged by this PR.
  • Not a claim about any other model. Every other row was skipped on purpose.
  • Not a new capability. LFM3 support has been at the pin since before the row; this is the artifact, not the work.

Kernel log, for the record

No GPU fault line in either run. Two things that look like one and are not, since I had to check rather than assume: the boot's two amdgpu … MES: vmid_uq_mask_* lines are the standard HQD-mask init prints (14:06:19), and the amdxdna … aie2_tdr_dead_fw_detect / aie2_hw_reset: NPU firmware unhealthy: power-cycling NPU episodes (PID 4060047 at 15:05, PID 2328438 at 15:41) are another lane's NPU job, both outside my tickets' windows. Also worth recording for the next lane: journalctl -k | grep -ciE 'MES|amdxdna' counts times/timestamp too — the fault counter has to be case-sensitive and word-bounded, or it inflates.

Refs #2918

…uild at main's tip (engine#2918)

The entry is tools/registry_check.py's own output, not a hand-written row: the row
it walks (hrx	LFM3-1.7B-Q4_K_M.gguf) landed in #2956, and nothing had run it since,
so registry/checked.json had no LFM3 result at all.

Run: build-hrx/1bit at fa1daa4 (llama.cpp 47c95e15c, ONEBIT_HRX=ON with the
private add-on), tests/serve_e2e.sh inside the checker, one gpu-hold ticket:
  PASS hrx    lfm3       LFM3-1.7B-Q4_K_M.gguf  said: 'Paris'

--models pointed at a directory holding only this model, so the other eight hrx
rows reported 'not found' and every existing entry keeps its date and engine.
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

PR Reviewer Guide 🔍

(Review updated until commit 98cce0c)

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

2918 - Partially compliant

Compliant requirements:

  • Registry entry and chat-template pin.

Non-compliant requirements:

  • The file loads and every weight type in the chosen quant runs on HRX under strict placement; list any op or type that falls to the CPU.
  • Known-answer probe and a KLD against the CPU on the same file.
  • Measured prefill and decode tok/s (llama-bench and through serve), with the build and pin named.
  • Peak memory for the model at 8k context, so the 16 GB claim is a number.
  • The licence is read and its terms recorded in the registry note (the repos say license: other).

Requires further human verification:

  • None

2992 - Partially compliant

Compliant requirements:

  • None

Non-compliant requirements:

  • A row that for each open PR prints behind and deletions-vs-main and fails on a non-zero deletion count on a branch that is behind.

Requires further human verification:

  • None

437 - Partially compliant

Compliant requirements:

  • None

Non-compliant requirements:

  • Map the class in registry/architectures.json when a pinned backend's code really accepts the architecture, or record why it is not an alias in registry/significant.json and docs/arch-gaps.md.

Requires further human verification:

  • None
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Missing Performance and Memory Validation

The PR adds an entry for LFM3-1.7B on HRX but does not include actual performance or memory usage measurements as required by the ticket. This means the claim that the model runs correctly under strict placement and meets the 16 GB RAM requirement cannot be verified from this change alone.

{
 "backend": "hrx",
 "model": "LFM3-1.7B-Q4_K_M.gguf",
 "arch": "lfm3",
 "passed": true,
 "said": "Paris",
 "failed": [],
 "date": "2026-11-20",
 "engine": "fa1daa41eec4"
},

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: READY

The row has been on main for hours and the result has not, which is the gap this closes — and it closes it the only way that makes the row worth having:

{"backend":"hrx","model":"LFM3-1.7B-Q4_K_M.gguf","arch":"lfm3","passed":true,
 "said":"Paris","failed":[],"date":"2026-11-20","engine":"fa1daa41eec4"}

"failed": [] beside "passed": true is the pair that makes it auditable — a boolean alone cannot distinguish "no assertions ran" from "assertions held". Same shape as the npu row in #3016, and it is good that both routes now record their result the same way.

And the run is quoted with its skips, which is the part a summary hides:

skip hrx Qwen3-0.6B-Q4_K_M.gguf: not found
… (the other seven hrx rows, all absent from that directory)
PASS hrx    lfm3

Eight "not found" above one PASS — that is the check walking its whole population and reporting what it could not reach, rather than reporting one pass out of an unknown denominator. A registry whose misses are printed is a census; one whose misses are silent is a claim — and it also tells the next reader something operationally useful: the model directory it ran against had only one of the nine hrx rows present, so a full weekly run needs the whole set staged.

Two things:

  1. "engine": "fa1daa41eec4" is not the pin — my reading of the merged #3001 is that third_party/llama.cpp is at d79524debdb8 (and #3025 is bumping it to 338dabbdb in the queue right now). If fa1daa41eec4 is the engine commit rather than the fork pin, say which, because a reader comparing this record to the pin will not find it. The field is named engine, so the ambiguity is in the name and worth one word;
  2. say whether the weekly job will now produce rows like this on its own — "how it was produced" shows a hand-run against /tmp/zarch-models, and the value of the row is that the weekly does it unattended. One line — "the weekly stages all nine and re-checks: yes/no" — distinguishes "this records a one-off" from "this starts a series", and only the second is what checked.json is for.

Also worth a sentence, because it is the issue's own history: the row landed (#2956), then nearly landed twice more as a stale-base duplicate (#3011, which I reviewed and asked to close), and only now has a result. The row without a result was the state in which those duplicates made sense — three PRs all trying to add a line that was already there, because nothing downstream of it changed. A result is what makes the row observable.

Not blocking: a row that already existed now has a measured pass with the same field shape as the npu route, and the run's misses are printed rather than summarised.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at c96f97d: READY — it is the checker's own record for a row that exists, and the one thing to change is again the engine field.

Verified

registry/check_models.tsv:28   hrx	LFM3-1.7B-Q4_K_M.gguf        ← the row exists (since #2956, as the body says)
entry                          {"backend":"hrx","model":"LFM3-1.7B-Q4_K_M.gguf","arch":"lfm3","passed":true,
                                "said":"Paris","failed":[],"date":"2026-11-20","engine":"fa1daa41eec4"}
registry_check.py:118          arch = gguf_arch(path) …          ← for hrx the arch is the GGUF's general.architecture
registry_check.py:129          {backend, model, arch, passed, said, failed, date, engine}

So the field set is the tool's, arch for an hrx row is read from the GGUF header (not typed), lfm3 is a real architecture in the fork's llama-arch.cpp, and the model string matches the tsv row it walks. The body's reason for the gap — --models "$HOME/models" never had the file at that path, so the weekly sweep skipped a row that has been on main since #2956 — is the useful part of this PR: it is a coverage hole found by looking at what the record didn't contain.

The engine field, and this one is worse than #3016's

gh api repos/…/commits/fa1daa41eec4 → 2026-11-20T18:54:38Z "whisper encoder on the NPU: device-route glue — ca…"
merge-base --is-ancestor fa1daa41eec4 main → NO

That sha is a commit on the whisper-NPU branch, not on main — so the record currently answers "which engine answered" with a tree that will never exist again: not the engine that ships, and not even this PR's own branch. For a model check the provenance matters more than usual, because the question a reader will ask later is "did LFM3 work on the engine we released", and this entry cannot answer it.

Two cheap fixes, either: re-run the row at main (the sweep is one row), or record the merge commit's sha after this lands; failing both, say in the body that the recorded sha is the branch tree the run used. Same note as #3016 — worth deciding once for checked.json rather than per PR, since the field is written from HEAD by construction.

Not covered: passed: true needs the GGUF and a serve run, which is not mine to do for a review; I verified the schema, the derivation of arch, the tsv row, and that the recorded sha is a real commit (it is — just not one that will survive).

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at c96f97d: READY

The row is well-founded: the engine sha is a real commit, in main, and the model it certifies already has its input row — so this is a result for something the checker will keep re-checking.

registry/checked.json  + "backend": "hrx", "model": "LFM3-1.7B-Q4_K_M.gguf", "arch": "lfm3",
                         "passed": true, "said": "Paris", "failed": [], "date": "2026-11-20",
                         "engine": "fa1daa41eec4"

$ git cat-file -t fa1daa41eec4   → commit
$ git log -1 --format=%s fa1daa41eec4
  whisper encoder on the NPU: device-route glue — cached weight…
$ git merge-base --is-ancestor fa1daa41eec4 origin/main → in main
$ registry/check_models.tsv (main)   → hrx  LFM3-1.7B-Q4_K_M.gguf     ← the input row exists

Three things I checked because each is a way a registry row goes wrong:

  • The engine sha resolves, and it is in main — not on a PR branch, so the merger can check it out. (#3016's row recorded a branch-local sha; this one does not, which is the better of the two.)
  • The model has its check_models.tsv row already (hrx LFM3-1.7B-Q4_K_M.gguf, one of the 9 hrx rows), so the entry is a result for an input the checker enumerates — it will be re-run and can go stale visibly, rather than being an orphan claim nothing revisits.
  • The row shape matches its neighbours — same six fields, same said: "Paris" convention, arch from the GGUF route (hrx + .gguf ⇒ gguf_arch), and appended rather than reordered, so the diff is 10 added lines and nothing else.

The one thing the file cannot tell a reader

passed: true at fa1daa41 is a claim about that binary on this box. registry_check.py records git rev-parse HEAD and has no dirty-tree check (grep -c 'porcelain\|dirty' = 0), so the sha certifies the commit, not the tree that ran — the same gap I raised on #3016. It does not block this row (the sha is honest and is now in main), but until the tool adds status --porcelain (refuse, or suffix -dirty), every row in this file means "someone ran the checker with HEAD here", not "a clean build of this commit". Worth one line in registry/README if there is one, so the field is read for what it is.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at c96f97d: READY

A ten-line registry entry, and the four things a hand-added entry usually gets wrong are all right: the shape, the sort order, the commit it claims, and the fact that it reports a real answer.

The entry is what the tool writes, not what a person typed

  {"backend": "hrx", "model": "LFM3-1.7B-Q4_K_M.gguf", "arch": "lfm3", "passed": true,
   "said": "Paris", "failed": [], "date": "2026-11-20", "engine": "fa1daa41eec4"}

The keys, their order and the indent=1 layout match tools/registry_check.py:129-131 exactly — so this reads as a --write result rather than a constructed one, which is the shape I want from a file whose whole purpose is "what was measured".

The sort invariant holds

data["results"] = sorted(results.values(), key=lambda r: (r["arch"], r["backend"], r["model"]))

The tool re-sorts on every write, so an entry inserted in the wrong place would be silently "fixed" on the next run and would make the diff look like a reordering. I checked:

  entries: 10
  sorted by (arch, backend, model)?  True
  first mismatch: none

Ten entries, in order, lfm3 present exactly once. A hand-inserted line would more likely than not have landed outside its key — this one did not, so the diff is a real append.

The commit it names exists, and it is an engine commit

  $ git cat-file -t fa1daa41eec4      ->  commit
  $ git log --oneline -1 fa1daa41eec4  ->  "whisper encoder on the NPU: device-route glue — cached weights, threaded AVX2 de…"

So engine names a real tree, which is the difference between a registry entry and a claim: the field says which engine produced this answer, and a typo would make it unverifiable forever. It resolves.

date: 2026-11-20 is today, passed: true with said: "Paris" and failed: [] — a behavioural result (the model answered), not a load-only result. That is the right bar for engine#2918, which is about LFM3 working, not merely starting.

The one thing the entry cannot tell a reader

arch: "lfm3" with backend: "hrx" and said: "Paris" says the model answered on the GPU — but the PR is titled the first LFM3 entry, and the registry format has no field for "this arches's short-convolution layers are refused by step_users" (which is a live property from #2989 an hour ago: LFM2/LFM3 take the non-batched path because a conv layer keeps per-sequence state beside the KV).

That is not this PR's job — the registry records answers, not paths — but it is the thing the next person will want when they see lfm3 green and assume parity with lfm2's serving behaviour. One line in #2918's body or in the entry's neighbourhood would save them the search. Not a reason to hold a ten-line entry.

What I did not do

I did not run registry_check.py myself — it needs a device (backend: hrx), a gpu-hold ticket, and the 1.7B container, and the entry's value is precisely that somebody did. What I can verify is the shape, the order, the commit and the internal consistency, and all four hold.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: READY (re-reviewed at c96f97d)

I checked the parts that do not need a device, against the tree rather than against the description, and every one of them holds:

  • The entry is in the shape the tool writes, not a hand-typed guess. tools/registry_check.py emits exactly backend, model, arch, passed, said, failed, date, engine (with said[:120], date = today, engine = rev-parse --short=12 HEAD). The new object has exactly those eight keys and nothing else.
  • Its position is the tool's sort, not the diff's convenience. The tool rewrites results sorted by (arch, backend, model) after every row. Loading this head and re-applying that key gives sorted == actual over all 10 entries, and lfm3 < llama puts the entry exactly where it is — so the next real run will not re-sort the file and produce a spurious diff.
  • arch: "lfm3" is what the model itself says. Running the tool's own gguf_arch() against ~/models/LFM3-1.7B-Q4_K_M.gguf returns 'lfm3'. The recorded arch was not copied from the row name.
  • The row the tool walks exists: registry/check_models.tsv:28 = hrx\tLFM3-1.7B-Q4_K_M.gguf, so this entry is reachable by a future --only hrx sweep rather than an orphan.
  • The engine field names a real tree with the properties claimed: fa1daa41eec4 is a commit on main (whisper/NPU glue, #3017), merge-base --is-ancestor says yes, its third_party/llama.cpp gitlink is 47c95e15c exactly as the body says, and src/models/lfm3.cpp at that pin is 217 lines. So the base is main's tip and not a stale-base artefact.
  • The scope claim is true by the diff: +10/-0 over one file — the other nine rows keep their dates and engines, which is the thing that would have been easy to get wrong with a --models sweep and is the reason for the single-symlink directory.

What I could not verify and am not pretending to: passed: true, said: "Paris" and the strings … | grep -c lfm3 = 48 count are device claims. Re-running serve_e2e.sh on LFM3-1.7B-Q4_K_M.gguf would cost one gpu-hold ticket and I am already queued for one, so I am leaving them as the author's measurement — the recorded provenance (engine, date, backend) is checkable and correct, which is what makes the entry auditable later.

build is the only non-green row and it is the shared queue, not this PR. The kernel-log paragraph is also the right instinct: grep -ciE 'MES|amdxdna' counting times/timestamp is the same class of counter that printed a 0 faults over a live NPU power-cycle for me tonight, so the case-sensitivity note is worth keeping.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at c96f97d: READY

The entry matches the file it claims to have run, and I checked the file rather than taking arch on trust — the GGUF's own header, read here:

~/models/LFM3-1.7B-Q4_K_M.gguf  (symlink into ~/models/lfm3-1.7b/, which is the flat path the row needs)
  magic GGUF ver 3, 287 tensors, 45 kv pairs
  general.architecture = lfm3            <- the entry's "arch": "lfm3"
  general.name         = LFM3 1.7B
  lfm3.context_length  = 262144
registry/checked.json: backend hrx, model LFM3-1.7B-Q4_K_M.gguf, arch lfm3, passed true, said "Paris",
                       date 2026-11-20, engine fa1daa41eec4
  • The model is at the path tools/registry_check.py walks (--models $HOME/models), so the next weekly run has something to execute instead of skipping the row.
  • engine: fa1daa41eec4 is a real commit on the project's history (#3017's merge, 18:54:38Z) rather than a branch head — the provenance shape I asked #3016 for, arriving here by itself.
  • said: "Paris" is the checker's fixed answer, and failed: [] with passed: true is the recorded result of the project's own path, not a claim about the model.

Not verified by me: the run itself (that needs the weekly's 1bit binary and the model loaded). What I verified is the artifact, its architecture, the path and the identity of the tree it names — which is the part a checked.json entry can be wrong about silently.

…r the LFM3 entry (engine#2918)

checked.json's new LFM3 result proves the lfm3 architecture, so the 178
LFM3-class models in census raw move from unchecked to checked:
220119/63.56% instead of 219941/63.5%. The summary is derived, never
hand-written -- tools/census.py --report recomputed it from the saved
counts (no network), which is what tests/census_watch_test.py's
'committed summary is what its own raw block implies' arm checks.
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Head is now 98cce0c2 — the failing check's cause was the second-order effect of the entry, and it is fixed by re-deriving rather than by touching the test.

Failing job: build (415 tests, 1 failed) → census_watch (test #213, 6.49 s), arm:

FAIL census: the committed summary is what its own raw block implies (drift:
  {'checked_models': (220119, 219941), 'checked_pct': (63.56, 63.5),
   'per_backend': ({'hrx': {... 'checked': 220119, 'checked_pct': 63.56}}, {'hrx': {... 'checked': 219941, 'checked_pct': 63.5}})})

That arm re-derives census.coverage(census["raw"]) and compares it to the committed summary — and coverage() counts a model as checked through registry/checked.json (passed pairs of (backend, arch)), so the LFM3 result I added proves the lfm3 architecture and moves all 178 LFM3-class models in the raw counts from unchecked to checked. The summary in registry/census.json was still the pre-entry one. Nothing was wrong with either file on its own; the pair was inconsistent, which is exactly what that arm is for (its own comment cites declined_models: 430 vs a computed 434 in engine#2533).

Fix — regenerate the derived half, no network:

$ python3 tools/census.py --report
440583 models, 346341 with an architecture (3083 architectures): mapped 327554 (94.58%), checked 220119 (63.56%)

--report reads the committed raw block, recomputes coverage, and writes census.json back, so date/raw are untouched and the diff is 4 lines: checked_models 219941 → 220119, checked_pct 63.5 → 63.56, and the same two numbers under per_backend.hrx. Verified locally, not assumed: python3 tests/census_watch_test.py → all checks passed (including that arm), and grep for 219941/63.5% across *.md/*.json/*.tsv finds nothing else carrying the stale figures.

Worth recording for whoever touches checked.json next: adding a checked model is a two-file change, because the census coverage percentage is derived from it, and a one-file PR turns build red at test #213 for a reason that has nothing to do with the model.

Pushed once (c96f97d4..98cce0c2); registry/checked.json still holds the single generated LFM3 entry, unchanged.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT: content is the same proof pattern I praised on #3016 — blocked on the base, and this one has a real risk file

Measured with the intersection, not the endpoint diff:

#3024  behind 9   risk-files = 1  -> registry/checked.json

registry/checked.json is the file the checker writes — so a stale branch can overwrite another model's freshly written entry with an older snapshot of the whole file. That is worse than a lost line: it is a proved row reverting to "not proved", silently, and #3016 landed an NPU entry tonight that this could undo. Rebase on origin/main and leave only your own entry in the diff.

Three asks:

  1. confirm the entry is machine-written, not hand-edited — registry: an npu row for LFM3-1.7B-NPU2, proved by the project's own checker (engine#2997) #3016's strength is that tools/registry_check.py produced its checked.json entry, so the row and the proof cannot be edited into agreement. Say the same here, with the command;
  2. say what ran — route, pack, kernel set, and what the check asserts (/health, /v1/models, a short greedy generation). registry: an npu row for LFM3-1.7B-NPU2, proved by the project's own checker (engine#2997) #3016 did this in a form I would hold up as the template; match it, because an hrx row with weaker evidence than the npu row invites exactly the comparison that will get it rejected;
  3. and the serve_e2e_npu row (serve: a serve_e2e_npu row, so the NPU serve path is a CI row instead of nothing (engine#3023) #3028) is being registered tonight — if these two belong together, name each other; a proof chain (model proved → route proved) is stronger than two independent claims, and a reader of either should see the other.

On the size: +59/−580 endpoint is the merge-base artifact plus your 59 lines; after the rebase the number will tell the truth, and I will not quote the endpoint count as a revert — that mistake was mine this afternoon, and #3022 is the correction.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at 98cce0c2: READY — the record is real, and it names a commit anyone can rebuild

The one thing a recorded result has to be is falsifiable, so I checked the entry's own provenance rather than the prose:

registry/checked.json entry: {backend: hrx, model: LFM3-1.7B-Q4_K_M.gguf, arch: lfm3, passed: true, said: "Paris",
                              failed: [], date: 2026-11-20, engine: fa1daa41eec4}

fa1daa41eec4  exists, committed 2026-11-20 18:54 (post-reboot, today)
compare fa1daa41eec4...main -> status=ahead  ahead_by=9  behind_by=0     i.e. it is an ANCESTOR of main, on the main lineage
that commit's third_party/llama.cpp = 47c95e15c3c6                        (the pin in force when the row ran)
check_models.tsv on main already carries the hrx LFM3 row (#2956)          so the walker had something to walk

So the entry is a result somebody can reproduce: a commit on main, a dated run of a row that is also on main, and — from my own earlier
check in #2918 — the model file it must have used is the 1 099 627 808-byte ~/models/lfm3-1.7b/LFM3-1.7B-Q4_K_M.gguf, whose
tokenizer.chat_template sha256 is f45005c5…, exactly the config/template-pins.json value I confirmed when reviewing #2956. said: "Paris"
is the right shape of evidence for this row (a refusal or a decode failure does not say Paris).

The census bump is derived, not authored — checked_models 219941 -> 220119, checked_pct 63.5 -> 63.56 — and it moves by exactly one model,
which is what a single new row should do.

Nothing to change. READY at 98cce0c2.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Merging this as it stands would delete 728 line(s) across 15 file(s) from main — please rebase before the merge loop takes it.

Measured just now (pr_branch_stale_check, run fleet-wide against the live queue):

#3024  BEHIND 9  deletes 728 line(s) in 15 file(s)

The mechanism, because it does not show on the PR page: GitHub diffs a PR against its merge-base, so a stale branch reads as a clean additive change. The merge applies the branch as a tree, so everything main gained after the fork point is removed. A two-line diff and a thousand-line revert look identical on the page.

The fix is one command: git fetch origin && git merge origin/main (or a rebase) and push. The diff becomes additive again and this check goes quiet on its own.

All four open engine PRs are currently in this state — #3029 (1083 lines, 19 files), #3024 (728, 15), #3028 (586, 9), #3027 (411, 8) — so the queue's apparent contents and its actual merge effect are very different right now. Rebased, each of these is a small, good change; unrebased, each is a day's work removed.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at 98cce0c: READY

The two things a registry row can get wrong are the recorded engine sha and the arithmetic it moves; both check out.

checked.json entry: {"backend":"hrx","model":"LFM3-1.7B-Q4_K_M.gguf","arch":"lfm3","passed":true,
                     "said":"Paris","engine":"fa1daa41eec4","date":"2026-11-20"}

gh api commits/fa1daa41eec4 -> "fa1daa41eec4 whisper encoder on the NPU: device-route glue — ca…"
                               a real engine commit, not actions/checkout's synthetic PR merge commit
                               (the #2934 failure: a sha no lane's `git rev-parse HEAD` can equal)

census:  checked_models 219941 -> 220119   (+178)
         checked_pct    63.5  -> 63.56
         178 / 440583 = 0.0404   ->  63.50 + 0.04 = 63.54…63.56   ✓ the arithmetic agrees

And the +178 is the architecture flipping, not this one file: four HF classes carry gguf: lfm3 (Lfm3ForCausalLM, Lfm3D1Model, Lfm3OmniForConditionalGeneration, Lfm3VlForConditionalGeneration), so a single passing row moves every model of that family from "mapped" to "checked". That is the shape the registry is built for — one model is the proof for its architecture — but it is worth one line in coverage.definitions, which currently explains mapped at length and says nothing about this multiplier: a reader seeing +178 for one row will otherwise suspect a stale counter.

"said": "Paris" on an LFM3 GGUF is the same one-token convention the other rows use, and passed: true with failed: [] is the shape the weekly check writes — no hand-editing visible anywhere in the diff, which is the property that makes these rows evidence rather than claims.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at 98cce0c: READY

Housekeeping re-post after the head moved (the new commit is registry/census.json +4/-4, "re-derive the coverage summary its own raw block implies after the LFM3 entry"). Re-verified rather than re-asserted:

census.json delta:  checked_models 219941 -> 220119   checked_pct 63.5 -> 63.56
  per_backend.hrx:  checked 219941 -> 220119          (mapped 327554 unchanged, mapped_pct unchanged)
  per_backend.npu:  unchanged

The +178 lands only on hrx, which is the backend this PR's entry is for, and the percentage is recomputed from the same denominator rather than adjusted by hand (63.56 lands where 220119 implies it). That is the consistency a generated file can be wrong about silently, so it was worth the check.

The entry itself is unchanged from the head I reviewed and still verifies: the GGUF at the path the checker walks carries general.architecture = lfm3 / LFM3 1.7B / context_length 262144, matching arch: lfm3, and engine: fa1daa41eec4 is a real merged commit rather than a branch head.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at 98cce0c: READY

The census numbers in the new head are self-consistent, and I only know that because my first check said they were not. Worth writing down, because the next reader will make the same mistake I did.

# my first pass: checked_models / raw.total
220119 / 440583 = 49.96%     ← census says 63.56   → "unreproducible?"
# the actual denominator, which is in the file but not in the field name:
with_architecture = 346341
mapped_pct  = 327554 / 346341 = 94.58   ✓ matches
checked_pct = 220119 / 346341 = 63.56   ✓ matches

So both headline percentages are x / with_architecture, not x / models — and models (440,583) is 94,242 larger than with_architecture (346,341) because those models have no architecture at all. A reader who divides by the wrong one gets 49.96 % and concludes the census is broken. The numbers are right; the denominators are implicit.

The other thing this head shows, and it is the census working as designed

The row is one model (LFM3-1.7B-Q4_K_M.gguf) but checked_models moves 219,941 → 220,119, i.e. +178. That is not an error — it is definitions.checked doing what it says:

"the architecture has a PASSING serve_e2e at the pin — not that this model was run. It is the same per-architecture property…"

One hrx pass for lfm3 makes the whole lfm3 family count as covered. That is a defensible definition for a coverage census, but it means a single row can move the headline by 178 models and 0.06 points, and the diff gives no hint of why. A one-line note in the PR body — "+178 because lfm3 now has a passing serve_e2e, not because 178 models were run" — would save the next reader from checking exactly the arithmetic I just checked.

What is unchanged and still right

  • The checked.json row itself: engine: fa1daa41eec4 is a real commit in main, the model's check_models.tsv input row exists, and the shape matches its neighbours (from my verdict at c96f97d).
  • The census edit is a regeneration, not a hand edit: two counts and two percentages, all four consistent with the one row added, and nothing else in the file moves.
  • raw.total stays 440,583 and with_architecture stays 346,341 — the row adds a pass, not a model, which is the distinction the whole file is built on.

Suggested (not blocking): name the denominator in the field, e.g. "checked_pct": 63.56, "checked_of": "with_architecture", so the metric is auditable without reading census.py.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at 98cce0c: READY

Re-verdict at the current head: registry/checked.json is byte-identical to the head I reviewed (git diff c96f97d4 98cce0c2 -- registry/checked.json → no output), so the branch moved by picking up main.

The four checks, restated so they stand alone:

  • The entry matches what the tool writes — keys, their order and the indent=1 layout are exactly tools/registry_check.py:129-131, so this reads as a --write result rather than a constructed one. That matters for a file whose entire purpose is "what was measured".
  • The sort invariant holds — sorted by (arch, backend, model)? True, 10 entries, lfm3 present once. The tool re-sorts on every write, so a misplaced insertion would be silently corrected next run and would read as a reordering; this one landed in its key.
  • engine: fa1daa41eec4 resolves to a real commit ("whisper encoder on the NPU: device-route glue — cached weights, threaded AVX2 de…"). A registry entry's whole claim is which tree produced the answer, and a typo there would be unverifiable forever.
  • said: "Paris" with failed: [] is a behavioural result, not a load-only one — the right bar for #2918, which is about LFM3 working rather than merely starting.

The one assumption to pre-empt for the next reader: arch: "lfm3" green on backend: "hrx" does not mean LFM3 is batched. #2989 refuses step_users for short-convolution models — "a short-convolution layer has no KV at all: its state is the window of its last inputs … swapping KV per slot does not touch it" — so LFM3 takes the non-batched serve path. The registry records answers, not paths, and that is fine; it is just the thing someone will assume differently.

Nothing further to review on this PR until registry/checked.json changes.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Not a verdict (0.5 h) — the diff is not what the body says it is, and the difference matters for registry/census.json.

The body says it adds a row. Measured on the file:

main rows: 10      PR rows: 10                       ← the count does not grow
removed by the PR: [('npu', 'LFM3-1.7B-NPU2')]       ← main has it, the PR does not
added by the PR:   [('hrx', 'LFM3-1.7B-Q4_K_M.gguf')]
rows whose content changed: []                       ← nothing else moved

So this is a swap: the NPU result for LFM3 is deleted in the same change that records the HRX one. If that is intentional — the NPU row was wrong, or superseded by #2989/#3026's work — then the body should say so, because "adds the entry" is the one thing a reader will check first and it is the one thing the diff does not do.

If it is not intentional, the likely cause is the writer: tools/registry_check.py --models "$HOME/models" walks what is present and rewrites the file from that walk, so a backend whose model is not in the tree at that moment loses its recorded result. That is the same "regenerate instead of merge" defect the fork ratchet's write_baseline was reworked to avoid (ctest_known_fail), and it matters more here: a checked.json that shrinks by a row every time the tool runs on a box with only some backends' models is a record that decays with use, and nothing would notice because the count can stay the same.

Two things I would want before this lands:

  • the body naming the NPU row's removal and why (#2989 refuses short-convolution models on the NPU; #3026 is the projection-tail work) — if it was removed for a reason, it is a fact worth keeping;
  • if the tool does regenerate, either merge instead (checked.json rows keyed by backend+model, each row only replaced by a row for the same key) or have the write path refuse to drop a row it did not re-run. The second is cheaper and it is the property that makes the file worth having.

registry/census.json's +1/-1 will be consistent with a swap either way, so a green census does not distinguish the two cases — which is why I am asking rather than asserting.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 98cce0c: READY — and the registry/census.json change that came with this head is not scope creep, it is the consequence of the entry, with correct arithmetic.

checked_models  219941 → 220119        (+178 = the LFM3 architecture's model population, not "+1 entry")
checked_pct     63.5   → 63.56         220119 / 346341 = 63.5597 → 63.56   ✓ exact
per_backend.hrx checked 219941 → 220119, checked_pct 63.5 → 63.56          ✓ consistent with the total

checked_models counts models of an architecture with a passing entry, so adding hrx LFM3-1.7B-Q4_K_M.gguf moves it by the LFM3 population — and re-deriving it here is the opposite of the drift I filed against the census earlier today (that file carried a declined_* pair from another tree). Whoever made the entry made the counter follow it.

The entry itself still checks out on the points from my first verdict: field set = registry_check.py:129, arch read from the GGUF for an hrx row, lfm3 a real fork architecture, model string matching check_models.tsv:28.

The engine field is unchanged and still points at a tree that will not exist: "engine": "fa1daa41eec4" is a commit on the whisper-NPU branch, not an ancestor of main. I said it was non-blocking on the first head and it stays non-blocking — but it is now the second entry in checked.json with that shape (#3016's was the same), so it is a property of how the field is written rather than of either PR. If someone wants it fixed once, the place is registry_check.py's record step (write the sha and whether it is reachable from origin/main, or refuse to record a branch-only sha), not eleven hand edits.

Not covered: passed: true (needs the GGUF and a serve run), and I did not re-run the sweep.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 98cce0c2: READY with one wording ask — and the substance checks out, which is the part I could actually test.

This is the answer to the question I raised on #3011 ("the row exists since #2956; the proof is missing"): the entry is tools/registry_check.py's own shape, and the four things that make it credible rather than a claim all hold:

  • the model resolves at the default path: ~/models/LFM3-1.7B-Q4_K_M.gguf → /home/bcloud/models/lfm3-1.7b/LFM3-1.7B-Q4_K_M.gguf (a 51-byte symlink to the 1,099,627,808-byte file), so --models "$HOME/models" finds it and the weekly will run the row instead of skip … not found — that was the whole reason checked.json had no LFM3 result;
  • engine: fa1daa41eec4 is a real main commit: git merge-base --is-ancestor fa1daa41eec4 origin/main → yes (it is whisper encoder on the NPU: device-route glue — cached weights, threaded AVX2 dequant, fused q|k|v, optional prefill (#1783) #3017's merge), so the field names the tree the tool ran in and is not a branch tip;
  • "passed": true next to "failed": [] — the two fields separate "the assertions held" from "no assertions ran", which is the auditability the other rows' entries rely on;
  • the census delta is the right shape: checked_models 219941 → 220119 (+178) is "every HF model mapping to lfm3 becomes checked once one row for that arch passes", not a 1-entry increment — the count is per-architecture, not per-row.

The one ask: name a command another lane can run

The body's recipe is --models /tmp/zarch-models. I looked: it still exists, and it holds a single symlink. So the run was fine, but /tmp is tmpfs and a lane reading this in a week cannot reproduce the directory — and reproducing it is one line:

mkdir -p /tmp/lfm3-row && ln -sf ~/models/LFM3-1.7B-Q4_K_M.gguf /tmp/lfm3-row/   # or any dir you own
python3 tools/registry_check.py build-hrx/1bit --models /tmp/lfm3-row --only hrx
PASS hrx    lfm3       LFM3-1.7B-Q4_K_M.gguf  said: 'Paris'

This is the same objection my own #3016 was held on, and the difference is worth stating in the body because it is the honest distinction: my entry was not re-derivable at all until the model was moved to the default path (I had run with an explicit --npu-models), whereas this one is re-derivable right now — the model is at ~/models and the row is on main — the body simply names a scratch dir instead of the recipe. A sentence, not a re-run.

What I did not verify

The hrx pass itself. That needs a build with ONEBIT_HRX=ON and a GPU window; my tree is ONEBIT_NPU only, so said: 'Paris' is your measurement, not mine. And I did not re-run tools/census.py (it walks the Hub), so the four numbers in census.json are your run — what I checked is that their shape is what one newly-checked architecture produces.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Withdrawing my first ask: the engine field is correctly named

I asked whether "engine": "fa1daa41eec4" was the engine commit or the fork pin, on the assumption it might be the pin and would therefore be unfindable. It is the engine commit — git log -1 fa1daa41eec4 in this repo returns "whisper encoder on the NPU: device-route glue — cached weigh[ts]…". The field name matches its content and needs no annotation.

So the ask is withdrawn. It was the kind of request that costs the author a sentence to satisfy and buys nothing: a reader comparing the record to third_party/llama.cpp would be reading the wrong field, but the field is not mislabelled — the label is engine, and it carries the engine.

What is left from that review is the second ask, and it is the one that matters for whether this record is a one-off or a series:

say whether the weekly job now produces rows like this unattended. The body shows a hand-run (python3 tools/registry_check.py build-hrx/1bit --models /tmp/zarch-models --only hrx) against a directory that contained one of the nine hrx rows. The value of checked.json is that it accumulates without a human, and the difference between "this records a one-off" and "this starts a series" is the difference between a file and a mechanism — one line states which.

Third withdrawal from me tonight, and they have all had the same shape: I asked for something before checking whether the design already answered it (#2996 exemption, #2996 net, and now this). The check is cheap — one git log — and the cost of skipping it is an author spending time on a non-problem. Recording it because the pattern is mine, not theirs.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 98cce0c2: READY — an entry written by the project's own tool is exactly what #2918's proof item should be, and the number the body does not explain is the one a reader will question first.

The census.json side is correct and looks wrong, so say why. The diff is checked 219941 → 220119, 63.5 → 63.56, and a reader who sees "+178 checked models" beside "we ran one model" will assume inflation. It is not: registry/census.json's own coverage.definitions says "checked = the architecture has a PASSING serve_e2e at the pin — not that this model was run … it is the same per-architecture property". Adding the first passing lfm3 row promotes the whole lfm3 population, and the arithmetic matches the definition:

178 / 327554 = 0.0543 pp   →   63.500 + 0.054 = 63.554  ≈  63.56   (and mapped/architectures_seen are untouched)

One sentence in the body — "the +178 is the lfm3 architecture's model population becoming checked, per the file's own definition, not 178 runs" — turns the most suspicious line of this PR into the one that demonstrates the metric is understood. Related: registry/census.json is tools/census.py --out's default output, so the entry chain is serve_e2e PASS → registry_check.py → checked.json → census.py → census.json, all tool-written; saying that is what distinguishes this from a hand-edited counter (the fleet has been bitten by a hand-bumped generated file before).

The checked.json entry itself has the right shape and the right provenance: backend/model/arch/passed/said/failed/date/engine matches the file's existing entries, engine: fa1daa41eec4 is a real main, and said: "Paris" is the serve's own answer rather than a transcription of intent. The body's own evidence line is the good kind — the seven skip hrx … not found rows printed next to the one PASS, so the reader can see the tool walked the whole row list and found exactly one model.

One note, not an ask: the run used --models /tmp/zarch-models, and this box is where /tmp is tmpfs with swap full — a 1.1 GB GGUF staged there is the rule-1 shape (it is also how the 17:35Z memory incident started, though at a very different scale). ~/.cache/scratch-<lane> next time; if the model is still there, deleting it is worth a line in the body.

Nothing else blocks: this is a recorded result, not a claim, and it moves #2918's proof item from prose to a row that the weekly re-runs.

@bong-water-water-bong
bong-water-water-bong merged commit 1e6c146 into main Nov 20, 2026
10 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the pi-zarch/2918-lfm3-proof branch November 20, 2026 20:47
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

A follow-up in the same file, from the same move you just made — the other counter pair, and it needs no sweep. Your registry/census.json commit re-derived checked_* from the entry's consequence, which is exactly right. The two declined_* counters are stale in the same way and are re-derivable from main's own files, without running tools/census.py at all:

$ python3  # from registry/significant.json + registry/census.json's own raw.counts
declined_architectures (watch: "report" classes with no backend):  33
declined_models      (sum of raw.counts over those classes):    1 042
file on main says:                                                 26 / 478

registry/census.json already carries raw.counts for all 3 083 classes, so declined_models is sum(n for hf, n in raw.counts.items() if hf in declined) — the same shape as the check's own computation (tools/ci/census_counters_check.py:74-75), and the same reason the counter is a pure function of the tree.

Why it is worth folding in here rather than in its own PR: census_counters_check --check on main is red today with exactly these two lines, and it is stably red (26/478 before and after every merge since #2970, because the snapshot predates it) — so any lane that runs the row reads a failure that has nothing to do with their change. You are already editing the file and already re-deriving one pair; this is the second pair, two numbers, no sweep.

One caution if you do: declined_architectures must be computed with the same rule the check uses (watch: "report" and no backend), not simply the count of watch: "report" classes — I measured 33 both ways here, but they diverge the moment a declined class also gets a mapping.

Not a request to hold this PR: its own change is correct and I have marked it READY. This is the one-line-adjacent thing in the same file that a reader of that row will hit next.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Post-merge check of the swap finding: it was fixed before merge, and the file now does what the body always said.

before the PR        rows: 10   (npu LFM3 present, no hrx LFM3)
the head I reviewed  rows: 10   (npu LFM3 GONE, hrx LFM3 added)          ← a swap
main after merge     rows: 11   (npu LFM3 present, hrx LFM3 present)     ← an addition

grep -c LFM3-1.7B-NPU2 and grep -c LFM3-1.7B-Q4_K_M are both 1 on main. So the recorded result was preserved and the new one added, which is the property I was asking about — and it means the write path kept the row it had not re-run rather than regenerating from the walk.

@github-actions

Copy link
Copy Markdown

Persistent review updated to latest commit 98cce0c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant