Vibeleaderboard
← All Intel
Intel / post

How Liquid AI doubled a shipped model's tokenizer without retraining

Source
x.com
Publisher
Liquid AI
Date
Liquid AI@liquidai

We doubled LFM2.5-8B-A1B's tokenizer from 65K to 128K to fix the languages it split too finely. Today we're sharing the recipe for upgrading a pretrained model's tokenizer in place. > Thai now takes 4.0× fewer tokens, Vietnamese 2.6×, Hindi 2.4× > Est. 2.2 to 3.7× faster per-character decoding on-device for these languages 🧵

Context

Liquid AI enlarged the vocabulary of its released LFM2.5-8B-A1B model from about 65,000 to 128,000 tokens so that languages its original tokenizer handled poorly are split into fewer pieces. A tokenizer cuts text into the units a model reads and writes one step at a time. When a script is cut too finely, the same sentence takes more steps to generate and uses more of the model's . Liquid reports that Thai now needs 4.0 times fewer tokens, Bengali 3.4, Vietnamese 2.6 and Hindi 2.4, while English and code stay roughly the same by design. Method write-up

"In place" means the existing model was kept and extended, not that it skipped training. Liquid froze the original merge rules and continued the vocabulary-building on multilingual text, so every new token breaks down exactly into old ones, and each new token's starting value is the average of its parts. The model then trained in two stages: 600 billion tokens updating only the new vocabulary entries with everything else frozen, then 400 billion tokens of continued for the whole model. Liquid split the stages because training all parameters at once damaged abilities that already worked. Across eight benchmarks, swapping in the new vocabulary with no training cost about 5.8 points on average. The first stage recovered about 4.8 of them, and the second finished above the original model, a surplus Liquid attributes most likely to the extra pretraining rather than to the vocabulary itself.

The speed figure in the announcement is an estimate, not a measured end-to-end result. A bigger vocabulary makes every generation step slower, 7 to 10% per token on an Apple M4 Max and a Snapdragon 8 Elite Gen 5, because the layer that scores every vocabulary entry is read on each step. Liquid combines that cost with the compression gains to estimate 2.2 to 3.7 times faster decoding per character for the targeted languages. Languages the old tokenizer already handled well pay the cost without the benefit and decode up to about 9% slower. Liquid stopped at 128,000 because 256,000 would have cost up to 37% of on the Snapdragon chip.

The recipe suits a model builder who owns the original tokenizer and its merge rules. Liquid says it does not cover moving a model to someone else's off-the-shelf tokenizer, and that the second stage's compute pays off mainly when the original training run was expensive. The same 128,000-token vocabulary later appeared in LFM2.5-VL-3B, whose release notes describe it as extended in place.

Terms in this piece · Glossary
  • Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
  • Process — A running instance of a program, with its own working memory, open files and identity.
  • pretraining — The first, biggest phase of building a model: training it on enormous amounts of text so it learns language, facts, and reasoning in general.
  • throughput — How much model output a provider can generate over time, commonly measured in output tokens per second.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

More from Liquid AI
Recommended reads