toks tokenizer claims 13x-151x speedup over Hugging Face, beats tiktoken everywhere

markjeffrey · x · 2026-10-07

actualinc's tokenizer toks returns the same ids as Hugging Face tokenizers or tiktoken for drop-in compatibility. On a single CPU core it's 13x to 151x faster than Hugging Face tokenizers, and faster than tiktoken in every cell tiktoken can run — a notable option for tokenization bottlenecks in inference pipelines.

Related event: Actual Releases Assembly-Based Tokenizer toks, Up to 151x Faster Than Hugging Face(3 posts)→

Original post →

More from Infra

Infra channel →