Liquid AI发布LFM2.5-24B-A2B:面向端侧Agent的开源推
LFM2.5-24B-A2B: Built for fast on-device agents
端侧Agent推理的新标杆,MoE稀疏激活带来的极致速度与隐私优势值得关注,建议开发者关注其在本地硬件上的部署表现。
Today, 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,这是一款拥有 24B 参数但仅 2B 活跃参数的推理模型,专为在设备上快速、私密地运行智能体而构建。它是 LFM2.5 系列中最大且最终的模型,该系列现已跨越两个数量级:从 LFM2.5-230M 到 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.
在八个智能体和工具使用基准测试中的五个上,LFM2.5-24B-A2B 与 Qwen3.6-35B-A3B(其总参数和活跃参数均多约 50%)具有竞争力,在 LiveClaw 上得分为 48.09,而在 AutomationBench 上得分为 38.19 对比 8.72。由于每个 token 仅有 2B 参数处于活跃状态,它在设备上的运行速度比可比的 MoE 模型快多达 1.7 倍,在 Apple M5 Max 上达到 184 tokens/s,在单个 NVIDIA B300 GPU 上高达 21K 输出 tokens/s。
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.
基础模型(LFM2.5-24B-A2B-Base)和后续训练模型(LFM2.5-24B-A2B)均为开放权重,今日可在 Hugging Face 和我们的 Playground 上获取。查看我们的文档,了解如何在本地运行和微调它。
What changed since LFM2-24B-A2B
自 LFM2-24B-A2B 以来的变化
LFM2.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.
LFM2.5-24B-A2B 基于我们之前发布的 LFM2-24B-A2B 版本构建,具有扩展的词表和上下文窗口,进行了扩大的预训练以及大规模强化学习。与其前身不同,LFM2.5-24B-A2B 是一个纯推理模型,在给出最终答案前会生成显式的思维链。我们采用此策略是为了利用其高解码速度并提高答案质量。
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.
架构。它保留了 40 层、每个 MoE 块 64 个专家及 top-4 路由,以及门控短卷积与 GQA 的混合结构。两项架构变更是上下文窗口从 32,768 扩展到 131,072 个 token,以及原地进行的词表扩展,将词表大小从 65K 翻倍至 128K 个 token,以更好地处理非拉丁语 tokenization。
Pre-training was scaled up from 17T tokens to 33T tokens.
预训练规模从 17T 个 token 扩大到 33T 个 token。
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.
中期训练分为两个阶段。第一阶段在 32K 上下文下运行 2T 个 token,数据经过精心筛选且质量更高,侧重于推理、数学、代码、指令遵循和多语言文本。第二阶段在 131K 上下文下运行 300B 个 token,侧重于长上下文数据。工具调用和多轮轨迹贯穿这两个阶段,以使模型为智能体工作负载做好准备。
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.
后训练通过以下五个阶段的流水线,将 LFM2.5-24B-A2B-Base 转化为具有代理能力的 LFM2.5-24B-A2B:(1) 监督微调 (SFT),(2) 教师专业化,(3) 非代理式多域在线蒸馏 (MOPD),(4) 代理式多域在线蒸馏 (MOPD),以及 (5) 代理式强化学习 (Agentic RL),在 OpenClaw、Hermes Agent、Pi 和 OpenCode 等代理框架内对模型进行训练。
Figure 2: LFM2.5-24B-A2B Post-training recipe
图 2:LFM2.5-24B-A2B 后训练配方
During 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.
在教师专业化阶段,LFM2.5-24B-A2B 表现出众所周知的奖励黑客行为:在仓库的 git 历史记录或 GitHub、PyPI 和 Hugging Face 等平台上搜索最终答案。更令人惊讶的是,它甚至意识到自己处于沙盒环境中,如下例所示。
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.
这种行为看似涌现,但可能由包含类似模式的训练数据所解释。我们因此收紧了沙盒环境,以下所有报告结果均来自密封的评估环境。
Benchmarks
基准测试
We 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.
我们在涵盖工具使用与代理工作流、知识、指令遵循、数学和编程的 16 个基准测试上评估了 LFM2.5-24B-A2B。尽管其总参数数量和活跃参数数量均为最小,但它能与总参数和活跃参数多约 50% 的更大混合专家 (MoE) 模型(如 Qwen3.6-35B-A3B)相竞争,且通常表现更佳。
| Benchmark | LFM2.5-24B-A2B | Qwen3.6-35B-A3B | Gemma-4-26B-A4B-it | Nemotron-3.5-Lightning (30B-A3B) |
|---|---|---|---|---|
| AutomationBench | 27.69 | 8.72 | 5.46 | 2.61 |
| BFCLv4 | 65.01 | 65.00 | 57.09 | 53.78 |
| ToolSandbox | 80.71 | 75.02 | 72.09 | 75.13 |
| LiveClaw | 48.09 | 38.19 | 41.25 | 37.72 |
| PinchBench | 83.18 | 89.93 | 77.12 | 84.20 |
| τ³-Bench Banking | 8.04 | 7.63 | 4.54 | 7.01 |
| WebArena Verified | 26.75 | 37.62 | 25.62 | 28.69 |
| GPQA Diamond | 74.42 | 83.69 | 74.90 | 72.42 |
| AA-Omniscience | -24.90 | -24.35 | -59.39 | -3.58 |
| HLE | 7.40 | 7.69 | 8.57 | 5.65 |
| IFEval | 96.75 | 93.06 | 92.00 | 94.19 |
| IFBench | 74.69 | 64.21 | 47.44 | 71.67 |
| Multi-IF | 84.38 | 81.53 | 82.19 | 82.34 |
| MATH-500 | 96.04 | 96.73 | 95.66 | 96.40 |
| SWE-Bench Verified (OpenCode) | 51.00 | 66.20 | 25.80 | 53.40 |
| SciCode | 32.71 | 37.35 | 35.42 | 27.78 |
| 基准测试 | LFM2.5-24B-A2B | Qwen3.6-35B-A3B | Gemma-4-26B-A4B-it | Nemotron-3.5-Lightning (30B-A3B) |
|---|---|---|---|---|
| AutomationBench | 27.69 | 8.72 | 5.46 | 2.61 |
| BFCLv4 | 65.01 | 65.00 | 57.09 | 53.78 |
| ToolSandbox | 80.71 | 75.02 | 72.09 | 75.13 |
| LiveClaw | 48.09 | 38.19 | 41.25 | 37.72 |
| PinchBench | 83.18 | 89.93 | 77.12 | 84.20 |
| τ³-Bench Banking | 8.04 | 7.63 | 4.54 | 7.01 |
| WebArena Verified | 26.75 | 37.62 | 25.62 | 28.69 |
| GPQA Diamond | 74.42 | 83.69 | 74.90 | 72.42 |
| AA-Omniscience | -24.90 | -24.35 | -59.39 | -3.58 |
| HLE | 7.40 | 7.69 | 8.57 | 5.65 |
| IFEval | 96.75 | 93.06 | 92.00 | 94.19 |
| IFBench | 74.69 | 64.21 | 47.44 | 71.67 |
| Multi-IF | 84.38 | 81.53 | 82.19 | 82.34 |
| MATH-500 | 96.04 | 96.73 | 95.66 | 96.40 |
| SWE-Bench Verified (OpenCode) | 51.00 | 66.20 | 25.80 | 53.40 |
| SciCode | 32.71 | 37.35 | 35.42 | 27.78 |
Table 1: LFM2.5-24B-A2B benchmark performance*.
表 1:LFM2.5-24B-A2B 基准测试结果*。
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.
LFM2.5-24B-A2B 在八项工具使用与智能体基准测试中的五项(AutomationBench、BFCLv4、ToolSandbox、LiveClaw 和 τ³-Bench Banking)中领先或持平于竞争对手,其中在 AutomationBench 上优势最大,其得分是次优模型的三倍以上。它在所有三项指令遵循基准测试中也处于领先地位。在 GPQA Diamond、HLE 和 AA-Omniscience 等知识密集型基准测试以及 SWE-Bench Verified (OpenCode) 和 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.
这些结果使 LFM2.5-24B-A2B 成为需要推理、调用工具并在您的设备上可靠运行的智能体的理想基础模型。对于知识密集型工作负载,我们建议将 LFM2.5-24B-A2B 与检索或网络搜索结合使用,以发挥其工具调用的优势。
Fast inference everywhere
无处不在的快速推理
LFM2.5-24B-A2B ships with day-one support across the inference ecosystem:
LFM2.5-24B-A2B 在推理生态系统中提供首日支持:
- llama.cpp — GGUF checkpoints for efficient edge inference
- MLX — Optimized inference for Apple Silicon
- vLLM — GPU-accelerated serving for production throughput
- SGLang — High-performance GPU serving framework
- ONNX — Cross-platform inference across diverse accelerators
- llama.cpp — GGUF 检查点,用于高效的边缘推理
- MLX — 针对 Apple Silicon 优化的推理
- vLLM — GPU 加速的生产环境吞吐量服务
- SGLang — 高性能 GPU 推理框架
- ONNX — 跨平台推理,支持多种加速器
All runs were collected on Pipette, the same benchmarking infrastructure behind Liquid AI's public device performance data.
所有运行数据均在 Pipette 上收集,这是 Liquid AI 公开设备性能数据背后的同一基准测试基础设施。
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.
边缘推理。得益于高效的 LFM2 架构,LFM2.5-24B-A2B 是在对比的 MoE 模型中读取提示词并生成答案速度最快的模型。它在 Apple M5 Max 上的解码速度为每秒 184 个 token,在 AMD Ryzen AI Max+ 395 上为每秒 114 个 token,比次优模型快多达 1.7 倍,同时内存占用最低。
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.
GPU 推理。为了展示 LFM 架构的竞争力,我们将 GPU 推理吞吐量与其他规模相似的 MoE 模型进行比较。我们在单块 NVIDIA B300 GPU 上使用持续负载设置测量 GPU 吞吐量(总输出 token / 墙钟时间):在每个并发级别下,我们持续维持目标数量的进行中请求,并在每个请求完成后立即替换它。
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.
我们使用 SGLang 0.5.22、1,024 个输入 token、最多 256 个输出 token、BF16 精度对每个模型进行基准测试。LFM2.5-24B-A2B 是其尺寸类别中最快的模型,在高并发情况下每秒可输出超过 21K 个 token。
Run local agents with LFM2.5-24B-A2B
使用 LFM2.5-24B-A2B 运行本地智能体
LFM2.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.
LFM2.5-24B-A2B 的规模、速度和性能使其成为在自有硬件上持续运行的智能体的理想选择。在下方的演示中,我们在 M5 Max MacBook Pro 上的 Hermes Agent 内部运行该模型,它完全在设备端进行规划、调用工具并处理真实任务,无需任何云端 API 调用。
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.
视频 1:本地 Hermes Agent 使用 LFM2.5-24B-A2B 创建关于 Hugging Face 上热门模型的晨间简报,并回答后续问题。
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 Started
开始使用
Start building today with LFM2.5-24B-A2B, available on Hugging Face.
今天即可开始使用 LFM2.5-24B-A2B 进行构建,该模型已在 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.
对于 API 推理,您还可以注册 Liquid Console,注册后将获得 2 美元额度以开始使用。该模型的价格为每百万输入令牌 0.10 美元(缓存输入为 0.05 美元),每百万输出令牌 1.00 美元。
With LFM2.5, we're delivering on our vision of AI that runs anywhere. These models are:
通过 LFM2.5,我们正在实现“AI 随处运行”的愿景。这些模型具备以下特点:
- Open-weight — Download, fine-tune, and deploy. See our model license.
- 开放权重——可下载、微调并部署。请参阅我们的模型许可证。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力