Open & local AI

LFM2.5-24B-A2B brings fast on-device reasoning to local agents

Hugging Face releases LFM2.5-24B-A2B, a 24B-parameter model with only 2B active parameters, optimized for private, high-speed agent workflows on local hardware.

A metallic cube with glowing circuits on a desk beside paper notes and a phone.
Illustration generated for this article

Hugging Face has released LFM2.5-24B-A2B, a new reasoning model designed specifically for running autonomous agents directly on user devices. Launched in October 2026, this model combines a large total parameter count with sparse activation to deliver high performance while maintaining privacy and low latency.

The release targets developers building tools that require complex reasoning, tool usage, and multi-step task execution without relying on cloud APIs. By keeping computation local, the model addresses growing concerns around data sovereignty and inference costs for continuous agent operations.

What happened

LFM2.5-24B-A2B is a 24-billion-parameter model that activates only 2 billion parameters per token during inference. This sparse architecture allows it to perform reasoning tasks efficiently on consumer hardware, such as laptops and workstations, rather than requiring massive server clusters. The model is explicitly designed to "think before it answers," generating an explicit chain of thought before producing a final response or tool call.

This iteration builds upon the previous LFM2-24B-A2B but shifts focus entirely toward reasoning and agentic capabilities. Unlike general-purpose predecessors, this version does not aim to be a chatbot for casual conversation but rather a robust engine for automated workflows. It integrates seamlessly with popular agent harnesses like OpenClaw, Hermes Agent, Pi, and OpenCode, enabling developers to deploy sophisticated agents that can handle multi-turn trajectories and complex instruction following.

The training process was significantly scaled up compared to earlier versions. Pre-training utilized approximately 33 trillion tokens, nearly double the volume of its predecessor. Mid-training added another 2 trillion tokens at a 32K context window, focusing heavily on reasoning, mathematics, code, and multilingual text. An additional 300 billion tokens were processed at an extended 131K context window to improve long-context handling. Post-training involved five distinct stages, including supervised fine-tuning, teacher specialization, and two rounds of multi-domain on-policy distillation, culminating in agentic reinforcement learning.

How it works

The model retains the core architecture of its predecessor, featuring 40 layers and a Mixture of Experts (MoE) design with 64 experts per block and top-4 routing. It uses a hybrid attention mechanism combining gated short convolutions with Grouped Query Attention (GQA). A key upgrade is the expansion of the context window from 32K to 131K tokens, allowing the agent to maintain awareness over much longer documents or conversation histories. Additionally, the vocabulary size doubled from 65K to 128K tokens via in-place tokenizer expansion, improving performance on non-Latin languages.

Efficiency is achieved through sparsity. Although the model contains 24 billion parameters, only a small subset is active for any given token. This reduces the computational load per step, enabling high throughput even on edge devices. The model supports day-one integration with major inference frameworks, including llama.cpp, MLX, vLLM, SGLang, and ONNX, ensuring broad compatibility across different hardware ecosystems.

Key details

  • Architecture: 24B total parameters with only 2B active per token, using 40 layers and 64 MoE experts.
  • Context Window: Expanded to 131K tokens, up from 32K in the previous version.
  • Performance: Achieves 184 tokens per second on an Apple M5 Max and over 21K output tokens per second on a single NVIDIA B300 GPU.
  • Benchmarking: Scores 48.09 on LiveClaw, outperforming Qwen3.6-35B-A3B, which scored 38.19.
  • Training Data: Pre-trained on ~33T tokens, with mid-training focused on reasoning, code, and long-context data.
  • Compatibility: Supports llama.cpp, MLX, vLLM, SGLang, and ONNX for flexible deployment.

Why it matters

For software engineers and technical founders, this release represents a shift toward viable on-device AI agents. Previously, running capable reasoning models locally often meant sacrificing speed or context length. LFM2.5-24B-A2B demonstrates that sparse architectures can deliver competitive performance against larger, denser models while consuming significantly less memory and compute. This enables applications where privacy is paramount, such as processing sensitive legal, medical, or financial documents, without sending data to external servers.

The model’s strength in tool use and instruction following makes it particularly suitable for automating complex workflows. Benchmarks show it leading or matching competitors in five out of eight agentic benchmarks, including AutomationBench and ToolSandbox. However, it is not a universal replacement for larger models. It trails behind larger counterparts in knowledge-heavy tasks like GPQA Diamond and coding benchmarks like SWE-Bench Verified. Developers should therefore view it as a specialized component for reasoning and orchestration, potentially paired with retrieval-augmented generation systems for factual accuracy.

What you can do

  • Install the latest version of the transformers library (version 5.0.0 or higher) to ensure compatibility.
  • Test the model on local hardware using supported frameworks like MLX for Apple Silicon or llama.cpp for broader CPU/GPU support.
  • Integrate the model into agent harnesses such as OpenClaw or Hermes Agent to evaluate its tool-calling capabilities.
  • Use the expanded 131K context window for tasks involving long documents or extended conversation histories.
  • Pair the model with external search or retrieval tools to compensate for its lower performance on knowledge-heavy benchmarks.
  • Benchmark your specific agentic workflows against the provided results to determine if the speed-to-performance ratio meets your latency requirements.
  • #ai agents
  • #on-device ai
  • #mixture of experts
  • #hugging face
  • #local llm

Tools from the Bytechap store

$89

DocBento

Self-hosted document management that reads every scan and answers with page citations.

Live demo

Keep reading

All stories