New Rust Tokenizer 'Gigatoken' Shatters Speed Records, Up to 1268x Faster

While Hugging Face's Rust-based tokenizers already process a gigabyte of text in under 20 seconds, a new Rust tokenizer named Gigatoken achieves even more astounding speeds. On a 144-core EPYC CPU, Gigatoken processes data at 24.53 GB/s, demonstrating performance advantages of up to 989x over Hugging Face's tokenizers and 681x over OpenAI's tiktoken. On an Apple M4 Max, it reached 1,268x faster than Hugging Face tokenizers.

Sources

Open the full topic