Deploy local agents everywhere with LFM2.5-2.6B
摘要
Liquid AI releases LFM2.5-2.6B, a compact agentic model designed for on-device deployment, supporting tool calling and multi-step workflows with efficient inference on CPUs and GPUs.
查看缓存全文
缓存时间: 2026/08/04 19:38
Deploy local agents everywhere with LFM2.5-2.6B
Source: https://huggingface.co/blog/LiquidAI/lfm2-5-2-6b Back to Articles
- How we built a reliable agentic model for edge devices
- Benchmark results
- Inference speed on CPU and GPU
- How to use LFM2.5-2.6B
- LFM2.5-2.6B demo
- Get Started
- Citation
LFM2.5-2.6Bis built to power capable agents entirely on-device. It supports tool calling and multi-step workflows while staying small and fast enough for everyday hardware, from laptops to phones. This enables developers to deploy agents everywhere, keep data private on the device, and scale usage without a cloud inference bill.
- **Best-in-class agent:**Competitive with models 4x larger on tool use, instruction following, and multi-step agentic tasks.
- **Agentic reinforcement learning:**Trained inside the most popular agentic harnesses to improve compatibility.
- Efficient inference: 220 tok/s on an Apple M5 Max and 113 tok/s on an AMD Ryzen CPU, in under 2.5 GB of memory.
https://huggingface.co/blog/LiquidAI/lfm2-5-2-6b#how-we-built-a-reliable-agentic-model-for-edge-devicesHow we built a reliable agentic model for edge devices
LFM2.5-2.6B is pre-trained on ~34T tokens, with a mid-training phase that extends the context window to 128K. Post-training then turns the base model into an agent in four stages:
- **Supervised fine-tuning (SFT):**two rounds of SFT, weighted heavily toward agentic data like tool use, web search, and harness trajectories.
- **Teacher specialization:**train one specialist teacher per domain (math, code, tool use, and more).
- **Multi-domain on-policy distillation (MOPD):**distill the specialist teachers into a single student.
- **Agentic Reinforcement Learning (Agentic RL):**run multi-turn RL inside real agent harnesses, where the model learns to work across different tools, system prompts, and multi-turn task environments.
The Agentic RL pipeline separates model optimization, inference, and environment execution into distinct components. TheTraining Engineoptimizes the model, while theRollout Enginegenerates actions using the latest policy. TheRL frameworkorchestrates the training loop by launching rollouts, collecting trajectories and rewards, and updating the model.
Actions are executed within aSandbox Service, where theBlackbox Harnesshosts the agent (e.g., OpenClaw or Hermes Agent) and coordinates interactions with the task environment. TheHarness Proxylets us treat agentic harnesses as black boxes with no modification, while transparently capturing the token-level trajectories needed to reconstruct and validate RL training samples.
https://huggingface.co/blog/LiquidAI/lfm2-5-2-6b#benchmark-resultsBenchmark results
We evaluated LFM2.5-2.6B against models up to ~4x its size on STEM, instruction following, tool use, and agentic tasks. It is the smallest model in the group, yet it competes with and often beats the rest.
BenchmarkLFM2.5-2.6B (2.6B)gemma-4-E2B-it (5.1B)gemma-4-E4B-it (8B)Qwen3.5-4B (4.7B)Qwen3.5-9B (9.7B)AA Omniscience-29.50-74.47-49.03-54.30-50.43AIME2551.8726.3334.2749.3356.07LiveCodeBenchv659.4154.9263.7760.8569.86IFBench59.1734.0839.2448.4056.47Multi-IF80.0769.4477.3555.6762.55IFStruct85.4964.8576.6536.2578.50BFCLv456.8836.9846.3950.5660.13ToolSandbox77.8352.4065.0075.5576.44τ³-Bench Banking5.673.354.125.455.15Claw-Eval average (EN)62.8553.1458.0262.2866.53PinchBench68.2244.2455.0971.2671.45BrowseComp+ (OpenClaw)26.898.3115.9024.4627.23 For your app, the strengths are instruction following and tool use. LFM2.5-2.6B tops every instruction-following benchmark here, and every tool-use benchmark except BFCLv4, where only the 9.7B Qwen edges ahead. On agentic tasks, it beats both Gemma models and stays even with the Qwens. It also leads on knowledge and stays close on math. Coding is the one place the larger models keep a clear lead, so reach for something bigger there.
https://huggingface.co/blog/LiquidAI/lfm2-5-2-6b#inference-speed-on-cpu-and-gpuInference speed on CPU and GPU
LFM2.5-2.6B ships with day-one support across the inference ecosystem, including llama.cpp, MLX, vLLM, SGLang, and ONNX.
**CPU inference.**Due to its efficient LFM2 architecture, LFM2.5-2.6B is the fastest model we tested, with decode speeds of 220 tokens/s on an M5 Max and 113 tokens/s on a Ryzen AI Max+ 395. At 30 tokens/s, it allows you to run capable agents even on a phone.
**GPU inference.**LFM2.5-2.6B is the fastest model in its size class, reaching almost 15K output tokens per second at high concurrency, roughly 1.3B tokens per day on a single H100.
https://huggingface.co/blog/LiquidAI/lfm2-5-2-6b#how-to-use-lfm25-26bHow to use LFM2.5-2.6B
Reach for LFM2.5-2.6B when you need on-device agents for high-volume workloads.
Install the latest version oftransformers(compatible withtransformers\>=5\.0\.0):
pip install -U transformers
Then load and run the model:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "LiquidAI/LFM2.5-2.6B"
model = AutoModelForCausalLM.from_pretrained(
model_id,
device_map="auto",
dtype="bfloat16",
# attn_implementation="flash_attention_2" # uncomment on a compatible GPU
)
tokenizer = AutoTokenizer.from_pretrained(model_id)
prompt = "What is C. elegans?"
input_ids = tokenizer.apply_chat_template(
[{"role": "user", "content": prompt}],
add_generation_prompt=True,
return_tensors="pt",
tokenize=True,
).to(model.device)
output = model.generate(
input_ids,
do_sample=True,
temperature=0.2,
top_k=80,
repetition_penalty=1.05,
max_new_tokens=512,
)
print(tokenizer.decode(output[0], skip_special_tokens=False))
https://huggingface.co/blog/LiquidAI/lfm2-5-2-6b#lfm25-26b-demoLFM2.5-2.6B demo
Check out thisbrowser demo of LFM2.5-2.6B powering a research agent. The agent helps you research specific questions and generates a summary.
https://huggingface.co/blog/LiquidAI/lfm2-5-2-6b#get-startedGet Started
Both LFM2.5-2.6B and LFM2.5-2.6B-Base are available on Hugging Face today.
With LFM2.5, we’re delivering on our vision of AI that runs anywhere. These models are:
- Download:LFM2.5-2.6B-BaseandLFM2.5-2.6Bon Hugging Face.
- **Try:**run the WebGPU demo in your browser, no setup needed.
- **Use in your harness:**follow ourguideon how to run a local agent, like OpenClaw, Hermes Agent, and Pi.
We can’t wait to see what you build.
https://huggingface.co/blog/LiquidAI/lfm2-5-2-6b#citationCitation
Please cite this article as:
Liquid AI, "LFM2.5-2.6B: Deploy Agents Everywhere", Liquid AI Blog, Aug 2026.
Or use the BibTeX citation:
@article{liquidAI202626B,
author = {Liquid AI},
title = {LFM2.5-2.6B: Deploy Agents Everywhere},
journal = {Liquid AI Blog},
year = {2026},
note = {www.liquid.ai/blog/lfm2-5-2-6b},
}
相似文章
LFM2.5-2.6B:随处部署智能体(8分钟阅读)
Liquid AI 发布了 LFM2.5-2.6B,这是一款紧凑的智能体模型,设计为完全在设备端运行,从而实现免费推理、低延迟和隐私保护。文章详细介绍了其训练流程,包括 SFT、教师特化、蒸馏和智能体强化学习。
LiquidAI/LFM2.5-230M
Liquid AI发布了LFM2.5-230M,一款紧凑的230M参数混合模型,针对设备端部署进行了优化,边缘推理速度快(在Galaxy S25 Ultra上达到213 tok/s),并通过强化学习构建,适用于智能体任务。
LiquidAI/LFM2.5-2.6B
Liquid AI released LFM2.5-2.6B, a 2.6B-parameter hybrid model optimized for on-device deployment with 128K context, agentic post-training, and fast inference (220 tok/s on Apple M5 Max) under 2.5GB memory.
@liquidai:推出LFM2.5-230M:这是我们最小的模型,专为快速运行而设计,可在任何地方(CPU、NPU和GPU)上运行,以实现代理型任务…
Liquid AI发布了LFM2.5-230M,这是一个拥有230M参数的小型模型,针对CPU、NPU和GPU上的快速推理进行了优化,适用于手机和机器人等设备上的代理型任务。
@maximelabonne:LFM2.5-2.6B 今天在 @huggingface 上可用。这是同类中首个智能体模型,它在 EVE 上彻底碾压了我们之前的发布……
Liquid AI 发布了 LFM2.5-2.6B,这是一款端侧智能体模型,能够在手机、笔记本电脑、PC 和机器人上规划任务、调用工具并完成多步操作,且数据始终不离开设备。




