Repository navigation
Validate second GGUF tokenizer alias cohort - #646
Merged
Merged
Conversation
Pin llama.cpp dispatch evidence for all 38 requested identifiers and promote the 22 routes backed by exact artifact-to-source tokenizer parity. Keep the remaining 16 routes fail-closed with an artifact-specific blocker, add the GPT-2 witness, and generate network-free census documentation and tests.\n\nCo-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
This PR extends the GGUF tokenizer evidence system to validate and document a second “alias cohort” by pinning llama.cpp dispatch semantics for 38 identifiers, promoting a subset with artifact-to-official-source parity evidence, and fail-closing the remainder with a concrete blocker category. It also updates the generated tokenizer matrices/docs and adds deterministic, network-free fixtures/tests to keep the evidence and documentation drift-checked.
Changes:
- Add batch-2 alias dispatch proofs (pinned
llama-vocab.cppline + effective flag overrides) and wire them into the tokenizer census and docs rendering. - Introduce a GPT-2 GGUF tokenizer evidence witness and allow sharing evidence across aliases only when pinned dispatch behavior is proven identical.
- Add a deterministic 38-identifier JSON fixture and tests that verify fixture ↔ census ↔ dispatch-proof consistency; update generated API docs accordingly.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/data/gguf_tokenizer_alias_batch2.json | Adds deterministic fixture enumerating the 38 batch-2 identifiers and their derived census/evidence fields. |
| src/mobius/integrations/gguf/_tokenizer.py | Relaxes special-token config requirements when the special token is proven via added_tokens content in tokenizer.json. |
| src/mobius/integrations/gguf/_tokenizer_test.py | Adds regression test for the “legacy config omission” special added-token proof path. |
| src/mobius/integrations/gguf/_tokenizer_evidence.py | Adds validated_identifiers to evidence records and introduces GPT-2 evidence; enforces alias-sharing constraints via registry + pinned dispatch proofs. |
| src/mobius/integrations/gguf/_tokenizer_evidence_test.py | Updates expected evidence inventory/status counts and adds tests that fixture/census/proofs stay consistent. |
| src/mobius/integrations/gguf/_tokenizer_census.py | Extends route audit statuses/blockers and incorporates “dispatch proven but artifact parity pending” state. |
| src/mobius/integrations/gguf/_tokenizer_alias_evidence.py | New module: batch-2 pinned llama.cpp dispatch evidence and effective per-group non-default flag overrides. |
| src/mobius/integrations/gguf/_docs.py | Annotates tokenizer matrix rows with pinned dispatch line references when available. |
| docs/api/build_from_gguf.md | Regenerates API docs to reflect new evidence rows, new disposition counts, and dispatch-line annotations. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+113
to
+115
| if set(records) != set(_DISPATCH_LINES): | ||
| raise RuntimeError("Tokenizer alias evidence contains duplicate identifiers") | ||
| return records |
Comment on lines
+113
to
+114
| path = Path(__file__).parents[4] / "tests/data/gguf_tokenizer_alias_batch2.json" | ||
| expected = json.loads(path.read_text(encoding="utf-8")) |
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
llama-vocab.cppsource identity, dispatch line, pre-type, and flag overrides for all 38 batch-2 tokenizer identifierspinned-artifact-source-parity-pendingblockerProven identifiers (22)
a.x-4.0,deepseek-r1-qwen,exaone4,f2llmv2,falcon-h1,falcon3,gigachat,gpt-2,jina-de,jina-es,jina-v2-de,jina-v2-es,jina-v5-nano,kormo,llama-bpe,llama-v3,llama3,mellum,midm-2.0,modern-bert,phi-2,pixtralArtifact-blocked identifiers (16)
bailingmoe,bailingmoe2,chatglm-bpe,cohere2moe,gemma4,glm4,gpt-4o,granite-embed-multi-311m,jina-v1-en,jina-v2-code,kanana2,llada-moe,llama4,roberta-bpe,talkie,tiny_ayaTheir pinned dispatch semantics are proven, but no exact qualifying GGUF-to-official-source tokenizer parity record was established in this batch. The next coherent sub-batch is
jina-v1-en/jina-v2-code/roberta-bpe, using a pinned Jina/RoBERTa GGUF witness and official tokenizer assets.Validation
lintrunner f --output oneline --all-filesThis PR is based directly on
mainat PR #645 mergecafb2f2460eb47b984cf4731314246792059f625. Tokenizer evidence is intentionally independent of graph/runtime support.