Repository navigation
Commit 3b2c9cd
Add conventional dense GGUF architectures (#635)
## Summary
Promotes eight conventional GGUF decoder architectures whose pinned
llama.cpp ABI closes over existing Mobius components:
- `bloom` → `bloom`
- `codeshell` → `kclgpt`
- `command-r` → `command_r`
- `jais2` → `jais2`
- `orion` → `orion`
- `qwen` → `qwen`
- `starcoder` → `gpt_bigcode`
- `xverse` → `xverse`
The change adds strict metadata/tensor/shape closure,
architecture-specific config normalization and weight transforms,
value-based QKV/permutation tests, truthful Hugging Face build paths,
generated census updates, and generic decoder metadata compatible with
pinned `onnxruntime-genai==0.15.2`.
## Support and evidence
- **L1:** config extraction, exact pinned tensor mapping/closure, graph
construction, graph-initializer ownership, and weight alignment for
every promoted architecture.
- **L3:** synthetic parity where a constructible Transformers reference
exists; dedicated value-based tests cover CodeShell fused QKV, Bloom
interleaving, and Xverse Q/K inverse permutation.
- **Quantized import:** supported only for split-projection `command-r`
and `jais2`; rejected for fused/permuted projection routes that cannot
safely transform packed blocks.
- **Runtime:** deferred for all eight pending representative real-weight
GGUF ORT parity and deterministic generation evidence.
- **Metadata:** generic decoder config remains pinned to OGA 0.15.2; the
network-free runtime probe passes.
## Waivers
- Real-weight L4/L5 goldens are waived for `jais2` (smallest public
checkpoint 8B), `kclgpt`/CodeShell (7B), `orion` (14B), and `xverse`
(7B): no bounded small public artifacts exist for CPU CI. The waiver
text claims only the evidence actually run.
- No real GGUF CLI/runtime support is claimed; runtime verdicts remain
deferred.
- The full model coverage suite has two unrelated baseline failures on
`main`: `kimi_k3` and `lfm2_moe` lack YAML cases. The four new per-model
waiver and integrity checks pass.
## Residual conventional dense/encoder architectures
Deferred for materially different contracts rather than aliased
unsafely:
- Encoders `eurobert`, `jina-bert-v2`, `jina-bert-v3`, `neo-bert`,
`nomic-bert`: pre/post-norm, RoPE/ALiBi, gated/parallel FFN, or
conditional topology differences.
- `bitnet`, `gemma-embedding`: special quantization/sub-norm or
bidirectional embedding/pooling ABI.
- `gptneox`, `mpt`, `openelm`: loader unions or per-layer arrays not
represented by the current graph.
- `maincoder`, `minicpm3`, `plm`, `nanbeige`, `pangu-embedded`,
`plamo3`, `apertus`: special attention order, MLA/cache, logical layer
reuse, LongRoPE tensors, alternating SWA, or serialized per-dimension
RoPE factors.
- `jais`, `plamo`: MuP/ALiBi scaling or parallel RMS/shuffle transforms
need dedicated graph/value work.
MoE, multimodal, and recurrent/special-state families remain owned by
separate workstreams.
## Validation
- Focused GGUF/build/config/tensor/weight suite: 3,522 passed, 47
skipped, 39 xfailed.
- Broad non-integration suite after final fixes: 7,927 passed, 57
skipped.
- Final parity regression subset: 92 passed, 1 skipped.
- New coverage waiver integrity: 10 passed, 4 skipped.
- OGA 0.15.2 network-free probe: 2 passed.
- Generated GGUF docs check: clean.
- Initialized lintrunner format/lint: clean.
- GPT-5.6 Sol medium architecture and regression reviews: final pass
clean after addressing all findings.
Signed-off-by: Justin Chu <[email protected]>
Co-authored-by: Copilot App <[email protected]>1 parent 8513774 commit 3b2c9cd
23 files changed
Lines changed: 1467 additions & 25 deletions
File tree
- docs/api
- src/mobius
- _configs
- integrations/gguf
- models
- tests
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
| 112 | + | |
109 | 113 | | |
110 | 114 | | |
111 | 115 | | |
| |||
121 | 125 | | |
122 | 126 | | |
123 | 127 | | |
| 128 | + | |
124 | 129 | | |
125 | 130 | | |
126 | 131 | | |
| |||
153 | 158 | | |
154 | 159 | | |
155 | 160 | | |
| 161 | + | |
156 | 162 | | |
157 | 163 | | |
158 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1455 | 1455 | | |
1456 | 1456 | | |
1457 | 1457 | | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
1458 | 1543 | | |
1459 | 1544 | | |
1460 | 1545 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
199 | 274 | | |
200 | 275 | | |
201 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| |||
87 | 91 | | |
88 | 92 | | |
89 | 93 | | |
| 94 | + | |
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
| |||
152 | 157 | | |
153 | 158 | | |
154 | 159 | | |
155 | | - | |
| 160 | + | |
156 | 161 | | |
157 | 162 | | |
158 | 163 | | |
| |||
420 | 425 | | |
421 | 426 | | |
422 | 427 | | |
423 | | - | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
424 | 431 | | |
425 | 432 | | |
426 | 433 | | |
| |||
433 | 440 | | |
434 | 441 | | |
435 | 442 | | |
| 443 | + | |
436 | 444 | | |
437 | 445 | | |
438 | 446 | | |
| |||
445 | 453 | | |
446 | 454 | | |
447 | 455 | | |
| 456 | + | |
448 | 457 | | |
449 | 458 | | |
450 | 459 | | |
| |||
821 | 830 | | |
822 | 831 | | |
823 | 832 | | |
824 | | - | |
| 833 | + | |
825 | 834 | | |
826 | 835 | | |
827 | 836 | | |
| |||
830 | 839 | | |
831 | 840 | | |
832 | 841 | | |
833 | | - | |
| 842 | + | |
834 | 843 | | |
835 | 844 | | |
836 | 845 | | |
| |||
1013 | 1022 | | |
1014 | 1023 | | |
1015 | 1024 | | |
| 1025 | + | |
| 1026 | + | |
1016 | 1027 | | |
1017 | 1028 | | |
1018 | 1029 | | |
1019 | 1030 | | |
1020 | 1031 | | |
| 1032 | + | |
1021 | 1033 | | |
1022 | 1034 | | |
1023 | 1035 | | |
| |||
1068 | 1080 | | |
1069 | 1081 | | |
1070 | 1082 | | |
| 1083 | + | |
1071 | 1084 | | |
1072 | 1085 | | |
1073 | 1086 | | |
| |||
0 commit comments