Skip to content

Record final GGUF tokenizer artifact blockers - #684

Merged
justinchuby merged 1 commit into
mainfrom
justinchuby-finish-artifact-tokenizer-evidence
Aug 28, 2026
Merged

justinchuby merged 1 commit into
mainfrom
justinchuby-finish-artifact-tokenizer-evidence

Conversation

@justinchuby

Copy link
Copy Markdown
Member

Summary

  • Bind the final seven tokenizer-artifact-evidence routes to three immutable GGUF headers and official tokenizer revisions.
  • Record network-free ordered vocabulary, merge/type, added/special token, pipeline/config/chat-template, multilingual/adversarial tokenization, detokenization, materialized identity, alias-dispatch, and discriminator evidence.
  • Keep all three semantic groups fail-closed and move them to tokenizer-compiled-semantics; no production tokenizer route is enabled.

Artifact-scoped outcomes

  • bailingmoe, bailingmoe2, llada-moe: official NFC normalization diverges from pinned BAILINGMOE on decomposed e\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

  • Focused evidence/generated-doc suite: 55 passed.
  • Broad serial suite: 8,883 passed, 64 skipped, 12 deselected.
  • Full lintrunner: clean.
  • GGUF docs and independent pinned llama.cpp oracle regeneration checks: clean.
  • Independent high-effort review completed; all three findings were corrected before final validation.

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]>
@justinchuby
justinchuby requested review from a team and a lite review from Copilot August 28, 2026 05:39
@github-actions

Copy link
Copy Markdown

🏗️ Architecture Diff

Comparing 4543476 → f70f365

Model Sub-model Changes Status

No architecture changes detected. ✅


Legend: ⚪ No change · 🔵 Minor (attrs/inits) · 🟡 Moderate (nodes added/removed) · 🔴 Major (interface changed)

@github-actions

Copy link
Copy Markdown

Performance Comparison

Comparing 4543476 → f70f365

Model Metric Baseline Current Delta
bert (feature-extraction) model_size_bytes 359 KB 359 KB +0.0% ⚪
bert (feature-extraction) num_nodes 68 68 +0.0% ⚪
falcon model_size_bytes 364 KB 364 KB +0.0% ⚪
falcon num_nodes 66 66 +0.0% ⚪
gemma2 model_size_bytes 428 KB 428 KB +0.0% ⚪
gemma2 num_nodes 105 105 +0.0% ⚪
gpt2 model_size_bytes 324 KB 324 KB +0.0% ⚪
gpt2 num_nodes 54 54 +0.0% ⚪
llama model_size_bytes 425 KB 425 KB +0.0% ⚪
llama num_nodes 60 60 +0.0% ⚪
llama (static-cache) model_size_bytes 425 KB 425 KB +0.0% ⚪
llama (static-cache) num_nodes 56 56 +0.0% ⚪
mamba (ssm-text-generation) model_size_bytes 296 KB 296 KB +0.0% ⚪
mamba (ssm-text-generation) num_nodes 94 94 +0.0% ⚪
phi3 model_size_bytes 421 KB 421 KB +0.0% ⚪
phi3 num_nodes 58 58 +0.0% ⚪
phi3 (static-cache) model_size_bytes 421 KB 421 KB +0.0% ⚪
phi3 (static-cache) num_nodes 54 54 +0.0% ⚪
qwen2 model_size_bytes 425 KB 425 KB +0.0% ⚪
qwen2 num_nodes 60 60 +0.0% ⚪
qwen2 (static-cache) model_size_bytes 425 KB 425 KB +0.0% ⚪
qwen2 (static-cache) num_nodes 56 56 +0.0% ⚪
qwen3_5_moe (hybrid-text-generation) model_size_bytes 506 KB 506 KB +0.0% ⚪
qwen3_5_moe (hybrid-text-generation) num_nodes 265 265 +0.0% ⚪
qwen3_5_text (hybrid-text-generation) model_size_bytes 458 KB 458 KB +0.0% ⚪
qwen3_5_text (hybrid-text-generation) num_nodes 127 127 +0.0% ⚪
qwen3_5_vl (hybrid-qwen-vl) model_size_bytes 977 KB 977 KB +0.0% ⚪
qwen3_5_vl (hybrid-qwen-vl) num_nodes 450 450 +0.0% ⚪
t5 (seq2seq) model_size_bytes 836 KB 836 KB +0.0% ⚪
t5 (seq2seq) num_nodes 176 176 +0.0% ⚪
whisper (speech-to-text) model_size_bytes 1008 KB 1008 KB +0.0% ⚪
whisper (speech-to-text) num_nodes 128 128 +0.0% ⚪

No performance regressions.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 GGUFTokenizerBlockerEvidence to 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.",
@justinchuby
justinchuby merged commit 841e629 into main Aug 28, 2026
25 checks passed
@justinchuby
justinchuby deleted the justinchuby-finish-artifact-tokenizer-evidence branch August 28, 2026 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants