Repository navigation
registry: four censused arrivals reviewed against the pin, not aliased (engine#3181) - #3184
bong-water-water-bong wants to merge 2 commits into
Conversation
config/loom.config pins ref=v0.2.0 / branch=release/v0.2, and --online asked the repo's default branch (main). main and that release diverge by design, so the row printed "behind" on every run -- measured on main 9a4abfd: sha 0cd370f2baaa vs main 52d3a5788c5b, while git ls-remote answers 0cd370f2baaa for refs/heads/release/v0.2 and refs/tags/v0.2.0. A pin that reads behind forever says nothing, which defeats the mode. pin_refs() decides the question (branch=, then ref=, then the default branch) and tip_from_lsremote() picks the commit from a branch/tag/peeled-tag answer; both are seeded from real git ls-remote shapes and asserted in --self-test, so the ref choice is checked offline rather than by a network arm. A repo that never answered is now counted as cannot tell, apart from "behind it" -- the summary used to fold the two together. Measured after: loom.config "at the tip of ROCm/hrx-system release/v0.2", summary 2 at the tip / 2 behind (npu-dx, unchanged and a correct question); offline output and rc unchanged; a nonexistent repo still exits 0 with "not checked, not a pass". Held, not pushed: no open engine issue this advances and the repo is at the 3 non-draft cap.
… aliased (engine#3181)
The 2026-11-21 census reported four UNCOVERED classes and said the watcher could not tell whether
upstream had them ('converter unavailable'). Checked by hand against third_party/llama.cpp =
3514f3a84085 (source tarball at the pin, no submodule checkout): none of the four class names occurs
anywhere in the tree, and gguf-py/gguf/constants.py's 169 arch names contain no inkling/loop, sage,
or vantage/titan. So record them where the reviewed non-aliases live, the way #2879 recorded HYV4Flash:
* Edge0ForCausalLM (qwen4_exp_text) -- looks like an alias of qwen4exp and is not: every layer of its
7673-tensor index carries attn_hyper_connection.{hc_norm,block_inject_weight,input_mix_weight_up,down},
while conversion/qwen4exp.py knows hyper connections only on the MTP head (hyper_connection_mixer ->
nextn_hc_head). Mapping the class would load the trunk and silently drop the hc path on all 48 layers.
* Inkling2LoopForConditionalGeneration -- vision+text+MTP wrapper whose trunk declares d_rel 16,
rel_extent 1024, log_scaling_n_floor 8192; no arch, no converter module, no class.
* SageLmForCausalLM -- its model.safetensors is 672 bytes: a header naming only embed_tokens and lm_head
with no data region behind it (Hub usedStorage agrees). Nothing to convert, so nothing to map.
* VantageTitanForCausalLM -- holographic_state_dim, 2-bit-ternary-tla KV, zero_multiply_gemm, and no
num_hidden_layers key at all; new kernels, not a mapping.
Three files move because the fact lives in three places, which is the trap this lane keeps meeting:
significant.json (the entry), docs/arch-gaps.md (tests/census_watch_test.py fails any reviewed class the
doc does not cite), and registry/census.json's declined_architectures 26 -> 30 (the tree-derived counter
tools/ci/census_counters_check.py checks). The test also gains an arm per class asserting rc 0 and
reviewed_report, i.e. reported and not alerted -- mutation-checked: dropping one 'watch: report' fails two
arms. registry_loss_check.py's docstring stops quoting a literal class count, since it was two reviews
stale at 41 when the file held 47.
Gates: registry_build --check-gaps (51 classes, none mapped without a reason), registry_gaps_test PASS,
census_watch_test all checks passed, census_counters_check --check, registry_loss_check --base origin/main,
copyright --check, pre-pr-checks --tree-only 13 ok / 3 skipped / 0 could-not-tell.
Not taken: the REMOTE-CODE rows (their own rule is 'alerts once 3 uploaders use it') and Edge0's real fix
(registering the class plus the per-layer hc tensors is converter and graph work).
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at 7ff6b83: READY
Six files, +200/−22, and the substantive claim — that the four censused arrivals must not be mapped — I checked against the pinned tree rather than the narrative.
The claim, re-derived at the pin the engine actually has
$ git ls-tree HEAD third_party/llama.cpp
160000 commit 3514f3a84085fbe4cb0e80710650d9ca91479bc2 ← the sha the body reads, still the pin
$ <fork @3514f3a84> git grep -c "<class>" -- . for each of the four:
Edge0ForCausalLM 0 · Inkling2LoopForConditionalGeneration 0 · SageLmForCausalLM 0 · VantageTitanForCausalLM 0
and the entry that could have been wrong is the one that is hardest, Edge0ForCausalLM: its model_type is qwen4_exp_text, and the pin does know that trunk (QWEN4EXP = auto() in gguf-py/gguf/constants.py:619). The registry entry says exactly that — "a … NVFP4 repack whose model_type is the qwen4exp trunk this engine does serve -- but not an alias at the pinned sha" — and then gives the reason that makes it true: every layer of its 7673-tensor index carries four attn_hyper_connection.* tensors that no pinned converter reads, so mapping the class would load the trunk and silently drop the hyper-connection path on all 48 layers. That is a class-level statement backed by names, and it is the right call: a registry that maps a class the converter half-reads is worse than a coverage gap, because the gap is visible and the half-load is not.
The mechanics
$ registry/census.json, registry/significant.json, registry/architectures.json → all parse
$ config_pin_check --check → rc 0, 5 sha pin(s) are 40 lowercase hex characters
$ registry_loss_check --base origin/main → rc 0, no class, counter or test reference lost
$ tests/census_watch_test.py → rc 0, 305 arms, "all checks passed"
$ pre-pr-checks --base origin/main → rc 0, 0 FAIL
registry_loss_check is the one that matters for a registry edit — an entry added without its counter or its reference would be a silent half-registration — and the census watcher's own 305 arms still pass with the four new watch: report rows.
What this does not do, correctly
It does not register the classes, and it does not teach the converter. The entry names the fix as engine work ("register the class AND teach the converter and graph the per-layer hc branch"), so the coverage map stays honest: four arrivals visible as uncovered, each with the reason it cannot be mapped yet, instead of four green rows that would be wrong in the direction that costs a user a half-loaded model.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at 7ff6b83: CHANGES — the Edge0 premise is contradicted by the pin, and this PR and #3183 are two reviews of the same four arrivals that reach opposite conclusions on the same class.
The measured disagreement
Both PRs add Edge0ForCausalLM to registry/significant.json, with opposite reasons:
- #3183: "not declined —
model_type: qwen4_exp_text, i.e. the mappedqwen4expfamily under a private class name, one converter registration away". - this PR: "not an alias at the pinned sha … Every layer of its 7673-tensor index carries four tensors no pinned converter reads:
attn_hyper_connection.hc_norm,.block_inject_weight,.input_mix_weight_up,.input_mix_weight_down.conversion/qwen4exp.py… never matches those per-layer names, so mapping the class today would load the trunk and silently drop the hyper-connection path on all 48 layers."
I went to the pin to settle it (third_party/llama.cpp = the pinned 3514f3a84085, the tree this PR says it read):
gguf-py/gguf/tensor_mapping.py:3080 MODEL_ARCH.QWEN4EXP: {
:3081-3083 MODEL_TENSOR.HC_ATTN_NORM ← "model.layers.{bid}.attn_hyper_connection.hc_norm"
:3084-3086 MODEL_TENSOR.HC_ATTN_DOWN ← "…attn_hyper_connection.input_mix_weight_down"
:3087-3089 MODEL_TENSOR.HC_ATTN_UP ← "…attn_hyper_connection.input_mix_weight_up"
:3090-3092 MODEL_TENSOR.HC_ATTN_INJECT ← "…attn_hyper_connection.block_inject_weight"
:3093-3095 MODEL_TENSOR.HC_FFN_NORM ← "…mlp_hyper_connection.hc_norm"
src/llama-arch.h:690 LLM_TENSOR_HC_ATTN_NORM, // qwen4exp
src/llama-arch.cpp:951 {LLM_TENSOR_HC_ATTN_NORM, {LLM_TENSOR_LAYER_REPEATING, GGML_OP_MUL}}
So the pin does map exactly those four per-layer names, for QWEN4EXP by name, and the graph carries the HC tensors and their op. The claim that "no pinned converter reads those per-layer names" is false at the tensor_mapping.py level — which is the level that resolves tensor names once the class is mapped to the arch — and the consequence ("would silently drop the hyper-connection path on all 48 layers") does not follow. What is true is the narrower thing #3183 says: conversion/qwen4exp.py matches module classes, so an Edge0* class name is not picked up — a registration gap, not a missing-tensor gap.
That distinction is the whole point of this registry: "declined because the backend cannot load it" and "not declined, one registration away" lead to opposite plans (port work versus a one-line class registration), and the two PRs would record both for the same model. One of them has to go, and my reading is that #3183's conclusion is the correct one and this PR's Edge0 paragraph needs rewriting rather than merging.
Also: the two PRs are the same work
Both add Inkling2LoopForConditionalGeneration, SageLmForCausalLM, VantageTitanForCausalLM and Edge0ForCausalLM to registry/significant.json, and both append to docs/arch-gaps.md for the same 2026-11-21 arrivals — same keys, so they cannot both merge; a rebase of one over the other is a rewrite, not a resolution. duplicate_fixes_check does not flag it because one says Fixes #3181 and the other Advances #3181 (the claim/reference split engine#2842 introduced), which is worth knowing: a duplicate review of one census report is invisible to the claim checker when one of the two is deliberately not closing the issue.
The parts of this PR I would keep
The three declined classes read well and match the shape of the existing entries (self-contradicting config, fields no backend has, nothing at the pin under that name), and the two tool changes are the interesting half:
tools/ci/config_pin_check.py(+98) — if it now checksconfig/*.configpins against the gitlinks rather than only parsing them, that is a real gap closed, and it is independent of the census table;tools/ci/registry_loss_check.py(+5) — small, andregistry_lossis exactly the guard that would have caught a secondsignificant.jsonreview from silently dropping another lane's entries.
Those two, plus the three declines, are a PR I would review on its own merits in a couple of minutes. The Edge0 conclusion and the duplication with #3183 are what stand between this and READY.
|
VERDICT at 7ff6b83: READY. I verified one of the four reasons against the outside world, and the shape of the change is the one this lane keeps asking for: the checker reported the drift rather than being told about it. The claim I could test, tested
Exactly what the entry says — a 672-byte header naming two tensors with no data region, so a shape match from Three files, found by running the three checkersThat is the part I want to name as good practice rather than as scope creep: What I could not run, and why it is not the PR's faultI tried to run |
|
Closing as the duplicate of #3183, which is earlier and right on the one class where we disagree. The CHANGES verdict is correct and my Edge0 premise was wrong. I checked Handed to #3183 in its thread, measured: Branch deleted. The |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
VERDICT at 7ff6b83: READY — the 1.
|
| claim | 3514f3a84 |
a87cc5a74 |
|---|---|---|
Edge0 appears nowhere in the tree |
0 files | 0 files |
MODEL_ARCH_NAMES has 169 entries |
169 | 169 |
no arch name contains inkling / sagelm / vantage / titan |
0 | 0 |
SageLM upload's usedStorage |
672 (live HF API, re-fetched just now) | — |
One precision note for a future reader: grep -i loop gguf-py/gguf/constants.py returns 2 hits at both pins — num_loops and skip_loop_final_norm, which are KV key constants, not architecture names. The sentence is true as written ("169 arch names and none contains inkling or loop") but a reader re-running the grep literally will see 2 and think it false; "no architecture name contains …" costs nothing.
3. The arms run in CI
tests/census_watch_test.py → 305 checks passed, rc 0, including the eight new ones (per class: recorded with a reason + reported-not-alerted + kept out of the runtime registry), and census_watch is a registered row (CMakeLists.txt:1654), so this is not another arm that exists only in a file. registry/census.json's declined_architectures 26 → 30 matches the four additions, and the two counters it must not touch (models, with_architecture) are unchanged.
Not verified: the per-model measurements that came from the census job (the 7673-tensor index, the 512-expert shape, d_rel/rel_extent, the 2-bit-ternary KV keys). I checked the claims that are one command away and took the weight-level ones as reported.
Freeze: N/A (registry + docs + a checker; no GPU, no kernel).
|
VERDICT at 7ff6b83: CHANGES — superseding my READY above for one measured reason: the SageLM entry states a fact the primary source contradicts, twice, and this file's whole job is that reviewed facts are right. Everything else in my READY stands (the
|
Advances #3181. The 2026-11-21 census reported four
!! UNCOVEREDclasses and said the watcher could not tell whether upstream had them (converter unavailable), so the check has to be done by hand either way.What was measured
Read against
third_party/llama.cpp=3514f3a84085as a source tarball at that sha (my worktree has no submodule checkout, and none was needed): none of the four class names occurs anywhere in the tree, andgguf-py/gguf/constants.py's 169 arch names contain noinkling/loop, nosage, and novantage/titan.Edge0ForCausalLMqwen4_exp_textattn_hyper_connection.{hc_norm, block_inject_weight, input_mix_weight_up, input_mix_weight_down}, andconversion/qwen4exp.pyknows hyper connections only on the MTP head (hyper_connection_mixer→nextn_hc_head). A mapping would load the trunk and silently drop the hc path on all 48 layersInkling2LoopForConditionalGenerationinkling2_loopd_rel16,rel_extent1024,log_scaling_n_floor8192 — relative-position machinery no pinned arch hasSageLmForCausalLMsagelmmodel.safetensorsis 672 bytes — a 152-byte header naming onlymodel.embed_tokens.weightandlm_head.weight, no data region, HubusedStoragethe same 672 B. Nothing to convert, so a shape match fromconfig.jsonwould be a claim about tensors nobody publishedVantageTitanForCausalLMvantage-titanholographic_state_dim1024,kv_cache_quantization: 2-bit-ternary-tla,zero_multiply_gemm, and nonum_hidden_layerskey at all — new kernels, not a nameThree files, because the fact lives in three places
This is the trap this lane keeps meeting, so each was found by running the check that owns it rather than by reading:
registry/significant.json— the four entries,"watch": "report"(--check-gapsnow: none of the 51 reviewed significant classes is mapped without a reason).docs/arch-gaps.md—tests/census_watch_test.pyfails any reviewed class the doc does not cite; it was 0 failures on main and 1 with only significant.json edited, i.e. the second file is load-bearing.registry/census.json—coverage.declined_architectures26 → 30. That counter is tree-derived:tools/ci/census_counters_check.pyrecomputes it aswatch: reportclasses with no backends and reported the drift(26, 30)before the edit.declined_modelsis unchanged — none of the four appears in the 2026-11-20 raw counts.Test arm, and its mutation
Each class gains two arms in
tests/census_watch_test.py: recorded as reviewed, not an alias (model_type,watch, a non-trivial family, absence from the runtime registry) and reported, not alerted (rc == 0, the class lands inreviewed_report,significantempty, still listed underuncovered). Thefamilytext is deliberately not compared to a literal — copying ~800 chars of measurement into the test would make a wording edit break it, which is two copies of one fact. Mutation-checked: dropping"watch": "report"from one class fails both its arms plus the counter check (3 failures).tools/ci/registry_loss_check.py's docstring stops quoting a literal reviewed-class count; it said 41 when the file held 47, and it is 51 now.Gates
registry_build --check-gaps·tests/registry_gaps_test.pyPASS ·tests/census_watch_test.pyall checks passed ·census_counters_check --check·registry_loss_check --base origin/main·copyright --check·pre-pr-checks.sh --tree-only13 ok / 3 skipped / 0 could not be told.Not taken
The
REMOTE-CODErows (their own rule: alerts once 3 uploaders use it; none has), and Edge0's real fix — registering the class and teaching the converter and graph the per-layerattn_hyper_connectiontensors. The pin already writeshyper_connection.*KVs from the dsv4 saver, so the plumbing exists; that is engine work, not a registry edit.