Liquid AI ships small bidirectional encoders that hold up at 8K on CPU
- Source
- x.com
- Publisher
- Liquid AI
- Date
Today we release LFM2.5-Encoder-230M and LFM2.5-Encoder-350M: bidirectional encoders that stay fast at long context, even on CPU. > LFM2.5-Encoder-230M: about 3.7x faster than ModernBERT-base on CPU at 8,192 tokens. Under 30s per forward pass, versus over a minute and a half. > LFM2.5-Encoder-350M: 4th of 14 models on GLUE, SuperGLUE, and multilingual classification, behind only three larger models, one of them nearly 10x its size. 🧵
Context
Liquid AI's two LFM2.5 encoders are small models for reading text rather than writing it. An encoder takes in a whole document at once, looks at the words on both sides of each position, and produces an internal representation that a fine-tuned version turns into a label, a score or an extracted span. That is the job behind classifying support tickets, routing requests or filtering documents before a larger model sees them. Liquid built them from its LFM2.5-230M and LFM2.5-350M models by letting every position see the full input instead of only earlier text, then trained them to fill in masked words, first on 1,024- inputs and then on inputs up to 8,192 tokens. Release write-up
Long inputs are where Liquid says they pull ahead. On a CPU at 8,192 tokens, the company reports LFM2.5-Encoder-230M takes about 28 seconds per forward pass, the single read-through that produces the output, while ModernBERT-base, a widely used encoder, takes over a minute and a half, about 3.7 times longer. Liquid credits its hybrid architecture, whose cost grows slowly as inputs get longer, and reports the 230M model is the fastest it tested from about 1,000 tokens up. The advantage depends on length and hardware: on an Apple GPU, ModernBERT-base is faster below roughly 1,000 tokens, and the LFM2.5 encoders lead from about 2,000. The write-up does not name the CPU used.
On accuracy, Liquid fine-tuned each of 14 models separately on 17 tasks from GLUE, SuperGLUE and multilingual classification, averaging five runs per task. LFM2.5-Encoder-350M placed fourth, behind three larger models, one of them a 3.5B model nearly ten times its size, and the 230M model beat ModernBERT-base and every EuroBERT model. These scores describe models adapted to each task, which is how encoders are normally used, and they cover classification-style work only.
A demo video shows what that adaptation can buy. A fine-tuned encoder reads a once and scores it against every category in the same pass, sending a timer request to a simple call and a trip-planning request to a heavier agent. Because the categories are supplied as text at run time, the presenter adds a new soccer category and the router starts using it without a new classifier being trained. The video's speech was transcribed automatically and its visuals were not reviewed, so this describes the narrated demo rather than measured routing accuracy. A separate Liquid cookbook walkthrough covers the encoder to label large batches of documents.
- Token — A piece of text, such as a word, part of a word or a punctuation mark, that a language model represents as numbers and handles as a unit.
- Prompt — Information or instructions supplied to a model; in a chat, the request you type is often called your prompt.
- Function — A named block of instructions that takes inputs, called arguments, and hands back a result, called its return value.
- fine-tuning — Taking a trained model and training it a bit more on your own examples so it gets better at one specific job.







