Liquid AI's LFM2.5-24B Runs 184 Tokens per Second for Local Agents
Liquid AI's new 24B mixture-of-experts activates only 2B parameters per token, delivers 184 tokens/sec on an M5 Max, and ships in GGUF for llama.cpp.
Takeaways
- Liquid AI released LFM2.5-24B-A2B, a 24B MoE with only 2.45B active parameters per token.
- Hybrid architecture: 30 convolution blocks plus 10 GQA layers, 64 experts with top-4 routing, 131K context window.
- Hits 184 tok/s on Apple M5 Max and 114 tok/s on AMD Ryzen AI Max+ 395 in BF16.
- Beats Qwen3.6-35B-A3B on 5 of 8 agentic benchmarks; AutomationBench score is over 3x Qwen's.
- Ships in safetensors, FP8, GGUF, ONNX, and 4-bit MLX; also on OpenRouter at $0.05/$0.70 per M tokens.
- RL post-training was done inside real agent harnesses (OpenClaw, Hermes, Pi, OpenCode) for native tool calling.
Liquid AI has released LFM2.5-24B-A2B, the final and largest model in its LFM2.5 family. The text-only mixture-of-experts model contains 24 billion parameters while activating about 2.45 billion for each token. It supports a 131,072-token context window and ships in formats for GPU servers, CPUs and Apple Silicon.
A mixture-of-experts model routes each token through a subset of its available parameters. That reduces computation during generation, although the runtime generally must still load the full weight set into memory. The active-parameter count therefore affects speed more than storage requirements.
- Total parameters: 24 billion
- Active per token: about 2.45 billion
- Context window: 131,072 tokens
- Available formats: Safetensors, FP8, GGUF, ONNX and 4-bit MLX
- Primary use: local reasoning, tool use and multi-step agent loops
Liquid reports decode speeds of 184 tokens per second on an Apple M5 Max and 114 tokens per second on an AMD Ryzen AI Max+ 395. Its published comparison shows up to a 1.7-fold speed advantage and the lowest memory use among the tested mixture-of-experts models. Quantization, prompt length, batch size and runtime configuration can materially change those results.
Forty layers, four experts per token
LFM2.5-24B-A2B retains the hybrid architecture of LFM2-24B-A2B. Its 40 layers comprise 30 double-gated short-convolution blocks and 10 grouped-query-attention blocks. Short convolutions perform efficient local sequence mixing, while grouped-query attention handles longer-range relationships with a smaller key-value cache than conventional multihead attention.
Each mixture-of-experts feed-forward layer selects four of 64 experts for a token. This sparse routing accounts for the gap between the model’s 24 billion stored parameters and its 2.45 billion active parameters.
Relative to the earlier release, the context window increased from 32,768 to 131,072 tokens, and the vocabulary expanded from about 65,000 to 128,000 tokens. Liquid performed the tokenizer expansion in place to improve the handling of non-Latin text. Base-model pretraining also increased from roughly 17 trillion to 33 trillion tokens.
Every assistant turn begins with a reasoning block, whereas the previous checkpoint did not consistently reason before answering. Applications that parse streamed output, expose raw model text or dispatch tool calls should account for that block and test how their runtime separates reasoning from final responses.
Training inside agent harnesses
Liquid says reinforcement learning took place within OpenClaw, Hermes Agent, Pi and OpenCode. These environments let the model interact with tools, process returned data, recover from errors and maintain state across multiple steps. Such episodes more closely resemble deployed agent loops than isolated tool-call examples.
The training choice also makes framework integration part of the model’s behavior. Developers should use the checkpoint’s supplied chat template and verify tool schemas, stop conditions and result messages against their chosen harness. Local servers and hosted APIs may serialize the same function call differently.
Tool use leads the scorecard
According to Liquid’s published evaluation, LFM2.5-24B-A2B leads or ties competing models on five of eight agent and tool-use benchmarks:
- AutomationBench
- BFCLv4
- ToolSandbox
- LiveClaw
- τ³-Bench Banking
The largest reported margin appears on AutomationBench, where the model scores 27.69 compared with 8.72 for Qwen3.6-35B-A3B. Liquid also reports first-place results across the three instruction-following evaluations in its test suite.
The model trails larger competitors on demanding coding evaluations such as SWE-Bench. Liquid also recommends retrieval or web search for knowledge-heavy work, positioning the checkpoint as an agent controller rather than a comprehensive source of factual knowledge. The benchmark figures are vendor-reported and remain sensitive to prompts, tool definitions, inference settings and scoring implementations.
Peers offer longer context at higher active counts
| Model | Total parameters | Active per token | Context | Architecture |
|---|---|---|---|---|
| LFM2.5-24B-A2B | 24.0B | 2.45B | 131K | Convolution and GQA hybrid MoE |
| Qwen3.6-35B-A3B | 35B | 3B | 262K | Gated DeltaNet and attention MoE |
| Gemma-4-26B-A4B-it | 25.2B | 3.8B | 256K | Sliding and global attention MoE |
| Nemotron-3.5-Lightning-30B-A3B | 30B | 3B | 1M | Mamba-2 and attention MoE |
Budget for all 24 billion weights
Local sizing should begin with the total parameter count. Raw weights require roughly 48GB at BF16, 24GB at FP8 and 12GB at 4-bit precision before runtime overhead. The key-value cache, context length and inference engine add further memory use, with long prompts increasing the cache substantially.
| Precision | Approximate size |
|---|---|
| BF16 | 48GB |
| FP8 | 24GB |
| 4-bit | 12GB |
GGUF quantizations provide the most direct route into llama.cpp, LM Studio and compatible Ollama configurations. Users need a runtime build that recognizes the architecture and its chat-template metadata. A minimal llama.cpp launch takes the following form:
llama-cli -m /path/to/model.gguf -cnv
A recent Transformers release with model support can load the native checkpoint as follows:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "LiquidAI/LFM2.5-24B-A2B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
device_map="auto",
dtype="auto",
)
model.eval()
messages = [
{"role": "user", "content": "What is C. elegans?"}
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
return_tensors="pt",
return_dict=True,
)
inputs = {name: tensor.to(model.device) for name, tensor in inputs.items()}
with torch.inference_mode():
output = model.generate(
**inputs,
max_new_tokens=512,
do_sample=False,
)
prompt_length = inputs["input_ids"].shape[1]
generated = output[0, prompt_length:]
print(tokenizer.decode(generated, skip_special_tokens=True))
The example decodes only newly generated tokens, avoiding a second copy of the prompt in the output. Deployments using device_map="auto" also need Accelerate and enough aggregate memory for the selected precision.
OpenRouter offers a hosted option at a reported price of $0.05 per million input tokens, $0.70 per million output tokens and $0.025 per million cached-read tokens. At publication, that endpoint exposes a 128,000-token context window and allows up to 8,192 completion tokens. Those provider limits are slightly lower than the checkpoint’s native context and may change independently of the model.
Workloads that fit the design
The model’s architecture and post-training suit applications that need repeated local tool calls, predictable latency or control over sensitive data. Relevant workloads include:
- Desktop copilots that operate local applications
- IDE assistants that inspect repositories and call development tools
- Browser agents that execute multi-step workflows
- On-premises automation with restricted data movement
- Agent routers that coordinate retrieval, search and structured APIs
Several constraints narrow that fit. The checkpoint accepts text only, requires retrieval for dependable knowledge-heavy answers and trails larger models on demanding software-engineering tasks. Its 131K context can also consume significant memory when fully used.
Commercial adopters should review the custom LFM Open License v1.0 before distribution or deployment. Its terms differ from the Apache 2.0 licensing used by some competing model families.
Local agents gain a stronger controller
LFM2.5-24B-A2B concentrates its compute on a small expert subset while retaining enough total capacity for reasoning and tool selection. That design can make agent loops practical on high-memory laptops and workstations, provided the full quantized model and its growing key-value cache fit in memory.
For developers choosing between local and hosted agents, the release offers a concrete trade-off: lower recurring inference costs, local data handling and fast tool interactions in exchange for weaker standalone knowledge, limited multimodal support and less coding depth than larger models. Its strongest case rests on tool use, deployable formats and training conducted inside the same kinds of harnesses used in production.