You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 86e70a8
Browse filesBrowse the repository at this point in the historyBrowse files
Add exact Grok, GroveMoE, and Hunyuan-MoE GGUF graphs (#685)
## Summary
- add dedicated float-import GGUF graphs for `grok`, `grovemoe`, and
`hunyuan-moe`
- close pinned metadata defaults, conditional tensor families,
fused/split QKV layouts, suffix-exact mappings, and packed expert
expansion
- preserve architecture-specific semantics: Grok
scaling/softcaps/sandwich norms/GEGLU, GroveMoE two-bank routing, and
Hunyuan post-RoPE Q/K norm plus parallel shared expert
- keep quantized/native import rejected and runtime packaging deferred
until independent real-weight and OGA evidence exists
- update model registry, route census, model coverage, and generated
GGUF documentation
## Upstream and artifact evidence
Implementation is pinned to
`ggml-org/llama.cpp@8d9af256337d1a501250f9bbf4c0859a654bddd6`.
Bounded HTTP range reads validated 8 MiB from each immutable artifact
(24 MiB total; payloads removed afterward):
| Architecture | Artifact | Revision | Header result |
|---|---|---|---|
| `grok` | `unsloth/grok-2-GGUF/Q2_K/grok-2-Q2_K-00001-of-00003.gguf` |
`7b560aeb31bbd8ff7a026f3cfd981c0364024cbf` | `grok`, 477 tensors, split
0/3, 963 logical tensors |
| `grovemoe` | `mradermacher/GroveMoE-Inst-GGUF/GroveMoE-Inst.Q2_K.gguf`
| `4dec2e9eaf01d5150d5b45a7d7c95c6220aaad7f` | `grovemoe`, 723 tensors |
| `hunyuan-moe` |
`gabriellarson/Hunyuan-A13B-Instruct-GGUF/Hunyuan-A13B-Instruct-IQ1_S.gguf`
| `1ab8a37a314dfa05d4dc11cd899a5dded62c0578` | `hunyuan-moe`, 482
tensors |
The older Arki05 Grok-1 IQ1_S header was also audited and deliberately
rejected as a current route because it uses the legacy per-expert
`ffn_{gate,up,down}.N.weight` layout rather than the pinned loader's
packed `*_exps` tensors.
GroveMoE intentionally follows the pinned llama.cpp graph where the
chunk bank consumes the primary MoE output and gathers weights at
floor-mapped chunk IDs, even though those details differ from the
Hugging Face reference.
## Validation
- broad serial non-integration suite: 8,916 passed, 64 skipped, 12
deselected
- focused executable synthetic parity and end-to-end GGUF builds for all
three architectures
- build-graph and weight-alignment coverage for all three internal model
types
- lintrunner formatter and full lint clean
- GGUF support docs, model docs, and feature-flag generators clean
- diff check clean
- changed-line mypy: 0 errors across 10 changed production files
- two independent high-effort reviews: no significant findings
## Capability boundaries / waivers
- **Quantized/native storage:** not claimed. `keep_quantized=True` fails
closed because these dedicated graphs currently expose floating
`Linear`/expert modules only.
- **Runtime/OGA:** deferred. No full representative artifact plus
independent ORT GenAI prefill, cached-decode, and generation evidence
was established.
- **Real-weight golden generation:** deferred with runtime evidence.
Grok has no public logical GGUF at or below 16 GiB; the only sub-16-GiB
Hunyuan artifact is highly lossy IQ1_S. These limitations do not weaken
the synthetic executable parity and exact graph-import acceptance gate
added here.
---------
Signed-off-by: Justin Chu <[email protected]>
Co-authored-by: Copilot App <[email protected]>
|`granitemoe`| — | model=`granitemoe`; tensor=`llama`+`moe_extras`| not claimed | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=supported | RUNTIME_EVIDENCE_PENDING — Config extraction, exact tensor-name closure, and a full synthetic GGUF graph build are covered, but no representative real-weight GGUF has yet passed ORT parity or generation validation. |
228
228
|`graniteswitch`| — | none (fails before config extraction) | audited-direct-loader-conditional-union | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported | CONFIG_DEFERRED — GraniteSwitch repurposes an appended synthetic layer as a token-history-driven adapter router and carries fourteen switched-LoRA tensors per block in addition to decoder KV state. |
229
-
|`grok`| — |none (fails before config extraction) | not claimed | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported|CONFIG_DEFERRED — The pinned Grok graph applies embedding, attention-output, and logit scales; attention, and optional final-logit softcaps; post-attention and post-FFN norms; and a dense-plus-routed expert residual scaled by sqrt(2)/2. |
230
-
|`grovemoe`| — |none (fails before config extraction) | not claimed | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported|CONFIG_DEFERRED — The pinned GroveMoE graph shares router logits across two distinct expert banks but performs separate selections for normal and grouped chunk experts, then scales the adjugate contribution independently. |
229
+
|`grok`| — |model=`grok_gguf`; module=`grok_gguf`; tensor=`grok`| not claimed | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=rejected|RUNTIME_EVIDENCE_PENDING / FLOAT_IMPORT_ONLY — The mobius graph uses floating Linear modules for this architecture, so no MatMulNBits or BlockQuantizedMatMul target can consume preserved GGUF projection weights. |
230
+
|`grovemoe`| — |model=`grovemoe_gguf`; module=`grovemoe_gguf`; tensor=`grovemoe`| not claimed | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=rejected|RUNTIME_EVIDENCE_PENDING / FLOAT_IMPORT_ONLY — The mobius graph uses floating Linear modules for this architecture, so no MatMulNBits or BlockQuantizedMatMul target can consume preserved GGUF projection weights. |
231
231
|`hunyuan-dense`|`hunyuan_v1_dense`| model=`hunyuan_v1_dense`; tensor=`llama`+`hunyuan_extras`| not claimed | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=supported | RUNTIME_EVIDENCE_PENDING — Config extraction, exact tensor-name closure, and a full synthetic GGUF graph build are covered, but no representative real-weight GGUF has yet passed ORT parity or generation validation. |
232
-
|`hunyuan-moe`| — |none (fails before config extraction) | audited-direct-loader-conditional-union | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported|CONFIG_DEFERRED — Hunyuan-MoE applies Q/K normalization after RoPE and runs normalized routed experts with an always-parallel shared branch in every layer. |
232
+
|`hunyuan-moe`| — |model=`hunyuan_moe_gguf`; module=`hunyuan_moe_gguf`; tensor=`hunyuan_moe`| audited-direct-loader-conditional-union | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=rejected|RUNTIME_EVIDENCE_PENDING / FLOAT_IMPORT_ONLY — The mobius graph uses floating Linear modules for this architecture, so no MatMulNBits or BlockQuantizedMatMul target can consume preserved GGUF projection weights. |
233
233
|`hunyuan_vl`| — | none (fails before config extraction) | exact-direct-loader-conditional-union | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported | CONFIG_DEFERRED — The pinned Hunyuan-VL decoder uses its own M-RoPE and Q/K-normalized text contract and pairs with a hunyuanvl clip sidecar. |
234
234
|`hy_v3`| — | model=`hy_v3`; tensor=`llama`+`hy_v3_extras`| audited-direct-loader-conditional-union | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=rejected | RUNTIME_EVIDENCE_PENDING / FLOAT_IMPORT_ONLY — Exact full-attention trunk and independently cached NextN sidecar graphs are covered, including per-head Q/K RMSNorm, a contiguous dense prefix, selection-biased sigmoid routed SwiGLU experts, and an ungated shared expert. |
235
235
|`internlm2`| — | model=`internlm2`; tensor=`llama`| not claimed | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=rejected | RUNTIME_EVIDENCE_PENDING / FLOAT_IMPORT_ONLY — The mobius graph uses floating Linear modules for this architecture, so no MatMulNBits or BlockQuantizedMatMul target can consume preserved GGUF projection weights. |
0 commit comments