Skip to content

docs: record glm5_next as a reviewed gap and list the gated repos (#447) - #519

Merged
bong-water-water-bong merged 2 commits into
mainfrom
1bit/issues-a-registry
Oct 23, 2026
Merged

bong-water-water-bong merged 2 commits into
mainfrom
1bit/issues-a-registry

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Closes #447.

Both classes the watcher reported are reviewed as not aliases; one was already written down, the other is new. No pinned backend accepts either, so registry/architectures.json is deliberately unchanged (nothing to regenerate).

What changed

class model_type decision where
DeepseekV41ForCausalLM deepseek_v41 documented gap (already reviewed 2026-09-12/13), rechecked on the current pin docs/arch-gaps.md §deepseekv41, new "Why it is not mapped" bullet
Glm5NextForConditionalGeneration glm5_next documented gap, newly reviewed docs/arch-gaps.md §glm5_next, registry/significant.json (watch: report)
12 gated repos — needs HF token in the watcher (no token added) docs/arch-gaps.md §"Unverifiable: gated configs"

Why glm5_next is not a mapping

zai-org/GLM-5.3-Flash (the flagged azampatti/GLM-5.3-Flash-AZ is a 4-bit auto-round derivative of Intel/GLM-5.3-Flash-W4A16-AutoRound) declares itself as a hybrid the pinned fork cannot run:

  • text_config.layer_types is 34 linear_attention + 11 deepseek_sparse_attention layers (linear_attn_config.kda_layers, full_attn_layers), KDA with gate_lower_bound -5.0 and short_conv_kernel_size 4;
  • hc_mult 4 / hc_sinkhorn_iters 20 / hc_eps: hyper-connections — the residual stream is a 4-wide Sinkhorn-normalised expansion, not one residual per layer;
  • index_kpool 4 with index_kpool_compress and index_kpool_always_select_tail in the sparse attention;
  • 45 layers, H=4096, 64 heads, 288 experts / 4 used + 1 shared, MLA kv_lora_rank 512, num_nextn_predict_layers: 1, wrapped with a vision_config (VLM container).

The pinned fork's nearest family, GLM-5.2's GlmMoeDsaForCausalLM → LLM_ARCH_GLM_DSA (src/models/glm-dsa.cpp), reads MLA + indexer_top_k + indexer_types and assumes MLA + DSA on every layer. Mapping glm5_next onto it would run the 34 KDA layers as full sparse attention, drop the hyper-connection expansion and ignore the compressed k-pool — tokens out, a different function in. Mapping onto the fork's Kimi KDA arch (LLM_ARCH_KIMI_LINEAR) drops the 11 DSA layers and the indexer instead.

What the pinned pin actually has, and what comes next

Checked on the pin main carries, third_party/llama.cpp af04c9f2:

  • conversion/glm.py registers Glm4ForCausalLM, Glm4vForConditionalGeneration, GlmOcrForConditionalGeneration, Glm4MoeForCausalLM, Glm4vMoeForConditionalGeneration, Glm4MoeLiteForCausalLM, GlmMoeDsaForCausalLM, SolarOpenForCausalLM — no Glm5NextForConditionalGeneration;
  • src/llama-arch.cpp LLM_ARCH_NAMES has glm4, glm4moe, glm-dsa — no glm5-next; src/models/ has no glm5-next.cpp;
  • for DeepSeek: no DeepseekV41ForCausalLM converter class, no deepseek_v41/deepseek41 arch.

Upstream ggml-org/llama.cpp added GLM-5.3-Flash in #27773 (649dcb10, 2026-09-30: LLM_ARCH_GLM5_NEXT, src/models/glm5-next.cpp, MODEL_ARCH.GLM5_NEXT) and the MTP follow-up #29928 (b9acf138, 2026-10-07), both after the fork's last upstream sync. A later fork sync that reaches them maps the class automatically — at which point tools/registry_build.py --check-gaps fails until the entry records mapped_ok, which is the intended prompt for a person to confirm the KDA + DSA + hyper-connection layers actually came with it. Until then the entry carries "watch": "report", exactly like muse_spark and hrm_text: the watcher prints it as . REVIEWED and does not alert.

DeepseekV41ForCausalLM keeps alerting on purpose (no watch field, like the other reviewed gaps that need real engine work): it is a significant family whose real support is the engram embedding path plus candidate-block sparse attention, not a name mapping.

Verification (no GPU, ryzen)

$ python3 tools/registry_build.py --check-gaps
none of the 24 reviewed significant classes is mapped without a reason        # rc 0
$ python3 tools/registry_build.py --check-pins
registry/architectures.json records the committed pins                        # rc 0
$ python3 tools/copyright.py --check                                          # rc 0
$ python3 -m unittest tests.registry_gaps_test   -> 9/9 ok, PASS
$ python3 -m unittest tests.census_watch_test    -> all checks passed
$ CENSUS_WATCH_STATE=/tmp/t447-watch-state.json python3 tools/census_watch.py --limit 120
census-watch: 120 newest text-generation models checked, 77 with an architecture, 73 mapped,
3 uncovered class(es), 7 unverifiable, 36 derivative
census-watch: OK — no uncovered class in the newest models                    # exit 0

Offline classify() on the two models the issue names, against the committed registry:

reviewed_report: ['Glm5NextForConditionalGeneration']      # reported, no alert
significant:     ['DeepseekV41ForCausalLM']                # alert, by design

Not verified: that glm5_next loads once a backend maps it — no pinned backend accepts it, there is no GGUF, and that is a fork-sync job, not this PR's.

🤖 Generated with Claude Code

…cher cannot read (#447)

The census watcher reported two classes `registry/architectures.json` cannot map.
Neither is an alias, and one of them was already reviewed:

- `DeepseekV41ForCausalLM` (deepseek_v41) was written down on 2026-09-12/13. Rechecked
  against the pin main carries (`third_party/llama.cpp` af04c9f2): the fork's
  `conversion/deepseek.py` registers no such class and `src/llama-arch.cpp` has no
  `deepseek_v41`, so the watcher's `!! UNCOVERED` line for it is correct and stays
  (no `watch` field, like the other reviewed gaps that need real engine work).

- `Glm5NextForConditionalGeneration` (glm5_next, GLM-5.3-Flash) is new. Its `text_config`
  is a 34 + 11 hybrid - 34 KDA linear-attention layers and 11 DeepSeek-sparse-attention
  layers - plus `hc_mult`/`hc_sinkhorn_iters` hyper-connections and a compressed index
  k-pool. The pinned fork's GLM-5.2 path (`LLM_ARCH_GLM_DSA`) assumes MLA + DSA on every
  layer, so a mapping would run 34 KDA layers as full attention and drop the
  hyper-connections: silent substitution, not a crash. Upstream ggml-org/llama.cpp added
  the arch in #27773 (649dcb10) and the MTP follow-up #29928 (b9acf138), both after the
  fork's last upstream sync, so a later pin bump maps the class automatically -
  `--check-gaps` will then fail until the entry records `mapped_ok`. Until then the entry
  carries `"watch": "report"`, the same treatment as `muse_spark`/`hrm_text`.

Also lists the twelve gated/unreadable repos from the same run under "Unverifiable: gated
configs" as needs-HF-token-in-the-watcher; no token was added.

No pinned backend accepts either class, so `registry/architectures.json` is unchanged and
no regeneration is needed.

Verified: `tools/registry_build.py --check-gaps` (none of the 24 reviewed classes is mapped
without a reason), `--check-pins` (the registry records the committed pins),
`tools/copyright.py --check`, `tests/registry_gaps_test.py` (9 checks) and
`tests/census_watch_test.py` (all checks) pass; a live `tools/census_watch.py --limit 120`
run exits 0, and an offline `classify()` on the two reported models puts glm5_next in
`reviewed_report` (reported, no alert) and DeepseekV41 in `significant` (alert, by design).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

PR Reviewer Guide 🔍

(Review updated until commit a59b9d6)

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

447 - Partially compliant

Compliant requirements:

  • Documented Glm5NextForConditionalGeneration as a reviewed gap in docs/arch-gaps.md
  • Added Glm5NextForConditionalGeneration to registry/significant.json with "watch": "report"
  • Documented gated repos in docs/arch-gaps.md under "Unverifiable: gated configs"

Non-compliant requirements:

  • Did not update registry/architectures.json to map the uncovered classes (as intended, since no pinned backend accepts them)

Requires further human verification:

  • Confirmation that the census watcher correctly identifies the new models as reviewed gaps
  • Verification that the gated repos are indeed unverifiable without HF token
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Missing Documentation for DeepseekV41ForCausalLM

The documentation for DeepseekV41ForCausalLM in docs/arch-gaps.md is incomplete. It only mentions that the class is not mapped but does not provide sufficient detail about why it is not an alias, which is crucial for understanding the decision. The documentation should be expanded to include a clear explanation of why the architecture is not an alias of another existing architecture.

* **Why it is not mapped** (rechecked 2026-10-23 on the pin `main` carries,
  `third_party/llama.cpp` af04c9f2): the fork registers no
  `DeepseekV41ForCausalLM` converter class (`conversion/deepseek.py`) and
  `src/llama-arch.cpp` has no `deepseek_v41`/`deepseek41` architecture, so
  `tools/registry_build.py` finds nothing to read the class from. The census
  watcher's `!! UNCOVERED` line for it is therefore correct and stays, which is
  what `registry/significant.json` (no `watch` field) encodes.
Incomplete Documentation for Glm5NextForConditionalGeneration

The documentation for Glm5NextForConditionalGeneration in docs/arch-gaps.md is overly detailed and includes implementation-specific information that may not be relevant to the general audience. It should be simplified to focus on the architectural differences and why it's not an alias, without going into too much detail about the internal workings of the pinned fork.

### `glm5_next` - `azampatti/GLM-5.3-Flash-AZ` (also `zai-org/GLM-5.3-Flash`)

Architecture class `Glm5NextForConditionalGeneration`, `model_type: glm5_next`, no `auto_map` and
`library_name: transformers`, so the census classes it as native and it alerts. The flagged upload
is a 4-bit auto-round derivative of `Intel/GLM-5.3-Flash-W4A16-AutoRound`; the release itself is
zai-org's GLM-5.3-Flash.

**Shape** (configs read 2026-10-23, `text_config`): 45 layers, hidden 4096, 64 heads, vocab
154880, 288 routed experts with 4 used plus 1 shared (`moe_intermediate_size` 2048,
`first_k_dense_replace` 3), DeepSeek-style MLA (`kv_lora_rank` 512, `qk_nope_head_dim` /
`qk_rope_head_dim`, `mla_use_nope`), `index_topk` 2048 with 32 index heads, and
`num_nextn_predict_layers: 1` (MTP). The top level wraps a `text_config` plus a `vision_config`
and image/video token ids, so the class is a VLM wrapper, not a bare decoder.

**Machinery no pinned family runs**:

* `layer_types` is a **34 + 11 hybrid** - 34 `linear_attention` layers (KDA:
  `linear_attn_config.kda_layers`, `gate_lower_bound` -5.0, `short_conv_kernel_size` 4, head_dim
  128) and 11 `deepseek_sparse_attention` layers (`full_attn_layers` 3/7/11/.../43, all with
  `indexer_types: full`).
* `hc_mult` 4, `hc_sinkhorn_iters` 20, `hc_eps` 1e-6 - hyper-connections, i.e. the residual stream
  is a 4-wide Sinkhorn-normalised expansion rather than one residual per layer.
* `index_kpool` 4 with `index_kpool_compress` and `index_kpool_always_select_tail` - the sparse
  attention's key pool is compressed and a tail is always selected, which the fork's GLM-5.2
  indexer does not implement.

**Why an alias is wrong**: the pinned fork's GLM-5.2 path (`GlmMoeDsaForCausalLM` ->
`LLM_ARCH_GLM_DSA`, `src/models/glm-dsa.cpp`) is an MLA + DeepSeek-sparse-attention stack on
**every** layer: it reads the MLA, `indexer_top_k` and `indexer_types` keys and assumes each layer
runs that attention. The fork's KDA support is Kimi's (`LLM_ARCH_KIMI_LINEAR`, `LLM_KV_KDA_HEAD_DIM`,
the Kimi converter), and nothing in the tree reads `hc_mult` / `hc_sinkhorn_iters` for a GLM model
(only `dsv4_hc_mult` on DeepSeek V4 / qwen4exp). Mapping `glm5_next` onto `glm-dsa` would run 34
KDA layers as full sparse attention, drop the hyper-connection expansion and ignore the compressed
k-pool - tokens out, a different function in: the silent-substitution failure this page exists to
prevent. Mapping it onto `kimi-linear` would drop the DSA layers and the indexer instead.

**Why it is not mapped**: the pinned `third_party/llama.cpp` af04c9f2 has no `glm5-next` at all -
no `@ModelBase.register("Glm5NextForConditionalGeneration")` in `conversion/glm.py` (it registers
`Glm4ForCausalLM`, `Glm4vForConditionalGeneration`, `GlmOcrForConditionalGeneration`,
`Glm4MoeForCausalLM`, `Glm4vMoeForConditionalGeneration`, `Glm4MoeLiteForCausalLM`,
`GlmMoeDsaForCausalLM`, `SolarOpenForCausalLM`), no `glm5-next` in `src/llama-arch.cpp`'s
`LLM_ARCH_NAMES` (`glm4`, `glm4moe`, `glm-dsa` only) and no `src/models/glm5-next.cpp`. Upstream
`ggml-org/llama.cpp` added it in #27773 (`649dcb10`, 2026-09-30, `LLM_ARCH_GLM5_NEXT`,
`src/models/glm5-next.cpp`, `MODEL_ARCH.GLM5_NEXT` in the GLM converter) and the MTP follow-up
#29928 (`b9acf138`, 2026-10-07) - both after the fork's last upstream sync, so a later fork sync
that reaches them maps the class automatically. At that point `tools/registry_build.py
--check-gaps` fails until this entry records why (`mapped_ok`), which is the intended prompt for a
person to confirm the sync really brought the KDA + DSA + hyper-connection layers before the class
counts as supported. Reviewed 2026-10-23: **not an alias**. Its `registry/significant.json` entry
carries `"watch": "report"`, so the census watcher lists new uploads as `. REVIEWED` and does not
alert; remove that field (and record `mapped_ok`) when the pin gains `glm5-next`.

@github-actions

Copy link
Copy Markdown

Persistent review updated to latest commit a59b9d6

@bong-water-water-bong
bong-water-water-bong merged commit 716ae1b into main Oct 23, 2026
8 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the 1bit/issues-a-registry branch October 23, 2026 07:45
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.

census: new HF model class uncovered by the registry

1 participant