LFM2.5-Encoders Bring 8K Context NLU to CPU Environments
Liquid AI released LFM2.5-Encoder-230M and 350M, a pair of bidirectional hybrid models optimized for fast, 8,192-token NLU tasks on CPU hardware.
On July 28, 2026, Liquid AI released LFM2.5-Encoders, a pair of bidirectional hybrid models optimized for long-context natural language understanding on resource-constrained hardware. The release introduces the LFM2.5-Encoder-230M and LFM2.5-Encoder-350M models under the LFM Open License v1.0. If you build production pipelines that run constantly on local devices, these models are designed to match larger encoders without requiring dedicated GPUs.
LFM2 Hybrid Architecture
The encoders are built on the LFM2 hybrid architecture, which combines gated short convolutions with a minimal number of attention blocks. Unlike the causal LFM models used for text generation, these new encoders utilize a bidirectional attention mask and non-causal convolutions. This allows every token to attend to both left and right context simultaneously across an 8,192-token context window. Managing context windows of this size typically requires significant memory bandwidth, but the hybrid design mitigates this bottleneck.
Both variants were initialized from the base LFM2.5-230M and LFM2.5-350M weights and pre-trained using a masked-language objective. They support 15 languages out of the box. You can fine-tune them for downstream token-level tasks like named entity recognition, text classification, semantic similarity, and safety filtering. For teams managing complex systems, these encoders can serve as highly efficient intent routers that determine which subsystem handles a user request.
CPU Performance and Scaling
The primary computational advantage of the LFM2.5-Encoders is their efficiency at scale. Standard Transformer-based encoders like BERT or ModernBERT see their computational costs spike as input length increases. The LFM2 architecture scales much more gently, maintaining high throughput up to the 8,192-token limit when running AI inference on standard processors.
| Hardware Environment | Model Variant | Decode Throughput |
|---|---|---|
| AMD CPU | LFM2.5-Encoder-350M | 313 tokens/sec |
| Snapdragon Gen4 | LFM2.5-Encoder-350M | 188 tokens/sec |
This release serves as a general-purpose counterpart to Liquid AI’s LFM2.5-Retrievers launched in June 2026. While the retrievers are specialized for search, the encoders act as NLU workhorses for developers looking to run LLMs locally on edge devices.
If you deploy intent routing or semantic similarity tasks to mobile devices or local servers, swapping legacy Transformer encoders for the 230M or 350M LFM2.5 variants will immediately reduce your hardware footprint and latency.
Get Insanely Good at AI
The book for developers who want to understand how AI actually works. LLMs, prompt engineering, RAG, AI agents, and production systems.
Keep Reading
How to Cut CPU Costs with Cloudflare Workers Cache
You will learn how to configure Cloudflare Workers Cache to serve responses directly from entrypoints, handle invalidations, and partition cache keys.
LFM2.5-2.6B Fits Agent Workloads Into 2GB of Device RAM
Liquid AI's new 2.6B parameter hybrid models deliver 2x faster CPU processing and fit into 3GB of RAM for on-device agentic workflows.
Cloudflare Syncs robots.txt With Edge AI Crawler Policies
Cloudflare's Bot Preference Sync aligns robots.txt directives with edge-enforced AI crawler policies across Free, Pro, Business, and Enterprise plans.
Liquid AI LFM2.5-VL-3B Hits 228 Tokens/Sec on Apple M5 Max
Liquid AI has released LFM2.5-VL-3B, an open-weight vision-language model pairing a 2.6B text backbone with a SigLIP2 encoder for high-speed edge inference.
MacPaw Merges Liquid AI Models With Local macOS Memory Stack
MacPaw has partnered with Liquid AI to build a unified on-device inference and memory stack for macOS applications distributed through the Setapp marketplace.