How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf LiquidAI/LFM2.5-24B-A2B-GGUF:
# Run inference directly in the terminal:
llama cli -hf LiquidAI/LFM2.5-24B-A2B-GGUF:
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf LiquidAI/LFM2.5-24B-A2B-GGUF:
# Run inference directly in the terminal:
llama cli -hf LiquidAI/LFM2.5-24B-A2B-GGUF:
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-app
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama serve -hf LiquidAI/LFM2.5-24B-A2B-GGUF:
# Run inference directly in the terminal:
./build/bin/llama cli -hf LiquidAI/LFM2.5-24B-A2B-GGUF:
Use Docker
docker model run hf.co/LiquidAI/LFM2.5-24B-A2B-GGUF:
Quick Links
Liquid AI
Try LFM β€’ Docs β€’ Discord

LFM2.5-24B-A2B-GGUF

LFM2 is a new generation of hybrid models developed by Liquid AI, specifically designed for edge AI and on-device deployment. It sets a new standard in terms of quality, speed, and memory efficiency.

Find more details in the original model card: https://huggingface.co/LiquidAI/LFM2.5-24B-A2B

πŸƒ How to run LFM2

Example usage with llama.cpp:

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

The sampling parameters are the ones recommended for the base model (its generation_config.json); each GGUF also carries them as general.sampling.* metadata, so llama.cpp applies them by default.

QAD Q4_0 GGUF

The Q4_0 build in this repository is the Quantization-Aware Distillation (QAD) checkpoint, LFM2.5-24B-A2B-QAD-Q4_0.gguf. It was trained to recover the accuracy lost to Q4_0 quantization.

Example usage with llama.cpp:

llama-cli -hf LiquidAI/LFM2.5-24B-A2B-GGUF \
    --hf-file LFM2.5-24B-A2B-QAD-Q4_0.gguf \
    --temp 0.1 --top-k 50 --repeat-penalty 1.05
Downloads last month
219,554
GGUF
Model size
24B params
Architecture
lfm2moe
Hardware compatibility
Log In to add your hardware

4-bit

5-bit

6-bit

8-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ 1 Ask for provider support

Model tree for LiquidAI/LFM2.5-24B-A2B-GGUF

Quantized
(84)
this model
Finetunes
1 model

Spaces using LiquidAI/LFM2.5-24B-A2B-GGUF 4

Collection including LiquidAI/LFM2.5-24B-A2B-GGUF