tokenizers
A high-performance tokenizer library released by Hugging Face, implemented in Rust, providing fast text tokenization and preprocessing.
Timeline (last 90 days)
Brandeis reports that the optimized branch can be up to 5.7 times faster than the main branch, and about 50 times faster overall relative to tokenizers version 0.23, but the two baselines differ, and the 50x includes improvements accumulated from earlier version iterations.
Chinese shows almost no speedup benefit in the BERT benchmark, and some very small inputs actually become slower.
ModernBERT's NFC path already skips ASCII on the main branch, so its English results gain only 1.06x from the optimizations on that branch.
Throughput gains at the tokenizer level are not equivalent to proportional reductions in end-to-end latency for full RAG requests, GPU inference, or applications.
Hugging Face's tokenizers library and Meta's Buck2 build system are both written in Rust.
All Facts (7)
The tokenizers library and candle inference framework launched by Hugging Face are both written in Rust, and Burn is a deep learning framework built entirely in Rust.
70%UnverifiedBrandeis reports that the optimized branch can be up to 5.7 times faster than the main branch, and about 50 times faster overall relative to tokenizers version 0.23, but the two baselines differ, and the 50x includes improvements accumulated from earlier version iterations.
50%UnverifiedModernBERT's NFC path already skips ASCII on the main branch, so its English results gain only 1.06x from the optimizations on that branch.
50%UnverifiedThroughput gains at the tokenizer level are not equivalent to proportional reductions in end-to-end latency for full RAG requests, GPU inference, or applications.
50%UnverifiedChinese shows almost no speedup benefit in the BERT benchmark, and some very small inputs actually become slower.
50%UnverifiedHugging Face's tokenizers library and Meta's Buck2 build system are both written in Rust.
50%UnverifiedHugging Face's tokenizers library, the Candle deep learning framework, and the vector database Qdrant have all chosen Rust as their core implementation language.
50%