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 aec175f
Browse filesBrowse the repository at this point in the historyBrowse files
## Summary
- add a dedicated Kimi-K3 config, model, and heterogeneous-state task
with exact KDA/NoPE gated-MLA scheduling, AttnRes mixing, SiTU latent
MoE, shared experts, and an untied output head
- import pinned llama.cpp `kimi-k3` GGUF metadata and tensors with
strict metadata/tensor/shape/storage closure and malformed-input
rejection
- preserve lossless quantization routes under #609: separate rank-3 MLA
projections fail closed unless explicitly dequantized, while fused Q4_0
KV-B is split by exact packed-row reordering across weights, scales, and
zero-points
- preserve valid KDA convolution history across padding, validate
kernel/state/task contracts, and cover replay, reorder, float/quantized
import, roundtrip, CLI, and negative paths
- keep generic OGA runtime packaging truthfully deferred under #605
because released cache schemas cannot represent the heterogeneous state
ABI
## Reconstruction
Reconstructed after #619 was admin squash-merged. The PR contains only
the four-commit Kimi-K3 delta and review follow-ups on live-main base
`04b7e3f6f2d9de5d5741aafb8fa6375a18eee693`. This preserves #611
graph-driven ORT GenAI decoder configs, #618 ORT GenAI end-to-end CI,
#624 generic decoder config migration, and the Kimi Linear, MiniMax,
runtime, and fail-closed quantization changes already on main. `git
range-diff` reports all four replayed commits as patch-identical (`=`).
## Validation
- Kimi-K3 model and GGUF tests: 30 passed
- focused builder/build-graph Kimi-K3 checks: 4 passed, 1900 deselected
- affected generic ORT config/runtime/E2E tests: 250 passed
- affected OGA metadata tests: 94 passed, 1 skipped
- broad non-integration suite: 7765 passed, 56 skipped, 1 subtest passed
- repository lintrunner passed
- final GPT-5.6 Sol medium review reported no findings
## Real-checkpoint note
The pinned
`yujiepan/kimi-k3-tiny-random@a5c86ee03f07f7b141508b0108304a1447fbb345`
checkpoint was assessed, but macOS cannot run its required `fla-core`
kernels and its selective compressed-tensors MXFP4 expert representation
is unsupported by the generic HF loader. That format fails explicitly
rather than producing an incorrectly quantized graph.
---------
Signed-off-by: Justin Chu <[email protected]>
Co-authored-by: Copilot App <[email protected]>
| Tokenizer pre identifiers | 87 | 56 semantic groups; all default to deferred and become materializable only from a validated embedded `tokenizer.huggingface.json` or an exact pinned source in runtime evidence |
@@ -414,7 +414,7 @@ before graph construction or durable output.
414
414
|`jamba`| — | model=`jamba`; tensor=`jamba`| not claimed | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=supported | Exact mixed attention/Mamba and dense/routed-MoE schedules, strict tensor closure and shapes, GGUF value transforms, compatible projection quantization, value-checked expert ordering, reduced Transformers parity, and multi-token ORT state threading, reorder, and replay are covered. Generic ORT GenAI runtime packaging remains deferred because its released cache schema cannot represent heterogeneous KV, convolution, and recurrent state slots; tracked by #605. |
415
415
|`jina-bert-v2`| — | none (fails before config extraction) | not claimed | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported | JinaBERT v2 uses ALiBi, optional full-width Q/K norms, an extra attention norm, and either separate or fused GeGLU inputs. Mobius has no graph with that exact combination. |
416
416
|`jina-bert-v3`| — | none (fails before config extraction) | not claimed | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported | JinaBERT v3 uses RoPE and may alternate dense GELU and routed MoE layers. BertModel has absolute positions and no MoE path. |
417
-
|`kimi-k3`| — |none (fails before config extraction) | not claimed | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported |Kimi-K3 alternates KDA recurrent and NoPE MLA layers and requires convolution plus matrix state, sigmoid routed latent MoE with SiTU experts, optional shared experts, and cross-layer residual banks. Kimi-Linear is not an alias: its gates, expert activation, latent projections, and residual contract differ. Mobius has no exact graph or mixed-state task for either ABI. |
417
+
|`kimi-k3`| — |model=`kimi_k3`; tensor=`kimi_k3`| not claimed | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=supported |The exact KDA/NoPE gated-MLA schedule, four-state recurrent ABI, attention-residual banks, Stable LatentMoE routing, SiTU activation, strict metadata/tensor closure, and compatible projection quantization are supported. Released generic ORT GenAI cache schemas cannot represent the heterogeneous KV plus convolution/matrix state ABI; tracked by onnxruntime/mobius#605. |
418
418
|`kimi-linear`| — | model=`kimi_linear`; tensor=`kimi_linear`| not claimed | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=supported | The exact KDA/NoPE-MLA schedule, four-state recurrent ABI, dense/MoE topology, correction-bias routing, pinned metadata, tensor closure, and compatible MatMul/expert quantization are supported. Released generic ORT GenAI cache schemas cannot represent heterogeneous KV plus three convolution histories and a matrix state, and representative real-weight GGUF evidence is pending; package runtime remains tracked by onnxruntime/mobius#605. |
419
419
|`laguna`| — | none (fails before config extraction) | audited-direct-loader-conditional-union | config=deferred; tensor_map=deferred; graph=deferred; runtime=deferred; quantized_import=supported | Laguna combines per-head-or-element softplus attention gates, dual-RoPE interleaved sliding-window attention, a dense prefix, and sigmoid correction-biased routed/shared experts. Mobius has no exact graph or iSWA cache contract. |
420
420
|`lfm2`| — | model=`lfm2`; tensor=`lfm2`| not claimed | config=supported; tensor_map=supported; graph=supported; runtime=deferred; quantized_import=supported | Config extraction, exact pinned tensor-name closure, GGUF value transforms, and synthetic recurrent-state execution are covered, but no representative real-weight GGUF has yet passed independent full-logit parity and deterministic multi-token stateful ORT generation. Runtime packaging remains deferred until that evidence exists. |
@@ -620,17 +620,19 @@ represents that auxiliary attention+MoE head.
620
620
621
621
### Remaining hybrid cohort
622
622
623
-
`bailingmoe3`, `deepseek4`, and `kimi-k3` are explicitly
623
+
`bailingmoe3`and `deepseek4` are explicitly
624
624
deferred before config extraction. Their loader inventories are
625
625
suffix-exact in the pinned census, but none has an exact Mobius graph plus state
626
626
task. No aliases are accepted.
627
627
628
-
- BailingMoE3 and Kimi-K3 mix KDA recurrence with MLA. A recurrent
629
-
layer carries three Q/K/V convolution histories and a per-head matrix state;
630
-
an MLA layer carries attention cache. BailingMoE3 also has gated attention,
628
+
- BailingMoE3 mixes KDA recurrence with MLA, gated attention,
631
629
correction-biased routed/shared SwiGLU experts, and optional single-layer
632
-
NextN storage. Kimi-K3 adds SiTU, latent expert projections, and cross-layer
633
-
residual banks.
630
+
NextN storage. Its exact graph and state task remain deferred.
631
+
- Kimi-K3 now has a dedicated text graph and task. It preserves Q-LoRA gated
632
+
NoPE MLA, lower-bounded KDA decay with full-rank output gates, cross-layer
633
+
attention residuals, and Stable LatentMoE with SiTU. Each recurrent layer
634
+
carries three Q/K/V convolution histories and one FP32 matrix state; static
635
+
cache and generic OGA packaging remain deferred under #605.
634
636
- Kimi-Linear now has a dedicated graph and task. The importer reconstructs the
635
637
exact per-layer KDA/NoPE-MLA schedule from `attention.head_count_kv`, validates
636
638
dense-versus-MoE closure, restores `A_log`, convolution, and split MLA K/V-B
0 commit comments