Repository navigation
Record final GGUF tokenizer artifact blockers - #684
Merged
Merged
Conversation
Bind the BAILINGMOE, CHATGLM4, and TINY_AYA alias groups to immutable GGUF headers and official tokenizer assets. Record independent pinned llama.cpp tokenization and detokenization mismatches, then move all seven exact routes to compiled-semantics blockers without enabling production materialization. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Performance Comparison
|
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new “final alias-group” GGUF tokenizer artifact evidence workflow to record and lock down fail-closed semantic blocker evidence (including independent materialization and detokenization witnesses) for the remaining tokenizer-artifact-evidence routes, and reclassifies those routes into tokenizer-compiled-semantics without enabling production tokenizer paths.
Changes:
- Introduces a deterministic, network-free generator + committed inputs/fixture to reproduce final tokenizer artifact blocker evidence.
- Extends
GGUFTokenizerBlockerEvidenceto carry alias-group closure (blocked identifiers, materialized identity, pipeline/config hashes, dispatch discriminator, detokenization mismatch evidence) and validates that evidence is complete/consistent. - Updates tokenizer census / route census / docs rendering to represent the new “pinned-candidate-source-semantic-mismatch” blocker state and to show evidence IDs in documentation.
Reviewed changes
Copilot reviewed 12 out of 13 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/generate_tokenizer_artifact_evidence_test.py | Network-free tests asserting the committed final artifact evidence + inputs replay exactly and fail closed. |
| tests/data/gguf_tokenizer_artifact_evidence.json | Checked-in evidence fixture binding routes to pinned artifacts and official tokenizer revisions. |
| src/mobius/integrations/gguf/_tokenizer_evidence.py | Adds alias-group blocker evidence fields + stronger invariants; registers three new blocker records. |
| src/mobius/integrations/gguf/_tokenizer_evidence_test.py | Adds coverage for the new alias-blocker invariants and updates census expectations. |
| src/mobius/integrations/gguf/_tokenizer_census.py | Incorporates blocker evidence into the census as a distinct “mismatch” status/category. |
| src/mobius/integrations/gguf/_route_census.py | Routes the new blocker category into tokenizer-compiled-semantics dependency blocking. |
| src/mobius/integrations/gguf/_route_census_test.py | Updates counts and asserts the final alias identifiers are classified into the intended batch/category. |
| src/mobius/integrations/gguf/_docs.py | Renders blocker evidence IDs for mismatches and updates the refresh note for the new workflow. |
| src/mobius/integrations/gguf/_docs_test.py | Verifies the new mismatch status appears in the generated documentation. |
| scripts/generate_tokenizer_artifact_evidence.py | New generator producing the bounded evidence archive + JSON fixture via pinned llama.cpp oracle comparisons. |
| docs/api/build_from_gguf.md | Regenerated GGUF support doc reflecting new tokenizer route disposition breakdown and blocker evidence table rows. |
| .gitattributes | Enforces LF for the new JSON fixture and marks the new tarball as binary. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+612
to
+615
| "The MiniCPM, Gemma4, and final alias-group fixtures are reproducible through", | ||
| "`scripts/generate_*tokenizer*.py`, which validates immutable bounded headers", | ||
| "and official tokenizer hashes, builds tokenizer-only GGUFs and the pinned", | ||
| "llama.cpp helper, then recomputes exact outputs and mismatch witnesses.", |
This was referenced Aug 28, 2026
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
tokenizer-artifact-evidenceroutes to three immutable GGUF headers and official tokenizer revisions.tokenizer-compiled-semantics; no production tokenizer route is enabled.Artifact-scoped outcomes
bailingmoe,bailingmoe2,llada-moe: official NFC normalization diverges from pinned BAILINGMOE on decomposede\u0301(6 tokenization and 6 detokenization mismatches across 465 cases).chatglm-bpe,glm4: pinned CHATGLM4 splits apostrophe-space-CJK differently, drops a leading space while detokenizing token 659, and disagrees on 7 added-token types (6 tokenization and 33 detokenization mismatches).cohere2moe,tiny_aya: pinned TINY_AYA splits tab-space differently and disagrees on 23 added-token types (14 tokenization mismatches; detokenization matches).The selected immutable artifacts total 15,796,167,008 bytes, leaving 1,383,702,176 bytes below the 16 GiB cap. Downloaded qualification payloads were removed after committing the bounded 11 MiB evidence archive.
Validation