# BloatTokenizer32K claims GPT-style sequence lengths with a smaller vocabulary
An open-source project named BloatTokenizer32K has released a tokenizer with exactly 32,000 vocabulary entries, positioning it as a compact alternative to the larger vocabularies used by OpenAI's cl100k_base and o200k_base tokenizers. The package combines a native C++ encoding engine with Python bindings and is distributed under the Apache License 2.0.
Tokenizers divide text into the integer identifiers processed by a language model. Vocabulary size and segmentation affect sequence length, memory use and the embedding layers of a model, but a tokenizer cannot simply be swapped into an unrelated pretrained model. The project's documentation stresses that a model's input and output vocabulary must match the tokenizer's assigned identifiers; adopting it elsewhere requires corresponding model adaptation or training.
In the developer's evaluation on a mixed corpus of English, code, mathematics and conversational text, BloatTokenizer32K produced token totals described as comparable to cl100k_base and o200k_base despite its smaller vocabulary. Results differed by content type: code required 6.48 percent fewer tokens than cl100k_base, while English and mathematics used more. “Compression” in this context means reducing the number of tokens in a sequence, not compressing a file.
The project also reports about 30 percent higher batch throughput than cl100k_base for newly created instances and 39 percent higher throughput after warmup, with four logical CPUs available. Serial performance was lower than both comparison tokenizers. These are developer-run measurements on Windows 11 with CPython 3.14.6 and specific library versions, so they do not establish equivalent performance on other hardware or workloads.
The evaluation corpus was held out from tokenizer training but inspected during development. The repository says possible overlap with public baseline training data is unknown, and the standalone inference bundle does not include every item needed to reproduce the benchmark, including its harness, baseline configurations and evaluation corpus. Those caveats make independent replication an important next step.
The release includes 16 reserved control tokens and supports batch encoding, configurable worker counts and lossless decoding. Prebuilt extensions are available for 64-bit Windows with CPython 3.12 and 3.14; other systems require a compatible native build. The public license covers the engine, Python interface, vocabulary, merge rules and configuration artifacts, while the tokenizer-training algorithm and its implementation remain proprietary.
A smaller vocabulary can reduce the size of model embedding and output layers, but efficiency depends on how text is segmented and on the target workload. BloatTokenizer32K's results offer a potentially useful engineering trade-off rather than a universal replacement. Its practical value will depend on reproducible tests, broader language coverage and models trained or adapted specifically for its vocabulary.



