Repository navigation
Add truthful GGUF MTP runtime evidence - #692
Merged
Merged
Conversation
Performance Comparison
|
Emit external target/MTP cache contracts and artifact, graph, config, and package hashes without gating export or claiming downstream ORT GenAI support. Record exact Qwen3.6 combined/split and Hy3 artifact identities, and exercise direct ORT proposal acceptance, rollback, replay, reorder, and target-only equality on a reduced independent coordinator. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends Mobius’s GGUF + MTP export story by making the “what we can prove” vs “what remains unvalidated” explicit and machine-readable. It adds pinned immutable GGUF artifact/header identities and downstream-runtime limitations as structured evidence, and ensures MTP sidecars export an external coordination contract while clearly marking combined target/MTP execution as runtime_unvalidated.
Changes:
- Add a new GGUF MTP runtime-evidence registry (qwen35 + hy_v3) and surface it in the generated quantization capability matrix and docs.
- Emit
mtp_config.jsonfor ORT GenAI exports (including attached sidecars) with explicit cache namespace bindings andruntime_unvalidatedstatus, plus additional tests. - Extend GGUF runtime packaging to record package/config/tokenizer hash identities and separate target/MTP cache namespaces (without gating export on real-artifact validation).
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| testdata/evidence/gguf_quantization_capabilities.json | Adds mtp_runtime_evidence section with pinned unvalidated MTP runtime facts. |
| src/mobius/integrations/ort_genai/auto_export.py | Emits mtp_config.json contract + adds tokenizer copy option plumbing. |
| src/mobius/integrations/ort_genai/auto_export_test.py | Tests attached-sidecar MTP cache contract + unvalidated status metadata. |
| src/mobius/integrations/gguf/_runtime_package.py | Writes mtp_runtime_status.json with hashes and cache namespace separation; adds safety checks. |
| src/mobius/integrations/gguf/_runtime_package_test.py | Adds coverage for MTP runtime status hashing and new rejection behavior. |
| src/mobius/integrations/gguf/_quant_capabilities.py | Integrates MTP runtime evidence into capability matrix output. |
| src/mobius/integrations/gguf/_quant_capabilities_test.py | Ensures MTP runtime evidence is machine-readable and never selected as “supported”. |
| src/mobius/integrations/gguf/_mtp_test.py | Adds identity + coordinator contract tests (accept/reject/rollback/reorder + target-only equality). |
| src/mobius/integrations/gguf/_mtp_runtime_evidence.py | New canonical registry + validation for immutable MTP artifact/runtime-status records. |
| src/mobius/integrations/gguf/_mtp_runtime_evidence_test.py | Closure tests for evidence invariants and pinned downstream ABI limitations. |
| src/mobius/integrations/gguf/_hy_v3_test.py | Adds cache namespace aliasing guard assertions for HyV3 MTP. |
| src/mobius/integrations/gguf/_docs.py | Extends runtime evidence table to include MTP runtime-unvalidated records. |
| src/mobius/_model_package.py | Updates save() docs to reflect collision-free manifest-based MTP sidecar directory naming. |
| docs/cli_reference.md | Updates CLI docs: tokenizer materialization becomes warning-based; MTP exports emit unvalidated coordination metadata. |
| docs/api/build_from_gguf.md | Adds MTP runtime-unvalidated evidence rows to runtime-evidence section. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
justinchuby
force-pushed
the
justinchuby-prove-mtp-runtime-evidence
branch
from
August 28, 2026 16:43
e2b6cb5 to
9c5aaab
Compare
Derive ORT MTP metadata from the current in-memory package so stale output manifests cannot diverge from ModelPackage.save. Cover both save/config orders and stale sidecar layouts, preserve the authoritative NextN count fallback, and keep local-only tokenizer misses best-effort. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Prefer authoritative GGUF NextN metadata over default-zero architecture fields, reject absent or invalid prediction counts, and never infer proposal width from hidden-layer depth. Keep tokenizer copying best-effort only for missing optional Hub files while propagating online cache, permission, disk, network, and destination-write failures across supported Hub versions. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
runtime_unvalidatedstatus without claiming ORT GenAI orchestration supportgguf.GGUFReader, threads independent target/MTP caches, and exercises accept, reject, rollback, replay, reorder, and target-only equalityImmutable artifact evidence
qwen35
localweights/Qwen3.6-27B-MTP-Q4_K_M-Q8nextn-GGUF@bdc8bc1ca4d45e1152d54c4e5f1389bc7bf6e439Qwen3.6-27B-MTP-Q4_K_M-Q8nextn.gguf6cdb1aabb6ee711938df4192938b51228df9274f01c8d7a5ff404915ad342a7cecf4be7b831ea56596022a4cd974930f59b37f5e64ce5b62bbe21686e02e07a8ggml-org/Qwen3.6-27B-GGUF@8a7ee08e8b9bfb857107ecc25a5599d2f38b76f8Qwen/Qwen3.6-27B@6a9e13bd6fc8f0983b9b99948120bc37f49c13e9The reduced coordinator ran 51 natural MTP proposals / 102 emitted target tokens: 1 accepted, 50 rejected, 50 dual-cache rollbacks. The accepted transaction is independently replayed; every rejected target and MTP transaction is rolled back and replayed; both cache namespaces are batch-reordered; output token IDs and final target state equal target-only execution exactly.
hy_v3
AngelSlim/Hy3-GGUF@31b453f4d9b647c74e4c4f5cba632eb512332c91Hy3-IQ1_M-mtp.gguf: 91,756,066,272 bytes, LFS SHA-256c1fe984fef6f23fd9eb144e41ce6824e3941ed0a8b6b8f9f3e63da0c2a1320c2Hy3-IQ1_M.gguf: 89,446,312,384 bytes, LFS SHA-2568c4195718dc24384a38de1c492f4bca7d21447789714d232b0a4d9cd0bb0c806tencent/Hy3@a960ebc3da325ba167f069f76c41eb62c9280d22Runtime status and non-claims
CPUExecutionProvider; ONNX Runtime GenAI 0.15.2, source taged5f4e87147731e5b07810f9f5c90103b3603cdfruntime_unvalidatedstatus only and never an export gatepre=qwen35andpre=hunyuan-densetokenizer behavior remains separately deferred; tokenizer assets are best-effort and do not gate graph/config/package exportValidation
f494a75b62ce00e550d33d99797fc0ace30becbfWaivers