LFM2.5-24B-A2B: A 2B-Active Reasoning Model for Local Agents
Liquid AI's 24B MoE activates 2.45B parameters per token, always reasons first, and writes tool calls. Here's how to run it and where it fits.
The code in this post comes from the model's docs and hasn't been run in our CI yet. If something breaks, let us know.
LFM2.5-24B-A2B is a text-only reasoning model from Liquid AI. It has 24B parameters in total but only about 2.45B are active for each token, which is why the card pitches it at “fast, private agents on-device”. Liquid AI calls it the largest and final model in the LFM2.5 family. The card says it always thinks before it answers and that it is post-trained for agentic workloads: reasoning, calling tools, and running on your own hardware.
Key specs
| Total / active parameters | 24.0B / 2.45B |
| Layers | 40 (30 double-gated short convolution blocks + 10 GQA blocks) |
| Experts | 64 per MoE block, top-4 routing |
| Context length | 131,072 tokens |
| Vocabulary | 128,000 |
| Training budget | 36 trillion tokens |
| Languages | English, Arabic, Chinese, French, German, Italian, Japanese, Korean, Portuguese, Spanish, Vietnamese, Thai, Indonesian, Hindi, Russian, Polish |
| License | other, named lfm1.0 (the card points to a LICENSE file in the repo; read it before commercial use) |
Selected benchmark scores from the card. The comparison models are the ones Liquid AI chose, all evaluated with vLLM:
| Benchmark | LFM2.5-24B-A2B | Qwen3.6-35B-A3B | Gemma-4-26B-A4B-it |
|---|---|---|---|
| LiveClaw | 48.09 | 38.19 | 41.25 |
| ToolSandbox | 80.71 | 75.02 | 72.09 |
| BFCLv4 | 65.01 | 65.00 | 57.09 |
| IFEval | 96.75 | 93.06 | 92.00 |
| GPQA Diamond | 74.42 | 83.69 | 74.90 |
| SWE-Bench Verified (OpenCode) | 51.00 | 66.20 | 25.80 |
| WebArena Verified | 26.75 | 37.62 | 25.62 |
The pattern is worth noticing. In this selection it leads on the tool-use and instruction-following rows (BFCLv4 is a near tie at 65.01 vs 65.00), but Qwen3.6-35B-A3B scores higher on GPQA Diamond, SWE-Bench Verified and WebArena Verified.
On speed, the card reports 184 tokens/s decoding on an Apple M5 Max and 114 tokens/s on an AMD Ryzen AI Max+ 395. Those numbers use llama.cpp with Q4_K_M quantization and a 4K-token input. It also reports over 21K output tokens/s on a single NVIDIA B300 with SGLang at high concurrency, using BF16 weights. Treat these as the vendor’s measurements on specific hardware.
Install
The card says the Transformers example works with transformers>=5.0.0:
pip install -U "transformers>=5.0.0" accelerate torchThe card also lists vLLM, SGLang, llama.cpp, MLX and LM Studio as supported inference options, with links to Liquid AI’s docs for each.
Run it
This is the card’s quick start, using the generation settings it lists (temperature 0.1, top_k 50, repetition_penalty 1.05):
from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
model_id = "LiquidAI/LFM2.5-24B-A2B"model = AutoModelForCausalLM.from_pretrained( model_id, device_map="auto", dtype="bfloat16",# attn_implementation="flash_attention_2" <- uncomment on compatible GPU)tokenizer = AutoTokenizer.from_pretrained(model_id)streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
prompt = "What is C. elegans?"
input_ids = tokenizer.apply_chat_template( [{"role": "user", "content": prompt}], add_generation_prompt=True, return_tensors="pt", tokenize=True,)["input_ids"].to(model.device)
output = model.generate( input_ids, do_sample=True, temperature=0.1, top_k=50, repetition_penalty=1.05, max_new_tokens=4096, streamer=streamer,)Because the model always reasons first, the chat template adds a <think> tag when the assistant turn starts. Expect thinking text before the answer, and leave room for it in max_new_tokens.
Tool calling
The card describes four steps:
- Provide the tools as a JSON list in the system prompt, or pass
tools=...totokenizer.apply_chat_template(). - The model writes its call. By default these are Pythonic function calls: a Python list between
<|tool_call_start|>and<|tool_call_end|>. You can ask for JSON calls in the system prompt instead. - You run the function and return the result with the
toolrole. - The model reads the result and gives a plain-text answer.
The card’s own example, for a recruiting lookup, looks like this in the raw chat format:
<|startoftext|><|im_start|>systemList of tools: [{"name": "get_candidate_status", "description": "Retrieves the current status of a candidate in the recruitment process", "parameters": {"type": "object", "properties": {"candidate_id": {"type": "string", "description": "Unique identifier for the candidate"}}, "required": ["candidate_id"]}}]<|im_end|><|im_start|>userWhat is the current status of candidate ID 12345?<|im_end|><|im_start|>assistant<|tool_call_start|>[get_candidate_status(candidate_id="12345")]<|tool_call_end|>Checking the current status of candidate ID 12345.<|im_end|><|im_start|>tool[{"candidate_id": "12345", "status": "Interview Scheduled", "position": "Clinical Research Associate", "date": "2023-11-20"}]<|im_end|><|im_start|>assistantThe candidate with ID 12345 is currently in the "Interview Scheduled" stage for the position of Clinical Research Associate, with an interview date set for 2023-11-20.<|im_end|>The card does not include code for parsing the tool-call text or running the loop. For that, it points to Liquid AI’s Tool Use documentation.
Use it behind an agent harness
The card says to serve the model with any OpenAI-compatible backend (vLLM, SGLang, llama.cpp or LM Studio from its table), then point an agent harness at it. For Hermes, the card gives these settings:
hermes config set model.provider customhermes config set model.base_url http://localhost:8080/v1hermes config set model.default LFM2.5-24B-A2Bhermes config set model.context_length 131072hermes config set model.api_mode chat_completionshermes config set agent.tool_use_enforcement trueIt also gives config snippets for OpenClaw and Pi, using the same http://localhost:8080/v1 base URL. The post-training included agentic reinforcement learning inside OpenClaw, Hermes Agent, Pi and OpenCode, so the model has seen those harnesses’ tools and prompts.
Fine-tuning
The card recommends fine-tuning for your use case and lists notebooks and docs for Unsloth (continued pre-training and LoRA SFT) and TRL (LoRA SFT, DPO and GRPO). A separate LFM2.5-24B-A2B-Base checkpoint is the pre-trained model intended for fine-tuning.
Gotchas
- It’s a reasoning-only model. Unlike LFM2-24B-A2B, it always thinks first. If you need short, direct replies at low latency, budget for the extra thinking tokens.
- Not for knowledge-heavy use on its own. The card recommends pairing it with retrieval or web search. Its AA-Omniscience score of -24.90 is in the same range as Qwen3.6-35B-A3B’s -24.35, and Nemotron-3.5-Lightning scores -3.58 on the same row.
- Memory is set by total parameters. Only 2.45B parameters are active per token, which helps speed. The Transformers example still loads the full 24B model.
- Text only. The card describes it as a text-only reasoning model.
- License. It is
other/lfm1.0, not a standard open-source license. Read the LICENSE file in the repo. - Different weights, different numbers. The edge speed figures were measured on a Q4_K_M quantization. The throughput figure used BF16 weights. Your results on the BF16 Transformers path will differ.
When to pick it
Pick it when you want a local or self-hosted model for tool-using agents and instruction following, and when speed per token matters. The card’s strongest results are on those rows. Look elsewhere, or add retrieval, when you need strong results on hard science questions, repository-level coding or browser tasks. On those rows, the card shows a model with 35B total parameters scoring higher. Since the card publishes no code for the full tool-call loop, plan to wire that up yourself or use one of the supported harnesses.
Related
Olala 1.0 Mini: a 1B-Active Hybrid Mamba Model for Chat and Tools
OVHai LLM's Apache-2.0 reasoning model has 6.8B parameters but ~1B active. How to serve it with vLLM, set reasoning effort, call tools and fine-tune it.
OVHaiLLM/Olala-v1.0-mini-7A1B
Kolibri 1: serving Aleph Alpha's 78B MoE with vLLM, reasoning and tool calls
Kolibri 1 is a German–English reasoning model with only 3.5B active parameters. How to serve it, control its thinking effort, and wire up tool calling.
Aleph-Alpha/Kolibri-1
Nanbeige4.3-33B: Apache-2.0 Agent Model for Coding and Office Tasks
Run Nanbeige4.3-33B with Transformers, SGLang or vLLM, and learn its thinking, tool-call and sampling settings from the model card.
Nanbeige/Nanbeige4.3-33B