Hugging Face makes tokenizers 15.9x faster without changing a single token ID

jasonkneen · x · 2026-09-21

Hugging Face shipped a Rust rewrite of its tokenizers library delivering a 15.9x speedup while keeping every token ID identical. The gains come from a SIMD-based splitter replacing the regex engine, caching for repeated words, an allocation-free merge loop, and batched model calls — all behind the same API.

Related event: Hugging Face Ships tokenizers v1 RC with Up to 30x Speedup(8 posts)→

Original post →

More from Infra

Infra channel →