ggml-org · llama.cpp b12842
llama.cpp speeds up text tokenization
Prerelease b12842 reduces redundant UTF-8 conversions and string copies during tokenization, the step that converts text into units processed by the model.
What changes
On roughly 180 KB of text, the patch author reports a 40% reduction in tokenization time for llama-bpe and 18% for qwen2, with reductions of 4–14% for the other three vocabularies tested. These are not generation-speed measurements or independent tests. The code is MIT-licensed.