Hugging Face tokenizers: another ~5x speedup for BERT tokenizers on top of v1

tomaarsen · x · 2026-10-15

After the tokenizers v1 rewrite brought major speedups, Simon Brandeis is working on another 5x improvement for BERT tokenizers — roughly 50x faster than v0.23 in total. tomaarsen highlights the accompanying blog post explaining how these tokenizers work, where the implementation was bottlenecked, and how it improved, plus an in-browser demo to measure tokenization speed before and after the refactor.

Related event: Hugging Face Turbocharges BERT Tokenizer With Up to 50x Speedups(4 posts)→

Original post →

More from Models

Models channel →