Repository navigation
Conversation
Google remediated glitch tokens in the Gemma 4 tokenizer.json files (E2B ROCm#51, E4B ROCm#50, 12B ROCm#55). gemma4-it-core:e2b/e4b pull tokenizer.json from google/gemma-4-E2B-it / gemma-4-E4B-it at pinned revisions that predate the fix; bump the pins to the fix commits and update the pinned size/sha256 in model_info.json. Fixes ROCm#1057
Author
|
The three CI workflows for this PR (Build and Test, CPU Tests, Security scan) are stuck at |
This branch has not been deployed
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.
Fixes #1057.
Google remediated glitch tokens in the Gemma 4
tokenizer.jsonfiles (E2B #51, E4B #50, 12B #55) by pruning the BPE merges that produce them; vocab size and token IDs are unchanged.gemma4-it-core:e2b/e4bpulltokenizer.json(plustokenizer_config.json,config.json,chat_template.jinja) straight fromgoogle/gemma-4-E2B-it/google/gemma-4-E4B-itat pinned revisions that predate the fix, so this bumps those pins to the fix commits and updates the pinnedtokenizer.jsonsize/sha256 inmodel_info.json:3e22461f->4adf1574("fix: Remediate 233 glitch tokens in tokenizer.json (changed demo link to playlist #51)");tokenizer.json32,169,626 -> 32,155,733 bytes, sha256ab26b2ad...ee0ef602->4ecc2ba6("fix: Remediate 219 glitch tokens in tokenizer.json (add the prompt for the txt file #50)");tokenizer.json32,169,626 -> 32,156,428 bytes, sha25691d9cf86...Also updated the two
sizetotals inmodel_list.json(E2B 6,889,739,655 -> 6,889,725,762; E4B 9,771,106,246 -> 9,771,093,048) so they still equal the sum of themodel_info.jsonrecords.Verification (CPU, no NPU/GPU here)
tokenizer.jsonat both the old and new revisions for E2B and E4B: sha256 matches the HF tree LFS oid in each case, and the old files are byte-identical to the file FLM currently pins (cc8d3a0c...).U+2127A-><glitch_pruned_249788>); E4B merges 514,906 -> 514,653 (-253, 0 added), vocab identical.drawingCodehintmerge removed in E4B;CYCLONEDBmerge removed in E2B. The only files that differ between the old and new Google revisions for these fourfile_sourcesentries istokenizer.json.model_list.json): no new violations vsmain(113 pre-existing mismatches elsewhere, unchanged).Scope note
The NPU2 models (
gemma4-it:e2b/e4b/12b,gemma4e-flash,nemotron3.5-bolt:e4b) and the OGA/HiPEP packages still ship the pre-fixtokenizer.jsonfrom theFastFlowLM/amdHF repos, so their pins cannot move until the patched files are uploaded there by someone with org access; this PR deliberately leaves those pins alone. Same for 12B, which has no core model pulling from Google.No end-to-end run was possible here (no AMD NPU/GPU); relying on CI.