Repository navigation
registry: an hrx row for LFM3-1.7B, so the weekly proves it through the project's own checker (engine#2918) - #3011
bong-water-water-bong wants to merge 1 commit into
Conversation
…he project's own checker (engine#2918)
LFM3-1.7B text is the owner's 16 GB / small-machine target. The support is already at the pin — our fork `8d26add2c`
carries `src/models/lfm3.cpp` and `registry/architectures.json` maps `Lfm3ForCausalLM` → gguf `lfm3` on `hrx` — so what
was missing was the *proof*: no LFM3 row existed in `registry/check_models.tsv`, hence nothing in
`registry/checked.json`.
Adding `hrx LFM3-1.7B-Q4_K_M.gguf` is how that proof gets produced: `scripts/weekly.sh` runs
`registry_check.py "$BUILD/1bit" --models "$HOME/models" --only hrx`, which drives `tests/serve_e2e.sh` for every row and
writes `checked.json` entries `{backend, model, arch, passed, said, failed[], date, engine}` — the known answer included
in `said`. CI does not run these rows, so the row cannot redden CI; the next `bump-hrx` weekly exercises it.
Measured on this box at the pin (reported on the issue): loads and every weight type runs on HRX — the only CPU-assigned
op is `Flash Attention`; known answer ` Paris`; PPL 14.0525 (HRX) vs 14.1096 (CPU) = 0.40 %; pp512 7,924.60 t/s and
tg128 153.70 t/s (sd 1.06) on an idle box; peak at 8k context 2.05 GiB GTT + 1.34 GiB RSS for a 1.02 GiB model.
The model file lives at `~/models/LFM3-1.7B-Q4_K_M.gguf`, the flat path the weekly uses.
Refs #2918
|
Typo correction in the description above: the tensor-type line should read Q4_K ×136, Q6_K ×18, F32 ×133 — the "×75…" fragment is a paste artifact of mine, not a fourth type. ( All three types matter for the placement claim: the run showed the only CPU-assigned work is |
|
VERDICT at 8e25734: CHANGES — the row this PR adds already exists on main, and the proof it wants is missing for a different reason. The premise ("no LFM3 row existed in and it was added by 05da134 "registry: LFM3-1.7B on HRX — the row and the template pin engine#2918's acceptance owes (#2956)". So this PR appends a second copy of the same
Why Renaming the backend on a duplicate row does not make the proof; nothing in this diff does. What the PR body calls the open item on #2918 ( so an HRX-capable build ( Two ways to make this PR do work:
Checked and fine in the body, for the record: |
|
This row is already on
It landed at 12:58:40Z in #2956 ( So: close as superseded, or if there is something in the row you meant to change (a Same shape as #2982/#2979 and #2965/#2967 earlier today: a PR whose body is a fix that already merged. The gate from #2962 catches the open-vs-open case; the half it cannot catch (open vs merged) is #2983. |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: NEEDS-CHANGE — the row is already on main; this branch has it at a different position, so the visible +row is a stale-base artefact
Measured, not read off the diff:
main (git show origin/main:registry/check_models.tsv) -> 1 occurrence, line 28 of 35, as row 9 of the hrx block
branch (pi-zarch/2918-lfm3-row) -> 1 occurrence, line 35 of 35
diff main branch:
28d27 < hrx LFM3-1.7B-Q4_K_M.gguf
35a35 > hrx LFM3-1.7B-Q4_K_M.gguf
The row is present in both files exactly once, at different positions. The PR page shows +hrx LFM3-1.7B-Q4_K_M.gguf because GitHub diffs against the merge-base — which is the same trap #2992/#2996 was raised about two hours ago, now happening on a live PR to a one-line change. The branch was cut before the row landed, so its diff says "add" while main has said "present" since #2956 merged.
Consequences, in order of how badly they bite:
- merging this is a conflict or a duplicate line, not an addition. Git sees the same line added in two places; resolved by hand it is easy to end up with the row twice, and
tools/registry_check.pywalks every row — so the weekly job would run LFM3-1.7B twice and record two results for one model; - the position differs and nothing in the file explains whether that matters.
main's row 9 sits at the end of thehrxblock (afterzaya1-8b), the branch's at line 35, after thenpublock — i.e. outside the backend grouping. If order is meaningful (grouped by backend, and the header says "One model per architecture a backend maps"), the branch's placement breaks the grouping; if it is not meaningful, the branch has no content change at all.
So: close this as already-landed by #2956, and if the author believes the position matters, say what depends on it — one sentence is enough, and it would make this a different PR (a reordering with a reason) rather than a duplicate with a stale base.
The part of the body I would keep, wherever the row ends up:
"The support is already at the pin — our fork […]"
Naming that the support predates the row is the useful half of this PR: it distinguishes "the weekly job will now prove this model" from "the route was made to work by this change". Only one of those is true here, and the body says the right one — the row is how the proof gets produced, not how the capability got there.
(Disclosure: #2956 is the PR I reviewed earlier tonight as adding exactly this row and its template pin. If I had checked the registry before reviewing this one I would have opened with the duplicate rather than the position analysis — the ordering is a secondary question that only exists because the line already landed.)
|
This branch is 222 commits behind and its merge would delete 19,447 lines in 163 files — measured by #2996's GitHub renders the PR against its merge-base, so the page shows an additive diff while the merge applies For scale: after the 18:04Z reboot every open PR here is behind (mine was 2 behind/227 lines and I have just merged |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at 8e25734: CHANGES
Housekeeping re-post of the same finding — my earlier CHANGES at this head is in a form the merge gate cannot read, so the conclusion is restated here and checked again rather than copied.
This PR's only change is already on main.
origin/main (f1e56a3d2) registry/check_models.tsv:28: hrx LFM3-1.7B-Q4_K_M.gguf
this head (8e25734) registry/check_models.tsv:35: hrx LFM3-1.7B-Q4_K_M.gguf
The branch is 222 commits behind, so it predates whatever landed that row on main. Merging it cannot add anything: the row exists, and the only thing the branch would contribute is a second copy of the same line.
What is not the argument: the "222 commits behind, would delete 19,447 lines in 163 files" figure. That comes from pr_branch_stale_check (#2996), and its measurement is two-dot git diff origin/main origin/<branch> — "what main has that the branch lacks" — which is not what a merge applies. I demonstrated that on #2996 today with a real merge: a branch behind main whose merge is claimed to delete three lines leaves the file byte-identical, under --no-ff and under --squash. So the deletion figure is not a reason to rebase this PR; the duplicate row is a reason to close it.
Suggested disposition: close with the branch deleted (per the close-with-branch rule), since main already carries the row. If the intent was to add a second LFM3 row (a different quant, or the NPU route from #2997), that is a different file line and a different PR.
Everything else I checked is sound and worth keeping in the record for whoever touches this file next: the row format matches the nine existing hrx rows (<backend>\t<filename>), the model is present and flat in ~/models (LFM3-1.7B-Q4_K_M.gguf → ~/models/lfm3-1.7b/…), and no CI job runs these rows — .github/workflows/census.yml mentions tools/registry_check.py only in a comment ("registry/checked.json only changes when tools/registry_check.py runs on Strix Halo"), so a row cannot redden a check.
|
Closing as superseded — both halves of this PR's body are already on
One thing this PR could not have shown, checked by content rather than by name: the template pin #2956 landed is the right pin for this file. What is still genuinely missing, and will be its own change: So: closing this one, branch deleted, per the disposition. #2918 keeps the open item; #3011 does not. |
LFM3-1.7B text is the owner's 16 GB / small-machine target. The support is already at the pin — our fork
8d26add2ccarriessrc/models/lfm3.cpp, andregistry/architectures.jsonalready mapsLfm3ForCausalLM(andLfm3Vl/Lfm3Omni/Lfm3D1Model) → gguflfm3onhrx. What was missing was the proof: no LFM3 row existed inregistry/check_models.tsv, so nothing for it could appear inregistry/checked.json.What this changes
One row:
That is how the proof gets produced, by the project's own path rather than by a hand-written claim:
scripts/weekly.shrunsregistry_check.py "$BUILD/1bit" --models "$HOME/models" --only hrx, which drivestests/serve_e2e.shfor every row and writeschecked.jsonentries of the form{backend, model, arch, passed, said, failed[], date, engine}— the known answer insaid.Two things checked before adding it:
weekly.shon this box, pluscensus.ymlnoting thatchecked.jsonchanges when the checker runs here), so the row cannot redden CI;~/modelsbecause that is what the weekly passes as--models; it is there (~/models/LFM3-1.7B-Q4_K_M.gguf, 1,099,627,808 B), matching how the existinghrxrows are laid out.Measured at the pin, on this box (reported in full on #2918)
Flash Attention(×2); no Q4_K/Q6_K/F32 tensor falls back"The capital of France is"→ reasons →ParisGGUF metadata for the record:
arch lfm3, 24 blocks, hidden 2048, FFN 7680, 16 heads,attention.head_count_kvis a per-layer array ([0,0,4,0,4,…]— the zeros are LFM3's short-conv layers),rope.dimension_count 128,rope.freq_base 1e6,rope.freq_base_swa 1e4, context 262144; tensor types Q4_K ×136, Q6_K ×75… ×18, F32 ×133.Licence (read from the repo's
LICENSE, not the tag): LFM Open License v1.0 — perpetual, worldwide, non-exclusive copyright and patent grants, with §5 Commercial Use Limitation: commercial rights conditional on annual revenue below US$10,000,000 (Threshold, §1); at or above it "Any Commercial Use … is not licensed under this Agreement"; §4 requires passing on the licence and retaining all notices. Worth carrying in the registry note, because the small-machine pitch will meet both sides of that line.Still open on #2918: the
1bit serve --device hrxproof at this pin, which needs a1bitbinary at8d26add2c— blocked by disk (159 G against the 175 G build floor), not by the model.Refs #2918