Skip to content

Close pinned GGUF architecture census - #601

Merged
justinchuby merged 3 commits into
mainfrom
justinchuby-close-gguf-architecture-census
Aug 25, 2026
Merged

justinchuby merged 3 commits into
mainfrom
justinchuby-close-gguf-architecture-census

Conversation

@justinchuby

Copy link
Copy Markdown
Member

Summary

  • close the immutable llama.cpp architecture census at 8d9af256337d1a501250f9bbf4c0859a654bddd6: every one of 147 real general.architecture IDs now resolves to exactly one capability spec
  • classify the final 50 IDs without fabricating aliases or overclaiming graph/runtime support; reject dead gptj and defer all other newly closed IDs before config extraction because their exact graph/task/cache/tensor/quantization contracts are not representable
  • pin helper-expanded loader tensor unions, suffixless tensors, required/defaulted scalar and array metadata, RWKV variant state ABI distinctions, exact 25-qtype closure, and generated 147-row support documentation
  • prevent unknown architectures from silently falling through generic Hugging Face config/model dispatch and run architecture verdicts before MTP/qtype policy

Final 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

  • focused registry/census/qtype: 1,663 passed
  • full GGUF suite: 2,564 passed
  • broad non-integration suite excluding inherited glm_moe_dsa baseline failures: 6,994 passed, 52 skipped
  • initialized lintrunner format and full lint: clean
  • two independent GPT-5.6 Sol full-diff reviews: clean after findings were fixed and affected gates rerun

The two glm_moe_dsa ONNX shape/checker failures reproduce unchanged on the exact stacked base SHA 7ac405e6394bc595d359945263bf724516720450; this PR does not touch that model.

Stacked on #600.

@github-actions

github-actions Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

🏗️ Architecture Diff

Comparing 85fb322 → d932044

Model Sub-model Changes Status

No architecture changes detected. ✅


Legend: ⚪ No change · 🔵 Minor (attrs/inits) · 🟡 Moderate (nodes added/removed) · 🔴 Major (interface changed)

@github-actions

github-actions Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

Performance Comparison

Comparing 85fb322 → d932044

Model Metric Baseline Current Delta
bert (feature-extraction) model_size_bytes 359 KB 359 KB +0.0% ⚪
bert (feature-extraction) num_nodes 68 68 +0.0% ⚪
falcon model_size_bytes 364 KB 364 KB +0.0% ⚪
falcon num_nodes 66 66 +0.0% ⚪
gemma2 model_size_bytes 428 KB 428 KB +0.0% ⚪
gemma2 num_nodes 105 105 +0.0% ⚪
gpt2 model_size_bytes 388 KB 388 KB +0.0% ⚪
gpt2 num_nodes 54 54 +0.0% ⚪
llama model_size_bytes 425 KB 425 KB +0.0% ⚪
llama num_nodes 60 60 +0.0% ⚪
llama (static-cache) model_size_bytes 425 KB 425 KB +0.0% ⚪
llama (static-cache) num_nodes 56 56 +0.0% ⚪
mamba (ssm-text-generation) model_size_bytes 296 KB 296 KB +0.0% ⚪
mamba (ssm-text-generation) num_nodes 94 94 +0.0% ⚪
phi3 model_size_bytes 421 KB 421 KB +0.0% ⚪
phi3 num_nodes 58 58 +0.0% ⚪
phi3 (static-cache) model_size_bytes 421 KB 421 KB +0.0% ⚪
phi3 (static-cache) num_nodes 54 54 +0.0% ⚪
qwen2 model_size_bytes 425 KB 425 KB +0.0% ⚪
qwen2 num_nodes 60 60 +0.0% ⚪
qwen2 (static-cache) model_size_bytes 425 KB 425 KB +0.0% ⚪
qwen2 (static-cache) num_nodes 56 56 +0.0% ⚪
qwen3_5_moe (hybrid-text-generation) model_size_bytes 506 KB 506 KB +0.0% ⚪
qwen3_5_moe (hybrid-text-generation) num_nodes 264 264 +0.0% ⚪
qwen3_5_text (hybrid-text-generation) model_size_bytes 458 KB 458 KB +0.0% ⚪
qwen3_5_text (hybrid-text-generation) num_nodes 126 126 +0.0% ⚪
qwen3_5_vl (hybrid-qwen-vl) model_size_bytes 977 KB 977 KB +0.0% ⚪
qwen3_5_vl (hybrid-qwen-vl) num_nodes 428 428 +0.0% ⚪
t5 (seq2seq) model_size_bytes 836 KB 836 KB +0.0% ⚪
t5 (seq2seq) num_nodes 176 176 +0.0% ⚪
whisper (speech-to-text) model_size_bytes 1008 KB 1008 KB +0.0% ⚪
whisper (speech-to-text) num_nodes 128 128 +0.0% ⚪

No performance regressions.

@justinchuby
justinchuby force-pushed the justinchuby-complete-gguf-mtp-closure branch from 7ac405e to bcd2268 Compare August 25, 2026 16:35
Base automatically changed from justinchuby-complete-gguf-mtp-closure to main August 25, 2026 16:35
@justinchuby
justinchuby requested a review from a team August 25, 2026 16:35
justinchuby and others added 3 commits August 25, 2026 09:37
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]>
Copilot AI lite review requested due to automatic review settings August 25, 2026 16:40
@justinchuby
justinchuby force-pushed the justinchuby-close-gguf-architecture-census branch from ee452c2 to d932044 Compare August 25, 2026 16:40
@justinchuby
justinchuby merged commit 13b2f84 into main Aug 25, 2026
19 of 22 checks passed
@justinchuby
justinchuby deleted the justinchuby-close-gguf-architecture-census branch August 25, 2026 16:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants