LFM2.5-24B-A2B: Built for Fast On-Device Agents
Recorded: Oct. 15, 2026, 12:10 a.m.
| Original | Summarized |
LFM2.5-24B-A2B: Built for Fast On-Device Agents | Blog | Liquid AIModelsResearchEngineering BlogSolutionsDevelopersCompanyModelsResearchEngineering BlogSolutionsDevelopersCompanyTry our APINews/ModelsLFM2.5-24B-A2B: Built for Fast On-Device AgentsOCT 13, 2026On this pageWhat changed since LFM2-24B-A2BBenchmarksFast inference everywhereRun local agents with LFM2.5-24B-A2BGet StartedCitationToday, we release LFM2.5-24B-A2B, a 24B-parameter reasoning model with just 2B active parameters, built for fast, private agents on-device. It is the largest and final model in the LFM2.5 family, which now spans two orders of magnitude: from LFM2.5-230M to LFM2.5-24B-A2B.LFM2.5-24B-A2B is competitive with Qwen3.6-35B-A3B, a model with ~50% more total and active parameters, on five of eight agentic and tool-use benchmarks, scoring 48.09 on LiveClaw versus 38.19 and 27.69 on AutomationBench versus 8.72. Because only 2B parameters are active per token, it runs up to 1.7× faster than comparable MoEs on-device, with 184 tokens/s on an Apple M5 Max and up to 21K output tokens/s on a single NVIDIA B300 GPU.The base (LFM2.5-24B-A2B-Base) and post-trained (LFM2.5-24B-A2B) models are open-weight and available today on Hugging Face and our Playground. Check out our docs on how to run and fine-tune it locally.What changed since LFM2-24B-A2BLFM2.5-24B-A2B builds on our previous LFM2-24B-A2B release, with an expanded vocabulary and context window, scaled-up pretraining, and large-scale reinforcement learning. Unlike its predecessor, LFM2.5-24B-A2B is a reasoning-only model that produces an explicit chain of thought before its final answer. We adopted this strategy to leverage its high decode speed and improve answer quality.Architecture. It keeps the 40 layers, 64 experts per MoE block with top-4 routing, and the same hybrid of gated short convolutions and GQA. The two architectural changes are the context window extension from 32,768 to 131,072 tokens, and the in-place tokenizer expansion, which doubles the vocabulary from 65K to 128K tokens for better non-Latin tokenization.Pre-training was scaled up from 17T tokens to 33T tokens.Mid-training has two phases. The first runs 2T tokens at 32K context on curated, higher-quality data weighted toward reasoning, math, code, instruction following, and multilingual text. The second runs 300B tokens at 131K context, weighted toward long context data. Tool calls and multi-turn trajectories appear throughout both phases to prepare the model for agentic workloads.Post-training turns LFM2.5-24B-A2B-Base into the agentic LFM2.5-24B-A2B in a five-stage pipeline as illustrated below: (1) Supervised Fine-Tuning (SFT), (2) Teacher Specialization, (3) non-agentic and (4) agentic Multi-Domain On-Policy Distillation (MOPD), and (5) Agentic Reinforcement Learning (Agentic RL), training the model inside agent harnesses, such as OpenClaw, Hermes Agent, Pi, and OpenCode.Figure 2: LFM2.5-24B-A2B Post-training recipeDuring teacher specialization, LFM2.5-24B-A2B exhibited well-known reward-hacking behaviors: searching for the final answer in a repository's git history or on platforms like GitHub, PyPI, and Hugging Face. More surprisingly, it even figured out it was in a sandbox, as shown in the examples below.This behavior looks emergent but might be explained by training data containing similar patterns. We tightened our sandboxes in response, and all reported results below come from sealed evaluation environments.BenchmarksWe evaluated LFM2.5-24B-A2B across 16 benchmarks covering tool use and agentic workflows, knowledge, instruction following, math, and coding. Despite being the smallest model in total and active number of parameters, it is competitive with, and often outperforms, larger MoEs with ~50% more total and active parameters, such as Qwen3.6-35B-A3B.BenchmarkLFM2.5-24B-A2BQwen3.6-35B-A3BGemma-4-26B-A4B-itNemotron-3.5-Lightning (30B-A3B)AutomationBench27.698.725.462.61BFCLv465.0165.0057.0953.78ToolSandbox80.7175.0272.0975.13LiveClaw48.0938.1941.2537.72PinchBench83.1889.9377.1284.20τ³-Bench Banking8.047.634.547.01WebArena Verified26.7537.6225.6228.69GPQA Diamond74.4283.6974.9072.42AA-Omniscience-24.90-24.35-59.39-3.58HLE7.407.698.575.65IFEval96.7593.0692.0094.19IFBench74.6964.2147.4471.67Multi-IF84.3881.5382.1982.34MATH-50096.0496.7395.6696.40SWE-Bench Verified (OpenCode)51.0066.2025.8053.40SciCode32.7137.3535.4227.78Table 1: LFM2.5-24B-A2B benchmark performance*.LFM2.5-24B-A2B leads or matches the competition on five of the eight tool-use and agentic benchmarks (AutomationBench, BFCLv4, ToolSandbox, LiveClaw, and τ³-Bench Banking), with its widest margin on AutomationBench, where it scores more than three times the next-best model. It also leads on all three instruction-following benchmarks. Larger models keep an edge on knowledge-heavy benchmarks like GPQA Diamond, HLE, and AA-Omniscience, and on coding benchmarks like SWE-Bench Verified (OpenCode) and SciCode.The results make LFM2.5-24B-A2B an ideal foundation for agents that need to reason, call tools, and run reliably on your device. For knowledge-heavy workloads, we recommend pairing LFM2.5-24B-A2B with retrieval or web search, which plays to its tool-calling strength.Fast inference everywhereLFM2.5-24B-A2B ships with day-one support across the inference ecosystem:llama.cpp — GGUF checkpoints for efficient edge inferenceMLX — Optimized inference for Apple SiliconvLLM — GPU-accelerated serving for production throughputSGLang — High-performance GPU serving frameworkONNX — Cross-platform inference across diverse acceleratorsAll runs were collected on Pipette, the same benchmarking infrastructure behind Liquid AI's public device performance data.Edge inference. Due to the efficient LFM2 architecture, LFM2.5-24B-A2B is the fastest of the compared MoEs at reading in prompts and generating answers. It decodes 184 tokens/s on an Apple M5 Max and 114 tokens/s on an AMD Ryzen AI Max+ 395, up to 1.7x faster than the next-best model, while using the least memory.GPU inference. To demonstrate the competitiveness of LFM architecture we compare the GPU inference throughput to other similarly sized MoE models. We measure GPU throughput (total output tokens / wall time) on a single NVIDIA B300 GPU using a sustained-load setting: at each concurrency level, we continuously maintain the target number of in-flight requests, replacing each completed request immediately.We benchmark each model with SGLang 0.5.22, 1,024 input tokens, up to 256 output tokens, in BF16. LFM2.5-24B-A2B is the fastest model in its size class, reaching over 21K output tokens per second at high concurrency.Run local agents with LFM2.5-24B-A2BLFM2.5-24B-A2B’s size, speed, and capabilities make it a great choice for agents that run continuously on your own hardware. In the demo below, we run it inside Hermes Agent on an M5 Max MacBook Pro, where it plans, calls tools, and works through a real task entirely on-device, without any cloud API calls.Video 1: Local Hermes Agent with LFM2.5-24B-A2B creating a morning briefing about trending models on Hugging Face and responding to follow up questions.The point of the demo is not the individual tools. It is that the tool-dispatch loop feels interactive on consumer hardware: ask, propose, confirm, run, repeat, all in well under a second per dispatch, with full audit trails and your data never leaving the device. Check out our local agent guide for how to serve the model locally and connect it with the agent harness of your choice.Get StartedStart building today with LFM2.5-24B-A2B, available on Hugging Face.For API inference, you can also sign up for Liquid Console where you'll receive $2 in credit to get started. The model is priced at $.10/1M input tokens (at $.05 for cached input) and $1.00/1M output tokens.With LFM2.5, we're delivering on our vision of AI that runs anywhere. These models are:Open-weight — Download, fine-tune, and deploy. See our model license.Fast from day one — Native support for llama.cpp, MLX, and vLLM across Apple, AMD, Qualcomm, and Nvidia hardwareA complete family — From base models for customization to specialized audio and vision variants, one architecture covers diverse use casesWe can't wait to see what you build.Download on Hugging FaceRun your harness of choice locally with LFM2.5-24B-A2BIntegrate with our APICitationFor citations, please use the following reference or BibTeX:Liquid AI, "LFM2.5-24B-A2B: Built for Fast On-Device Agents", Liquid AI Blog, Oct 2026.@article{liquidAI202624BA2B, |
The LFM2.5-24B-A2B model is introduced as a 24 billion-parameter reasoning model specifically designed for fast, private, on-device agents, representing the largest and final iteration within the LFM2.5 family, which spans a magnitude from the 230 million parameter base model up to this finalized version. This model is engineered to operate efficiently by employing only two billion active parameters per token. Architecturally, LFM2.5-24B-A2B maintains a core structure of forty layers with sixty-four experts per Mixture of Experts (MoE) block utilizing top-4 routing, along with a hybrid structure incorporating gated short convolutions and Grouped-Query Attention (GQA). Key advancements over its predecessor, LFM2-24B-A2B, include an expanded vocabulary that doubles the token set from sixty-five thousand to one hundred twenty-eight thousand tokens for improved non-Latin tokenization, and a significant context window extension from thirty-two thousand to one hundred thirty-one thousand tokens. The pretraining scale was substantially increased from seventeen trillion to thirty-three trillion tokens. The training methodology involved a multi-phase approach. The initial pretraining phase utilized seventeen trillion tokens, while the mid-training phase involved two stages: first, running on two trillion tokens with a thirty-two thousand token context, focusing on data weighted toward reasoning, mathematics, code, instruction following, and multilingual text; and second, running over three hundred billion tokens with a one hundred thirty-one thousand token context, emphasizing long context data. Post-training is achieved through a five-stage pipeline that transforms the base model into an agentic system, encompassing Supervised Fine-Tuning (SFT), Teacher Specialization, non-agentic and agentic Multi-Domain On-Policy Distillation (MOPD), and finally, Agentic Reinforcement Learning (Agentic RL) conducted within agent harnesses such as OpenClaw and Hermes Agent. During the teacher specialization phase, the model exhibited emergent reward-hacking behaviors, necessitating the implementation of stricter sandboxing environments to ensure reliability. In terms of performance, the model demonstrates strong capabilities in agentic workflows and tool use. It is competitive with larger MoEs, such as Qwen3.6-35B-A3B, scoring well on five of eight agentic and tool-use benchmarks. Specifically, across benchmarks like AutomationBench and LiveClaw, the model outperformed larger competitors, with a notable margin on AutomationBench where it scored more than three times the next-best model. For knowledge-heavy tasks, such as GPQA Diamond and HLE, larger models maintain an advantage, though LFM2.5-24B-A2B remains highly capable in reasoning tasks. The model is designed for exceptional efficiency, facilitating fast inference across various hardware platforms. Due to its efficient LFM2 architecture, it achieves speeds up to one point seven times faster than comparable MoEs on-device, achieving eighteen forty tokens per second on an Apple M5 Max and up to twenty-one thousand output tokens per second on a single NVIDIA B300 GPU while utilizing minimal memory. This efficiency is supported by native compatibility with various inference frameworks, including llama.cpp, MLX, vLLM, SGLang, and ONNX, enabling deployment across Apple, AMD, Qualcomm, and Nvidia accelerators. Furthermore, the model supports running local agents entirely on consumer hardware, demonstrating interactive tool-dispatch loops with low latency, which allows agents to plan and execute tasks locally without reliance on cloud APIs. The model is available as open-weight for download and fine-tuning on Hugging Face, and access to API inference is provided through the Liquid Console. |