HF tokenizers cuts special-token memory 1,000×, boosts decode speed 26%

art_zucker · x · 2026-11-03

New in Hugging Face tokenizers: special tokens now take 1,000× less memory. Previously each added token got its own slot — gpt-oss's 21 added tokens (ids 199,998–200,018) occupied 200,019 slots. Benchmarks across 6 popular Hub tokenizers (AMD EPYC 7R13) show -17% tokenizer memory, -19% load time, +26% decode speed. v1 rc ships soon.

Original post →

More from Infra

Infra channel →