Hugging Face releases tokenizers v1 release candidate with major performance improvements
The v1 release candidate introduces a rewritten merge loop, bitstream-based splitting, a thread-local word cache, and native parallelism to accelerate tokenization across CPU workloads.
1 source · cross-referenced
- The tokenizers v1 release candidate focuses on CPU-side performance to prevent tokenization from becoming a bottleneck in ML workflows.
Hugging Face announced a release candidate for tokenizers v1, aiming to address tokenization bottlenecks in machine learning workflows where CPU-bound preprocessing can delay GPU utilization. The update introduces a rewritten merge loop that reuses a caller-owned scratch buffer to eliminate repeated memory allocations, reducing overhead during byte pair encoding (BPE) operations.
The v1 release candidate replaces regex-based text splitting with bitstream operations via a component called bitcannon, which uses SIMD instructions to process 64 bytes per register operation. This approach targets common BPE grammar patterns and avoids runtime regex interpretation, accelerating the pre-tokenization stage.
A thread-local word cache stores mappings from pre-token bytes to token IDs, allowing repeated words to skip the merge process entirely. The cache grows more effective as inputs contain more repetitions, though its benefit diminishes for inputs with fewer repeated pre-tokens.
Native parallelism enables multiple threads to encode text simultaneously by drawing from separate scratch buffers and word caches, removing lock contention that previously serialized access. The v1 release candidate maintains compatibility with existing tokenizers v0.23 outputs, preserving token IDs, APIs, vocabularies, and merge ranks while improving performance across single-threaded and multi-threaded workloads.
Hugging Face credits IBM, NVIDIA, and the ExecuTorch team for contributing patches and testing across diverse hardware to broaden platform support. Benchmarks in the tokbench repository compare the release candidate against widely used alternatives, covering single-threaded and multi-threaded performance, scaling, per-model and per-language comparisons, latency, decoding throughput, memory heap, and crate size.
- Oct 14, 2026 · TechCrunch — AI
Science Corporation implants vision-restoring PRIMA chip in first Stargardt disease patient
Trust78 - Oct 13, 2026 · TechCrunch — AI
Flox Intelligence raises $5M and launches edge AI devices to deter wildlife from critical infrastructure
Trust79 - Oct 13, 2026 · Hugging Face
Hugging Face releases LFM2.5-24B-A2B, a 24B-parameter reasoning agent with 2B active parameters for on-device use
Trust79