Repository navigation
Validate GPT2 add-SEP GGUF tokenizers - #648
Merged
Merged
Conversation
Add exact artifact-scoped tokenizer evidence for jina-v2-code and roberta-bpe, including special-token vectors that exercise SEP insertion. Record the immutable jina-v1-en candidate's ordered-token mismatch instead of leaving a generic blocker, and teach pinned-source validation to prove Roberta post-processing semantics. 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
This PR tightens GGUF tokenizer validation and evidence for the GPT2_ADD_SEP route by pinning artifact-scoped tokenizer proofs for jina-v2-code and roberta-bpe, and by requiring/validating special-token insertion semantics (notably RoBERTa-style BOS/SEP handling) via explicit representative “add_special_tokens=True” encodings.
Changes:
- Add new pinned GGUF tokenizer evidence records for
jina-v2-codeandroberta-bpe, including representative special-token encodings. - Extend tokenizer materialization/validation to verify representative encodings both with and without special tokens, and accept proven RoBERTa post-processor insertion semantics when config flags are absent.
- Add a concrete deferred-candidate disposition entry for
jina-v1-en, and regenerate GGUF support docs accordingly.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/data/gguf_tokenizer_alias_batch2.json | Updates alias → evidence mapping to use the new artifact-scoped tokenizer evidence IDs for jina-v2-code and roberta-bpe. |
| src/mobius/integrations/gguf/_tokenizer.py | Adds representative special-encoding verification and RoBERTa post-processor proof logic for special-token insertion semantics. |
| src/mobius/integrations/gguf/_tokenizer_test.py | Adds regression tests for special-encoding mismatch cleanup and RoBERTa post-processor acceptance/rejection cases. |
| src/mobius/integrations/gguf/_tokenizer_evidence.py | Introduces new evidence records for jina-v2-code and roberta-bpe, including representative special-token vectors. |
| src/mobius/integrations/gguf/_tokenizer_evidence_test.py | Expands evidence/census assertions to cover new records and GPT2_ADD_SEP special-token witnesses. |
| src/mobius/integrations/gguf/_tokenizer_census.py | Adds a pinned deferred-candidate disposition record for jina-v1-en and a new blocker category to represent the mismatch. |
| src/mobius/integrations/gguf/_docs.py | Extends generated docs output to include candidate disposition details and special-token encodings in the evidence table. |
| docs/api/build_from_gguf.md | Regenerates the GGUF support documentation tables to reflect the new evidence and dispositions. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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
jina-v2-codeandroberta-bpeRobertaProcessingBOS/EOS/SEP semantics and preserve special-token vectors that explicitly end in SEPjina-v1-endeferred with an immutable candidate disposition: GGUF token ID 5 is empty while the official tokenizer uses U+0000Evidence
jina-v2-code:ggml-org/jina-embeddings-v2-base-code-Q8_0-GGUF@05e79e9a6c8b99491e92ebb28d753268f8601e3croberta-bpe:mradermacher/quora-roberta-base-GGUF@7a6d5816bb01c2d917978fb36825d9fec3ce4ff4jina-v1-enblocker:gpustack/jina-reranker-v1-tiny-en-GGUF@34fdafe5a08b64246bcbfdbf0b8a23f818baf8e3vsjinaai/jina-reranker-v1-tiny-en@aca45de6945b5dc6399abcd2a9c55ded5dc9111fValidation
lintrunner f --output oneline --all-files