Expand description
2026-09-25: GLM-5.3 checkpoint tensor classification (classify).
2026-09-25: GLM-5.3 (glm5_next) tensor accounting: classify gives the
role of a checkpoint tensor name, and account totals a name list by role.
Nothing is loaded.
classify returns None for a name it does not know, so an unrecognised
tensor is reported rather than skipped. The counts below are from the
reference checkpoint’s name fixture
(crates/model-engine/tests/fixtures/glm53-nvfp4-9e0d74e3-patterns.tsv),
whose test fails if any name in it is unknown.
Owner: model-arch weight loader. Invariants: none beyond the types.
Structs§
- Accounting
- 2026-09-25: The result of
account.
Enums§
- Tensor
Role - 2026-09-25: What a tensor is for.
Functions§
- account
- 2026-09-25: Total a list of
(tensor_name, count)pairs by role. - classify
- 2026-09-25: Classify one checkpoint tensor name.
Nonemeans unrecognised; callers must treat it as an error, not as a tensor to skip. - is_
mtp_ only_ name - 2026-09-25: Whether
nameis an MTP-layer tensor of a numbered layer (eh_proj,enorm,hnorm,shared_head.norm).accountuses it to find the MTP layer’s index. The reference checkpoint has nomtp.0.*tensor. - layer_
index - 2026-09-25: The number after the first
layerssegment, orNonewhen it is absent or not a number (as in the fixture’slayers.N.).