Computing · AI
GigaToken Makes Language-Model Tokenization 1000 Times Faster
Before a large language model can read a word, that word must be chopped into tokens. A new tool called GigaToken speeds up that seemingly invisible step to gigabytes per second — making training and long-context inference noticeably less expensive.
- GigaToken is an open-source Rust implementation that claims roughly 500 to 1000 times faster tokenization than the HuggingFace tokenizer library.
- Against OpenAI's widely used tiktoken, it runs about 100 times faster for most tokenizer definitions on most machines.
- It is designed as a drop-in replacement, so teams processing large batches or long contexts can swap it in without rewriting their pipeline.
Every large language model works on tokens, not on raw characters. When you paste a document into ChatGPT or another model, the first thing that happens is tokenization: the text is broken into chunks that the model's vocabulary understands. That step is usually fast enough to ignore — but only up to a point.
As models grow and context windows stretch into the millions of tokens, tokenization stops being a footnote and becomes a bottleneck. Preprocessing a giant corpus for training, or tokenizing very long inputs at inference time, can take hours. That time is paid for in electricity, engineering hours, and delayed experimentation.
GigaToken, released by developer Marcel Roed, tackles that bottleneck at the source. Written in Rust — the same systems language that already powers the fastest tooling in the AI stack — it processes text at speeds measured in gigabytes per second. The tool is a drop-in replacement: the tokenizer definitions stay the same, but the engine under the hood runs orders of magnitude faster.
The speed matters most at scale. A research team tokenizing terabytes of training data or a product running very-long-context queries can collapse a multi-hour job into minutes. GigaToken does not make the model smarter — it simply removes one of the slowest pieces of the pipeline around it, letting the model spend more of its time doing the thinking it was actually trained for.