Menu

LFM2.5 24B A2B Local Deployment: How to Run Liquid AI's 24B MoE Reasoning Model On Your Own Hardware

LFM2.5-24B-A2B can run locally on a single GPU or a high-spec laptop without a data center. The model uses a mixture-of-experts architecture that activates only 2.45 billion of its 24 billion parameters per token, which means inference stays fast while the full weight of the model sits in memory. Released on October 13, 2026, it ships in five formats — native safetensors, FP8, GGUF, ONNX, and MLX 4-bit — and works across Transformers, vLLM, SGLang, llama.cpp, and Ollama out of the box. A Q4KM quantized GGUF file occupies roughly 14.5 GB, making it practical for a MacBook with sufficient unified memory or a workstation with a single consumer GPU.

The model is purpose-built for agentic workloads. It always reasons before answering, supports native tool calling with Pythonic function-call syntax, and scores 48.09 on LiveClaw, a benchmark designed to measure how well models use tools in agent harnesses. Liquid explicitly recommends pairing it with retrieval or web search for knowledge-heavy tasks — the model's strength is reasoning and orchestration, not memorized facts.

What Makes the MoE Architecture Practical for Local Hardware

LFM2.5-24B-A2B stacks 40 layers total: 30 double-gated short convolution blocks and 10 grouped-query attention (GQA) layers. Each MoE block contains 64 experts, and a top-4 router selects which four experts process each token. That keeps per-token compute at roughly 2.45B active parameters while the full 24B parameter footprint determines what the model knows.

The architectural signature here is the short convolution backbone inherited from Liquid's LFM2 design lineage. Unlike pure transformer models where attention scales quadratically with sequence length, these convolution blocks process tokens with fixed computational cost regardless of context position. The 10 GQA layers are inserted at intervals to handle long-range dependencies that convolutions alone would miss. The result, according to Liquid's published benchmarks, is up to 1.7x faster inference than comparable MoE models when running on-device.

Throughput numbers tell part of the story. Liquid reports 184 tokens per second on an Apple M5 Max and up to 21,000 output tokens per second on a single NVIDIA B300 GPU. The B300 figure is a data-center measurement, not a local one, but the M5 Max number reflects what developers can expect from a high-end laptop in 2026. For local deployment, the realistic range spans from GGUF on CPU-only machines through MLX on Apple Silicon to FP8 or bfloat16 weights on GPU workstations.

The context window has been expanded to 131,072 tokens, up from 32,768 in the predecessor LFM2-24B-A2B. This came from a dedicated long-context training phase that used 300 billion tokens at the full 131K length following 2 trillion tokens of mid-training at 32K. The vocabulary also doubled from 65K to 128K tokens through what Liquid describes as in-place tokenizer expansion, improving tokenization efficiency for non-Latin scripts. The model supports 16 languages, including Arabic, Chinese, Japanese, Korean, Hindi, and Russian.

Hardware Requirements: Memory Matters More Than Compute

The 2.45B active parameter figure can be misleading for hardware planning. Active parameters determine tokens per second, not what must fit in RAM or VRAM. All 24 billion weights need to reside in memory, and the required capacity depends on the quantization format selected.

| Format | Approximate Size | Typical Hardware | |---|---|---| | bfloat16 (native) | ~48 GB | NVIDIA A6000, A100, or multi-GPU setup | | FP8 | ~24 GB | RTX 4090 (24 GB), RTX 6000 Ada | | GGUF Q4KM | ~14.5 GB | MacBook with 32 GB unified memory, 16 GB GPU with partial offload | | MLX 4-bit | ~14–15 GB | Apple M4 Pro/Max or M5 with 32 GB+ unified memory | | GGUF Q2_K | ~9–10 GB | 12 GB GPU or 16 GB system RAM with CPU-only inference |

On Apple Silicon, the unified memory architecture means the model loads into shared RAM, and Metal acceleration through MLX handles the computation. A MacBook with 32 GB of unified memory can run the MLX 4-bit variant comfortably while leaving headroom for the operating system and other applications. With 16 GB, the Q4KM GGUF fits but leaves little margin;quantization to Q2_K or offloading some layers to CPU becomes necessary.

For x86 Linux or Windows workstations, a single RTX 4090 with 24 GB can run the FP8 weights directly. The bfloat16 weights require either an A6000 (48 GB), an A100, or two consumer GPUs with tensor parallelism enabled through vLLM. CPU-only inference via llama.cpp works with any machine that has sufficient system RAM — 32 GB for Q4KM, 16–24 GB for Q2_K — but expect single-digit tokens per second on commodity desktop processors.

One practical note: LFM2.5-24B-A2B is a text-only model. It has no vision tower and no multimodal projector. Users coming from vision-capable models will find no mmproj file because none exists. For image understanding, Liquid's LFM2.5-VL line stops at the 3B scale, and the 24B A2B is deliberately constrained to text to keep the architecture lean for agent workflows.

Four Ways to Get It Running Locally

Liquid publishes deployment recipes for each supported backend. The generation parameters are consistent across all methods: temperature 0.1, topk 50, and repetitionpenalty 1.05. These are not arbitrary defaults — they are baked into the model's expected behavior, and deviating too far produces degraded output, particularly during the think reasoning block that precedes every response.

Transformers (Hugging Face). This is the path of least resistance for Python users. The minimum version requirement is transformers>=5.0.0. The model loads with device_map="auto" and dtype="bfloat16", which offloads layers automatically across available GPUs and falls back to CPU for any remaining tensors. A TextStreamer callback provides the streaming experience users expect from a reasoning model — the think block arrives first, followed by the final answer. Full-precision loading on a single consumer GPU is impractical without quantization, so most users pair Transformers with bitsandbytes 4-bit or 8-bit loading, or use the FP8 weights directly.

llama.cpp and Ollama. The GGUF quantized files on Hugging Face have accumulated over 17,000 downloads within days of release. With llama.cpp, a single command pulls and runs the model:

llama-cli -hf LiquidAI/LFM2.5-24B-A2B-GGUF --conversation --temp 0.1 --top-k 50 --repeat-penalty 1.05

For Ollama, a custom Modelfile points to the GGUF file and sets the conversation template. The chat template includes the think block tag, so Ollama surfaces the reasoning trace to the user by default. This matters for debugging agent behavior — the reasoning trace shows what the model considered before deciding which tool to call.

MLX (Apple Silicon). The MLX 4-bit variant targets M-series Macs directly. Installation requires pip install mlx mlx-lm, after which the model loads through MLX's optimized Metal kernels. The 4-bit quantization preserves enough fidelity for reasoning and tool-use tasks while fitting into the unified memory of machines with 32 GB or more. Performance on an M4 Max or M5 Max approaches interactive speeds, though it does not match the 184 tok/s figure Liquid quotes for the M5 Max, which likely reflects a more aggressive quantization or batch configuration.

vLLM and SGLang. For production serving on GPU servers, vLLM provides continuous batching, PagedAttention for memory efficiency, and tensor parallelism across multiple GPUs. The model loads with vllm==0.14 or later. SGLang offers a comparable serving stack with additional support for structured outputs, which is useful when integrating LFM2.5-24B-A2B into agent pipelines that require consistent JSON responses from tool calls.

Tool Calling and Agent Integration

Native tool calling sets LFM2.5-24B-A2B apart from general-purpose reasoning models. The model emits Pythonic function-call syntax by default, and Liquid provides integration recipes for agent harnesses including OpenClaw, Hermes, and Pi. The LiveClaw benchmark score of 48.09 places it ahead of models with significantly more active parameters — Qwen3.6-35B-A3B, with approximately 50% more total and active parameters and 3B active, scores 38.19 on the same metric.

For local agent deployments, the typical pattern involves wrapping the model in a harness that exposes a set of tools — web search, file system operations, API calls, database queries — and lets the model decide which tool to invoke and with what arguments. The reasoning trace inside the think block reveals this decision process, which makes debugging failed tool calls far easier than with black-box function-calling APIs.

Liquid's documentation advises against using the model as a standalone knowledge base. Its training data covers general knowledge, but tool calling and reasoning are the design priorities. Pairing it with a local retrieval pipeline — something as simple as a Chroma or FAISS index over project documentation — turns it into a capable on-device research assistant that reasons over provided context rather than relying on memorized facts.

FAQ

Does LFM2.5-24B-A2B support vision or image inputs?

No. It is a text-only model. There is no vision encoder, no multimodal projector, and no mmproj file. For vision tasks, consider Liquid's LFM2.5-VL models, which currently scale up to 3B parameters.

Can I run it on a machine with 16 GB of RAM?

Yes, with constraints. The Q4KM GGUF file is approximately 14.5 GB, which fits into 16 GB but leaves almost no headroom for the operating system. The Q2_K quant at around 9–10 GB is more practical. Expect CPU-only inference at single-digit tokens per second on a typical desktop processor. A machine with 32 GB of unified memory or 24 GB of VRAM provides a far better experience.

Why does the model always output a think block before answering?

LFM2.5-24B-A2B is a pure reasoning model. The chain-of-thought block is not an optional feature — it is baked into the chat template and generation pipeline. Removing or suppressing it would require modifying the model's configuration at the tokenizer and generation level, and doing so is not a supported path. The reasoning trace can be useful for debugging, especially in agent workflows where understanding why the model chose a particular tool matters.

What license applies, and are there commercial restrictions?

The model is available under the Apache 2.0 license. According to Liquid's published terms, organizations with more than 700 million monthly active users must obtain a separate commercial license. Most individual developers and small-to-medium businesses fall well under this threshold and can use the model without additional licensing steps. Always verify the latest terms on the model's Hugging Face page or Liquid's official documentation, as license details may be updated.