Repository navigation
Commit 27c24d3
Prove GGUF quantized runtime capabilities (#661)
## Summary
Follow-up to merged #659 and rebased onto current `main` (`cc3647ea`).
- generate `testdata/evidence/gguf_quantization_capabilities.json` for
all 25 stored qtypes and every projection, affine-only, output,
embedding, expert-major, and non-MatMul route
- separate parse/dequantization capability, packed target storage,
source fidelity, operator ABI, compute capability, and real runtime
evidence
- retain Q4_K/Q6_K as supported lossy affine INT4 target-storage routes
while reporting `source_fidelity=false`; dequantize/requantize is never
labeled preserved
- retain qtype-level runtime support only for the exact Q8_0
projection/output/embedding CPU route
- keep all IQ/MXFP4 `pkg.nxrt::BlockQuantizedMatMul/v1` execution
deferred; byte ABI compatibility is not execution evidence
- strictly parse runtime import routes as duplicate-free JSON and
require top-level `preserve_quantization` to be exactly boolean `true`
- persist and hash-verify `quantization_report.json` in every evidenced
graph/runtime package
## Pinned artifacts
Selected total: **1,763,532,768 bytes** (1.64 GiB), below the 16 GiB
policy.
| Artifact | Bytes | SHA-256 | Result |
|---|---:|---|---|
|
`Qwen/Qwen2.5-0.5B-Instruct-GGUF@9217f5db79a29953eb74d5343926648285ec7e67/qwen2.5-0.5b-instruct-q8_0.gguf`
| 675,710,816 |
`ca59ca7f13d0e15a8cfa77bd17e65d24f6844b554a7b6c12e07a5f89ff76844e` |
Q8_0 source-faithful packed target; full logits, prefill + 20 decode
steps, replay, rollback, reorder, deterministic generation; ORT 1.29.0
CPU and ORT GenAI 0.15.2 passed |
|
`unsloth/SmolLM2-135M-Instruct-GGUF@9e6855bc4be717fca1ef21360a1db4b29d5c559a/SmolLM2-135M-Instruct-Q4_K_M.gguf`
| 105,454,144 |
`ed5fa30c487b282ec156c29062f1222e5c20875a944ac98289dbd242e947f747` |
lossy INT4 affine block-32 target storage succeeds with
`source_fidelity=false`; explicit float import passed same-artifact
full-logit prefill/decode and deterministic generation; runtime support
remains deferred |
|
`neopolita/smollm-135m-gguf@22cca988936eafe92908e7558907c3964e10bba7/ggml-model-f16.gguf`
| 270,885,504 |
`ec8c775c16944a7e4b5251f97b3f848500dcc3e701b0d492ce9055cea42138a2` |
float package/runtime evidence retained and regenerated post-#668 |
|
`LiquidAI/LFM2-350M-GGUF@8fdc9d526b7ed346b19257551b05816c7912ecc2/LFM2-350M-F16.gguf`
| 711,482,304 |
`379ffdcbf08147c0313f6f1ce7ff558a2bc935eda633f4b46c52347032419c42` |
heterogeneous convolution/KV state package/runtime evidence retained and
regenerated post-#668 |
## Post-#668 package identities
| Route | Graph SHA-256 | Runtime package SHA-256 |
|---|---|---|
| SmolLM F16 / ONNX runtime |
`4b608b099fb17471f342c925c20173f297abd0f8456c9e96a11b1d044272d1ad` |
`57038e28e83a2b4251e334b6098f59b4344c7e526746e29d9fa42eeaebfcbddc` |
| SmolLM F16 / ORT GenAI | same graph |
`15d0218a4b326648d514a98c4f073251c674312b1faa83bec9022cc91daa0a53` |
| Qwen2.5 Q8_0 / ORT GenAI |
`240e5e374803c94efdb17eee39c09b0d3e9aed10b6d8b4e1c92e39918ea2155e` |
`5029bbfcdd8d1ae1d2b0ed9587cc288a68cb38bb7f92b9e10f9bf64a436b1762` |
| LFM2 F16 / ORT GenAI |
`27e4ebb4c0c8b6c01ee57fa7825f34c5ddadc8ca5dc0c75d989e4507d4dcdfdb` |
`ef3816d4f93c7061fd4653248629f0439d6ad1c623bdd0f27d31fe0349cb3505` |
Every graph and runtime identity includes validated
`quantization_report.json`; tests assert exact report save/load
equality.
## Validation
- 394 focused capability/registry/report/repacker/evidence/doc tests
passed
- 8,488 broad serial tests passed, 62 skipped, 12 deselected, 1 subtest
passed
- all 3 pinned real runtime-evidence routes passed together with zero
process exit
- pinned Q4_K_M lossy-target + explicit-float qualification passed
- initialized pinned Ruff/format linters passed
- strict changed-source mypy passed
- final GPT-5.6 Sol medium independent review: no findings
- all 17 prior lint review threads replied to and resolved
## Limitations
- Native IQ/MXFP4 execution remains deferred pending pinned
real-artifact full-logit and deterministic native-runtime proof.
- ORT GenAI is optional downstream evidence and pinned here to 0.15.2;
direct ORT evidence is pinned to 1.29.0 CPU.
Do not merge directly.
---------
Signed-off-by: Justin Chu <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: da8e7ec7-2747-41aa-99eb-05a1c5227ce21 parent cc3647e commit 27c24d3
15 files changed
Lines changed: 3690 additions & 68 deletions
File tree
- .github/workflows
- docs/api
- scripts
- src/mobius/integrations/gguf
- testdata/evidence
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
| |||
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
23 | 33 | | |
24 | | - | |
| 34 | + | |
25 | 35 | | |
26 | | - | |
| 36 | + | |
27 | 37 | | |
28 | 38 | | |
29 | 39 | | |
30 | 40 | | |
| 41 | + | |
31 | 42 | | |
32 | 43 | | |
33 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
316 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
317 | 319 | | |
318 | 320 | | |
319 | 321 | | |
| |||
570 | 572 | | |
571 | 573 | | |
572 | 574 | | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
573 | 580 | | |
574 | 581 | | |
575 | 582 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
38 | | - | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| |||
0 commit comments