Skip to content

Add deferred conventional MoE GGUF cohort - #597

Merged
justinchuby merged 1 commit into
mainfrom
justinchuby-add-remaining-moe-gguf
Aug 25, 2026
Merged

justinchuby merged 1 commit into
mainfrom
justinchuby-add-remaining-moe-gguf

Conversation

@justinchuby

Copy link
Copy Markdown
Member

Summary

  • audit the pinned llama.cpp 8d9af256337d1a501250f9bbf4c0859a654bddd6 census for the next conventional-attention MoE cohort
  • register Arctic, DBRX, GPT-OSS, Grok, GroveMoE, and SmallThinker as explicit pre-config deferrals rather than unsafe generic-MoE aliases
  • record exact loader tensor alternatives and per-family sidecar closure, including fused/split QKV, GPT-OSS expert biases, and GroveMoE weight-only chunk experts
  • add registry, census, mutation, tensor-closure, and fail-before-graph tests plus generated coverage documentation

Why deferred

Each architecture requires graph or tensor semantics that the current generic Mobius MoE path does not own exactly: parallel dense/routed branches, LayerNorm and fused clamped QKV, GPT-OSS MXFP4 repacking and biases, Grok scaling/norm topology, dual GroveMoE expert banks, or SmallThinker routing/activation/scheduling. Runtime support remains deferred pending pinned real-artifact provenance, independent full-logit parity, and deterministic generation.

Local validation

  • focused final GGUF registry/census/builder gate: 1,112 passed
  • affected GGUF and coverage gate: 2,017 passed, 225 skipped
  • broad non-integration suite: 6,379 passed, 52 skipped; two glm_moe_dsa failures reproduce unchanged on stacked base f308da1
  • initialized lintrunner formatting and full lint: clean
  • two independent full-diff review passes plus final review-fix verification: clean

@github-actions

github-actions Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

🏗️ Architecture Diff

Comparing e913060 → e9d5748

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 e913060 → e9d5748

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-add-remaining-dense-gguf branch from f308da1 to cffdb2b Compare August 25, 2026 16:19
Base automatically changed from justinchuby-add-remaining-dense-gguf to main August 25, 2026 16:19
@justinchuby
justinchuby requested a review from a team August 25, 2026 16:19
Audit six remaining conventional-attention MoE architectures against the pinned llama.cpp census and register explicit pre-config deferrals where Mobius cannot yet preserve their complete graph and tensor semantics. Record loader-consumed tensor families and sidecars, document the exact blockers, and test fail-closed registry and builder behavior.

Co-authored-by: Copilot App <[email protected]>
Signed-off-by: Justin Chu <[email protected]>
@justinchuby
justinchuby force-pushed the justinchuby-add-remaining-moe-gguf branch from 3d689f4 to e9d5748 Compare August 25, 2026 16:23
Copilot AI lite review requested due to automatic review settings August 25, 2026 16:23
@justinchuby
justinchuby merged commit c546d50 into main Aug 25, 2026
18 of 21 checks passed
@justinchuby
justinchuby deleted the justinchuby-add-remaining-moe-gguf branch August 25, 2026 16:23

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 tightens the GGUF upstream census + registry contract for a remaining conventional-attention MoE cohort by explicitly deferring six architectures (rather than allowing any aliasing), while recording their exact pinned loader tensor-name closure (including per-family suffix sets) and documenting the outcome.

Changes:

  • Extend the pinned llama.cpp census model to record per-family tensor suffix closures (tensor_suffixes) for architectures that don’t share one uniform suffix set.
  • Add explicit “DEFERRED everywhere” GGUF registry entries (with detailed reasons) for Arctic, DBRX, GPT-OSS, Grok, GroveMoE, and SmallThinker; add/extend tests to prevent accidental aliasing or downstream reachability.
  • Update GGUF build docs and support matrix to reflect the audited/deferred cohort and its rationale.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/mobius/integrations/gguf/_upstream.py Adds tensor_suffixes to the pinned upstream architecture model and payload decoding.
src/mobius/integrations/gguf/_upstream_data/llamacpp_pin.json Records audited tensor-name inventories and per-family suffix closures for the six deferred MoE architectures.
src/mobius/integrations/gguf/_builder_test.py Extends the “fail-before-graph” deferred cohort test to include the newly audited architectures and renames the test accordingly.
src/mobius/integrations/gguf/_arch_registry.py Introduces explicit deferred specs + reasons for the six architectures to prevent unsafe generic-MoE aliasing.
src/mobius/integrations/gguf/_arch_registry_test.py Adds coverage to assert suffix-exact inventories, no alias/model_type reachability, and explicit mismatch reasons.
docs/api/build_from_gguf.md Updates the generated support matrix and adds a narrative section documenting the audited/deferred MoE cohort.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

justinchuby added a commit that referenced this pull request Aug 25, 2026
## Summary
- audit the 11 remaining VLM-specific text architectures from llama.cpp
SHA `8d9af256337d1a501250f9bbf4c0859a654bddd6`
- register explicit pre-config deferrals for unsupported text-only and
paired text+mmproj paths without changing projector support verdicts
- pin suffix-exact loader unions, custom quant-sidecar ownership,
converter provenance, and exact companion target identities
- add fail-closed registry, tensor-closure, pairing, header/preflight,
builder, and generated documentation coverage

## Validation
- `python -m pytest src/mobius/integrations/gguf tests/gguf_test.py -q
--tb=short` — 2046 passed
- `python -m pytest tests/build_graph_test.py tests/cli_test.py src/ -q
-k "not phi4mm and not apply_weights_unknown and not glm_moe_dsa"
--tb=short -n auto` — 6474 passed, 52 skipped
- `lintrunner f --output oneline --all-files`
- `lintrunner --output oneline --all-files`
- two independent full-diff reviews — clean

## Stack
Targets `justinchuby-add-remaining-moe-gguf` / PR #597.

Signed-off-by: Justin Chu <[email protected]>
Copilot-Session: 3360a853-8f08-4350-ae5e-cec390516475
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