Gigatoken raised the bar for tokenizer speed. We took it as a challenge.
tuetoken: 3.9× faster than gigatoken on the everyday case (list of strings in, token lists out), and 1.18× on gigatoken's own 2 GB OpenWebText benchmark. Same token ids.
pip install tuetoken
Introducing the world's fastest tokenizer implementation, Gigatoken!
Gigatoken is ~500-1000x faster than HuggingFace, and ~100x faster than OpenAI's tiktoken for most tokenizer definitions on most machines.
These baselines are already multithreaded Rust implementations! 🧵