Research · October 12, 2026
Taking Tokenization off the Host for Agentic LLM Serving
Reported by arXiv cs.AI + cs.CL
In short
GraphTok is a GPU tokenizer that runs the full encoding pipeline (pre-tokenization, BPE merging, token-ID assembly) as a single replayable CUDA graph, aimed at agentic workloads where prefix caching has made CPU tokenization a major share of time-to-first-token. It matches reference token IDs exactly on GPT-2, Llama 3, Qwen 2.5, DeepSeek-V3, and Gemma 3, works with unmodified vLLM and NVIDIA Dynamo, and encodes a million GPT-2 tokens in 1.7 to 3.2 ms.
Why it matters
As prefill gets cheaper through caching, tokenization becomes a real bottleneck for serving long-context agents, so moving it onto the GPU could improve latency and fleet scaling.
Terms used in this story
Read the original reporting
arXiv cs.AI + cs.CL (opens in a new tab)AI Download summarizes and links to the news. We do not republish full articles.