Meet Gigatoken: A Rust BPE Tokenizer that Encodes Text at 24.53 GB/s, up to 989x Faster than HuggingFace Tokenizers
989x faster. Gigatoken's Rust tokenizer hits 24.53 GB/s—redefining the speed floor for text preprocessing at scale.

Why it matters
Tokenization is a foundational bottleneck in LLM inference and training pipelines. A 989x speedup in text encoding directly reduces latency and compute cost for every model deployment, making this a critical infrastructure play for anyone running high-throughput inference.
The key facts
6 to knowGigatoken encodes at 24.53 GB/s on 144-core AMD EPYC 9565
989x faster than HuggingFace tokenizers
681x faster than tiktoken
MIT-licensed, open-source
Hand-written SWAR pretokenizer and pretoken caching are optimization sources
GPT-2 tokenization baseline
Go to the source
MarkTechPostmarktechpost.com
Publisher excerpt: Gigatoken is an MIT-licensed Rust BPE tokenizer that encodes text at gigabytes per second. On a 144-core AMD EPYC 9565, it runs GPT-2 tokenization at 24.53 GB/s. That is 989x HuggingFace tokenizers and 681x tiktoken, against baselines already written in multithreaded Rust. The gains come from a…