Tokenmaxxing BERT: how skipping ASCII normalization made tokenization 50x faster

tomaarsen · x · 2026-10-15

Hugging Face is reviving its tokenizers library toward v1.0.0: classic BPE tokenizers now encode up to 30x faster than v0.23, but BERT's WordPiece path lagged at 8.6x. Simon Brandeis's new post explains how BERT tokenization got another 5.7x faster — about 50x total (still in PR stage). Benchmarks show bert-base-uncased English encoding jumping from 2.6 to 132 MB/s (50.8x).

Key points:

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

Original post →

More from Infra

Infra channel →