Skip to content

Defer remaining hybrid GGUF architectures - #594

Merged
justinchuby merged 2 commits into
mainfrom
justinchuby-add-remaining-hybrid-gguf
Aug 25, 2026
Merged

justinchuby merged 2 commits into
mainfrom
justinchuby-add-remaining-hybrid-gguf

Conversation

@justinchuby

Copy link
Copy Markdown
Member

Summary

  • pin suffix-exact loader tensor inventories for bailingmoe3, deepseek4, kimi-k3, kimi-linear, and lfm2moe at llama.cpp 8d9af256337d1a501250f9bbf4c0859a654bddd6
  • register explicit DEFERRED verdicts that reject before config extraction, quantization handling, model lookup, or graph construction
  • remove the unsafe DeepSeek-V4 GGUF dense-fallback claim while preserving the valid Hugging Face deepseek_v4 registration
  • document exact schedule, mixed-state, MoE, auxiliary/MTP, and quantization constraints

Validation

  • focused GGUF tests: 885 passed
  • broad non-integration suite excluding unrelated baseline glm_moe_dsa shape-inference failure: 6223 passed, 52 skipped
  • full lint: clean
  • independent high-confidence review: no significant findings

Stack

Targets justinchuby-expand-hybrid-gguf-cohort / #588.

@github-actions

github-actions Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

🏗️ Architecture Diff

Comparing bd54679 → 693ad71

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 bd54679 → 693ad71

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-expand-hybrid-gguf-cohort branch from ca35d99 to 965080c Compare August 25, 2026 15:58
Base automatically changed from justinchuby-expand-hybrid-gguf-cohort to main August 25, 2026 15:59
@justinchuby
justinchuby requested a review from a team August 25, 2026 15:59
justinchuby and others added 2 commits August 25, 2026 09:00
Pin exact loader tensor inventories for BailingMoE3, DeepSeek-V4, Kimi-K3, Kimi-Linear, and LFM2MoE. Reject each architecture before config extraction because Mobius does not own its exact mixed cache/recurrent state ABI. Remove the unsafe DeepSeek-V4 GGUF dense-fallback claim while preserving its Hugging Face registration.

Co-authored-by: Copilot App <[email protected]>
Signed-off-by: Justin Chu <[email protected]>
Remove DeepSeek-V4 from the quantized GGUF reachability pin now that the reviewed remaining-hybrid audit defers its incompatible runtime ABI. Keep the separate Hugging Face registration intact.

Co-authored-by: Copilot App <[email protected]>
Signed-off-by: Justin Chu <[email protected]>
@justinchuby
justinchuby force-pushed the justinchuby-add-remaining-hybrid-gguf branch from e8d65f2 to 693ad71 Compare August 25, 2026 16:03
Copilot AI lite review requested due to automatic review settings August 25, 2026 16:03
@justinchuby
justinchuby merged commit 6715f09 into main Aug 25, 2026
20 of 23 checks passed
@justinchuby
justinchuby deleted the justinchuby-add-remaining-hybrid-gguf branch August 25, 2026 16:03

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 GGUF import policy for the remaining hybrid C06 architectures by pinning their llama.cpp loader tensor inventories while explicitly deferring conversion (rejecting early) due to unsupported mixed-state / MoE / schedule ABIs, and by removing DeepSeek-V4 GGUF “supported” claims while keeping the Hugging Face deepseek_v4 path intact.

Changes:

  • Pin suffix-exact tensor_names / expert_tensor_suffixes inventories for bailingmoe3, deepseek4, kimi-k3, kimi-linear, and lfm2moe at the llama.cpp commit in llamacpp_pin.json.
  • Mark the above architectures as Support.DEFERRED across config/tensor_map/graph/runtime in the GGUF arch registry, ensuring early refusal before config extraction and downstream build stages.
  • Remove DeepSeek-V4 GGUF config/tensor mapping coverage and update tests + documentation to reflect “unreachable” conversion status.

Reviewed changes

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

Show a summary per file
File Description
src/mobius/integrations/gguf/_upstream_data/llamacpp_pin.json Adds pinned suffix-exact tensor inventories for the remaining hybrid GGUF architectures.
src/mobius/integrations/gguf/_tensor_mapping.py Removes the DeepSeek-V4 GGUF tensor-name mapping table/registration.
src/mobius/integrations/gguf/_tensor_mapping_test.py Drops the DeepSeek-V4 mapping unit test now that the mapping is removed/deferred.
src/mobius/integrations/gguf/_reader_test.py Removes DeepSeek-V4 GGUF arch→model_type and config-extraction assertions.
src/mobius/integrations/gguf/_config_mapping.py Removes the DeepSeek-V4 GGUF-specific key map from the key-map table.
src/mobius/integrations/gguf/_builder_test.py Expands early-rejection coverage to include the newly deferred hybrid architectures.
src/mobius/integrations/gguf/_arch_registry.py Adds explicit DEFERRED specs + detailed reasons for the remaining hybrid architectures; defers deepseek4.
src/mobius/integrations/gguf/_arch_registry_test.py Pins new loader inventories and asserts deferred specs are unreachable and not aliased/mapped.
docs/api/build_from_gguf.md Updates the public support table to mark these architectures as deferred/unreachable.

💡 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