Repository navigation
Commit e8f1ad0
Promote first GGUF text architecture cohort (#677)
## Summary
Promote five previously `immediately-implementable` GGUF architecture
routes with architecture-owned metadata, tensor, graph, and fail-closed
capability contracts:
- `granite`: exact dense/MoE union, Granite scaling, optional
biases/shared experts, fused/split QKV transforms, tied output, and
validated LongRoPE/no-RoPE paths. Packed import remains supported only
where the transforms are proven; unmapped YaRN metadata is rejected.
- `jina-bert-v3`: dedicated dense RoPE encoder with fused/split QKV
closure, post-norm GELU blocks, pooling, singleton token-type transform,
and mandatory encoder-only task/cache guards. Unreachable MoE and packed
preservation are rejected.
- `maincoder`: dedicated post-RoPE learned Q/K RMSNorm decoder with tied
output and exact dynamic/static KV semantics. Packed import is rejected.
- `plamo`: shared-pre-norm parallel attention/SwiGLU decoder, cyclic
5-to-40-head KV expansion/cache, and inverse converter Q/output
shuffles. Packed preservation, static cache, and external weight reuse
are rejected.
- `smallthinker`: unnormalized-input routing, ReGLU experts,
softmax/sigmoid gating normalization, and exact SWA/NoPE/local-RoPE
schedules. Non-integral gating enums and unproven routing scales fail
closed; packed import and static cache are rejected.
All five routes keep downstream runtime packaging explicitly deferred
pending representative real-weight parity. No production routing pins,
defaults, or rejects Hugging Face revisions by `model_id`;
`revision=None` and arbitrary explicit revisions are unchanged.
Immutable Maincoder/Jina revisions are test-only. PLaMo/SmallThinker use
explicit model-coverage exemptions because their exact semantics are
restored only by GGUF metadata postprocessing, not a native HF config
alias.
The generated GGUF census/docs now remove these routes from
`immediately-implementable` and record their exact import, quantization,
and runtime dispositions.
## Review corrections
- Exclude `encoder_fused_qkv` from unrelated route fingerprints while
retaining it for Jina-v3; regression coverage proves the llama, qwen2,
lfm2, and qwen35moe evidence routes are invariant.
- Add immutable test-only L2 IDs/revisions for Maincoder and Jina-v3;
document explicit GGUF-only exemptions for PLaMo and SmallThinker.
- Add Jina-v3 to the encoder-only guard so static cache and incompatible
task overrides fail before task dispatch.
- Reject Granite YaRN until every serialized parameter, including
`attn_factor`, has an exact mapping.
- Require SmallThinker gating enums to be finite integers and reject any
nonzero `expert_weights_scale` absent from the pinned loader contract.
## Validation
- Rebased onto `origin/main` `20a29ed2a935f01ec0cf2fc82939e50bc71dcdea`.
- Five-finding regression selection: **96 passed, 5 skipped**.
- Focused cohort suite: **575 passed, 33 skipped**.
- Exact model coverage: **786 passed, 257 justified skips**.
- Pinned Maincoder/Jina L2 config and full-graph validation: **6
passed**.
- Broad serial non-integration suite: **8,703 passed, 64 skipped, 12
deselected**.
- Generated GGUF docs/registry suite: **1,146 passed, 1 skipped**.
- Full `lintrunner` formatting/lint and `git diff --check` pass.
- Configured mypy was rerun; it reports the repository's existing
type-error baseline, with no diagnostic on a changed line. The new route
modules retain their prior targeted type-check evidence.
- Independent review of the complete correction diff found no
significant issues.
## Artifact budget and cleanup
Recorded bounded artifact/source reads total at most **34,042,487
bytes** plus small metadata responses, far below the **16 GiB** limit.
Only two 16 MiB GGUF ranges were read (Maincoder and JinaBERT-v3);
Granite, PLaMo, and SmallThinker downloaded no model payloads. The
correction pass downloaded config-only L2 metadata, not model weights.
Sparse headers, pinned source scratch files, transient outputs, caches,
and temporary packages were deleted. No `.gguf`, `.onnx`,
`.safetensors`, or model `.bin` payload remains in the worktree.
## Deferred evidence / waivers
- Representative real-weight full-logit prefill/cached-decode parity and
deterministic generation remain deferred for all five routes; suitable
immutable artifacts either exceed the per-route budget or were not
required to prove the narrowed import contract.
- ORT GenAI/runtime packaging, CUDA/DML, L4/L5 goldens, and deployment
claims remain deferred.
- JinaBERT-v3, Maincoder, PLaMo, and SmallThinker native packed
quantization remain rejected. Granite packed import is covered by
synthetic packed graph/value evidence, not a real-weight runtime parity
claim.
- PLaMo’s smallest immutable public GGUF is 4,910,733,280 bytes, above
the 3 GiB route ceiling, so no payload was downloaded.
---------
Signed-off-by: Justin Chu <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 71862fcb-bc9a-4734-b047-b5376afabc3e1 parent b0fb5af commit e8f1ad0
33 files changed
Lines changed: 4638 additions & 156 deletions
File tree
- docs/api
- src/mobius
- _configs
- integrations/gguf
- _upstream_data
- models
- tasks
- tests
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
| 489 | + | |
489 | 490 | | |
490 | 491 | | |
491 | 492 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| 125 | + | |
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
| |||
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
| 146 | + | |
144 | 147 | | |
145 | 148 | | |
146 | 149 | | |
| |||
169 | 172 | | |
170 | 173 | | |
171 | 174 | | |
| 175 | + | |
172 | 176 | | |
173 | 177 | | |
174 | 178 | | |
| |||
477 | 481 | | |
478 | 482 | | |
479 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
480 | 489 | | |
481 | 490 | | |
482 | 491 | | |
| |||
558 | 567 | | |
559 | 568 | | |
560 | 569 | | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
561 | 574 | | |
562 | 575 | | |
563 | 576 | | |
| |||
635 | 648 | | |
636 | 649 | | |
637 | 650 | | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
638 | 657 | | |
639 | 658 | | |
640 | 659 | | |
| |||
882 | 901 | | |
883 | 902 | | |
884 | 903 | | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
885 | 910 | | |
886 | 911 | | |
887 | 912 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| |||
378 | 379 | | |
379 | 380 | | |
380 | 381 | | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
| 382 | + | |
387 | 383 | | |
388 | 384 | | |
389 | 385 | | |
| |||
438 | 434 | | |
439 | 435 | | |
440 | 436 | | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | 437 | | |
447 | 438 | | |
448 | 439 | | |
| |||
481 | 472 | | |
482 | 473 | | |
483 | 474 | | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | 475 | | |
491 | 476 | | |
492 | 477 | | |
| |||
1345 | 1330 | | |
1346 | 1331 | | |
1347 | 1332 | | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
1348 | 1357 | | |
1349 | 1358 | | |
1350 | 1359 | | |
| |||
1421 | 1430 | | |
1422 | 1431 | | |
1423 | 1432 | | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
1424 | 1453 | | |
1425 | 1454 | | |
1426 | 1455 | | |
| |||
1647 | 1676 | | |
1648 | 1677 | | |
1649 | 1678 | | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
1650 | 1700 | | |
1651 | 1701 | | |
1652 | 1702 | | |
| |||
1784 | 1834 | | |
1785 | 1835 | | |
1786 | 1836 | | |
1787 | | - | |
1788 | | - | |
1789 | | - | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
1790 | 1858 | | |
| 1859 | + | |
1791 | 1860 | | |
1792 | 1861 | | |
1793 | 1862 | | |
| |||
2359 | 2428 | | |
2360 | 2429 | | |
2361 | 2430 | | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
| 2445 | + | |
| 2446 | + | |
| 2447 | + | |
| 2448 | + | |
| 2449 | + | |
| 2450 | + | |
| 2451 | + | |
| 2452 | + | |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
2362 | 2460 | | |
2363 | 2461 | | |
2364 | 2462 | | |
| |||
2388 | 2486 | | |
2389 | 2487 | | |
2390 | 2488 | | |
| 2489 | + | |
2391 | 2490 | | |
2392 | 2491 | | |
2393 | 2492 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| 85 | + | |
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| |||
185 | 188 | | |
186 | 189 | | |
187 | 190 | | |
| 191 | + | |
188 | 192 | | |
189 | 193 | | |
190 | 194 | | |
| |||
316 | 320 | | |
317 | 321 | | |
318 | 322 | | |
| 323 | + | |
319 | 324 | | |
320 | 325 | | |
321 | 326 | | |
322 | 327 | | |
| 328 | + | |
323 | 329 | | |
324 | 330 | | |
325 | 331 | | |
| |||
336 | 342 | | |
337 | 343 | | |
338 | 344 | | |
| 345 | + | |
339 | 346 | | |
340 | 347 | | |
341 | 348 | | |
| 349 | + | |
342 | 350 | | |
343 | 351 | | |
344 | 352 | | |
| |||
1091 | 1099 | | |
1092 | 1100 | | |
1093 | 1101 | | |
1094 | | - | |
1095 | 1102 | | |
1096 | 1103 | | |
1097 | 1104 | | |
| |||
1104 | 1111 | | |
1105 | 1112 | | |
1106 | 1113 | | |
1107 | | - | |
1108 | 1114 | | |
1109 | 1115 | | |
1110 | 1116 | | |
| |||
1237 | 1243 | | |
1238 | 1244 | | |
1239 | 1245 | | |
1240 | | - | |
1241 | 1246 | | |
1242 | 1247 | | |
1243 | 1248 | | |
| |||
0 commit comments