Exact parallel and streaming tokenization for LLM tokenizers: decides from a tokenizer's definition where its input can be cut, then encodes in parallel or as a stream with token ids byte-identical to sequential encoding. GPT-2, cl100k, o200k and Llama 3, from vendor files or tokenizer.json, in C++23 with a tiktoken-compatible Python package.
unicode tokenizer parallel-computing tokenization automata-theory finite-automata bpe byte-pair-encoding gpt-2 huggingface cpp23 llm tiktoken llama3 pretokenization cl100k certified-splitting exact-tokenization parallel-tokenization tokenizer-validation
-
Updated
Nov 24, 2026 - C++