Liquid AI ships small bidirectional encoders that hold up at 8K on CPU
- Source
- x.com
- 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. 🧵
Two sizes in the same family: > LFM2.5-Encoder-350M: the higher-accuracy pick. > LFM2.5-Encoder-230M: smaller and faster, for tighter hardware or higher throughput. Both are pre-trained with a masked-language objective, so you fine-tune them for classification, token-level tasks, or retrieval. (2/6)

Built on the LFM2 hybrid backbone, adapted from causal decoders into bidirectional encoders: bidirectional attention, non-causal short convolutions, and a 30% mask rate. The backbone's cost grows slowly as inputs get longer. > Context: 8,192 tokens, about 13 to 15 pages in one forward pass. > Runs on CPU with no GPU, where the speed edge is largest. > On GPU, the same pattern holds at the longest inputs. (3/6)
See it in action. We built demos that run entirely on CPU: > Prompt routing: https://t.co/Y7CfhQrSTy > Policy linting: https://t.co/DPu9iV8mbh > Spell checker: https://t.co/92NrnWDsEo Bonus: we even run the encoder as a masked-diffusion chatbot. https://t.co/4EIW6sYZiF (4/6)
Context
Liquid AI's LFM2.5 encoders are building blocks for applications that classify, score or extract information from text. They examine on both sides of a word and support inputs up to 8,192 . Developers them for the particular decision an application needs to make. Technical explanation.
The company positions the 230M version for tighter computing budgets and the 350M version for higher accuracy. Its quality comparison fine-tuned every model on each evaluation task, so those scores describe adapted models. This makes the release relevant to teams building specialized document-processing systems that can run on CPUs.
- context window — The maximum amount of text a model can consider at once — its working memory for the current conversation or task.
- token — The chunk of text a model reads and writes in — roughly three-quarters of a word — and the unit AI usage is billed in.
- fine-tuning — Taking a trained model and training it a bit more on your own examples so it gets better at one specific job.
- attention — The mechanism that lets a model weigh which earlier words matter for the word it's currently processing — the core operation of a transformer.
postLiquid AI ships LFM2.5-24B-A2B open weights for local agents
postToday we release Open d1: two open-weight multimodal models in our d1 decision…
postLiquid AI's d1 decision model adds vision at a fraction of frontier cost
articled1 is now available on @vercel AI gateway!We worked with the amazing vercel…
Checking sign-in…
Loading comments…



