Repository navigation
Close pinned GGUF architecture census - #601
Conversation
Performance Comparison
|
7ac405e to
bcd2268
Compare
Classify every remaining llama.cpp architecture identifier with an immutable capability verdict, fail unknown and deferred architectures before generic dispatch, and pin complete loader/converter audit evidence including RWKV recurrent ABIs.\n\nAdd exact census, alias, qtype, metadata, tensor-helper, preflight, mutation, and generated documentation invariants so all 147 pinned architectures remain exhaustively classified.\n\nCo-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Keep main's canonical GLM-DSA config and graph registration while preserving the exact 147-architecture closure. Regenerate the support matrix from the resolved registry so current quantization verdicts and reasons remain deterministic. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
ee452c2 to
d932044
Compare
There was a problem hiding this comment.
Pull request overview
This PR completes the pinned llama.cpp GGUF architecture census by ensuring every pinned general.architecture value (147 total) resolves to exactly one explicit GGUFArchitectureSpec, and by failing closed (before config extraction) for unknown/unregistered architectures to prevent generic Hugging Face fallback dispatch. It also pins additional upstream loader audit data (tensor unions, helper-expanded closures, and metadata read classifications) and regenerates the GGUF support documentation to reflect the now-total registry coverage without overclaiming runtime/graph support.
Changes:
- Extend the pinned upstream census model to record loader source/helpers plus required/optional/array metadata reads, and ingest those fields from the pinned JSON payload.
- Enforce exact closure of the pinned census (no missing/extra/duplicate canonical IDs; no aliases that became canonical) and update tests to require every pinned architecture to resolve to a spec.
- Move GGUF architecture validation ahead of MTP/qtype policy checks and update the generated support matrix to a “Status + Reason” format.
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/mobius/integrations/gguf/_upstream.py | Adds pinned loader audit fields (source/helpers/metadata reads) to UpstreamArchitecture and wires them into payload ingestion. |
| src/mobius/integrations/gguf/_upstream_gap_test.py | Updates coverage assertions to require a total 147/147 spec resolution and verifies deferral happens before MTP/qtype policy. |
| src/mobius/integrations/gguf/_upstream_data/llamacpp_pin.json | Expands pinned architecture entries with explicit tensor closures, helper expansions, and metadata-read classifications for the final closure set. |
| src/mobius/integrations/gguf/_quant_registry_test.py | Adds an assertion that the pinned stored quantized-type closure remains exactly 25. |
| src/mobius/integrations/gguf/_builder.py | Fails closed for unknown architectures and reorders validation so architecture verdicts precede MTP/qtype policy. |
| src/mobius/integrations/gguf/_arch_registry.py | Adds registry↔census closure validation and registers explicit verdict specs for the remaining pinned architectures (including explicit rejection for dead gptj). |
| src/mobius/integrations/gguf/_arch_registry_test.py | Pins final-census invariants (closure, helper expansion, suffixless tensors, metadata classification) and updates expectations for dead-arch handling and support-matrix generation. |
| docs/api/build_from_gguf.md | Regenerates the GGUF support matrix to “Status + Reason” and documents the final census-closure policy. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Summary
8d9af256337d1a501250f9bbf4c0859a654bddd6: every one of 147 realgeneral.architectureIDs now resolves to exactly one capability specgptjand defer all other newly closed IDs before config extraction because their exact graph/task/cache/tensor/quantization contracts are not representableFinal closure set
afmoe,bailingmoe,bailingmoe2,bitnet,codeshell,cohere2moe,command-r,deepseek,deepseek2,deepseek32,dots1,dots3note,ernie4_5,ernie4_5-moe,exaone-moe,exaone4,gemma-embedding,gemma4-assistant,glm-dsa,glm4,glm4moe,gptj,gptneox,granite,granite_swa,graniteswitch,hunyuan-moe,hy_v3,jais,jais2,laguna,llama-embed,maincoder,mellum,mimo2,minicpm,minimax-m2,minimax-m3,mistral4,nanbeige,orion,pangu-embedded,plamo,plamo3,plm,qwen,refact,starcoder,step35,xverse.Validation
glm_moe_dsabaseline failures: 6,994 passed, 52 skippedThe two
glm_moe_dsaONNX shape/checker failures reproduce unchanged on the exact stacked base SHA7ac405e6394bc595d359945263bf724516720450; this PR does not touch that model.Stacked on #600.