Archived
Gemma's tokenizer.json spells runs of 2-31 spaces as added, non-special tokens in U+2581 (ids 138-167). piece_at returned every user-defined token literally, so indentation and double spaces in a Gemma reply came out as U+2581. HuggingFace runs every token it keeps through the decoder; now a user-defined token does too, and only control and unknown tokens stay literal. decode, the Detokenizer and TokenView change together. tokenizer_test covers it with a Gemma-shaped tokenizer.json. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>