Downloads · 30 days
3.3K
22% of all-time downloads
LiquidAI/LFM2.5-8B-A1B-MLX-4bit
LFM2.5-8B-A1B-MLX-4bit is a text generation model from LiquidAI. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as other.
<div align="center" <img src="https://cdn-uploads.huggingface.co/production/uploads/61b8e2ba285851687028d395/2b08LKpev0DNEk6DlnWkY.png" alt="Liquid AI" style="width: 100%; max-width: 100%; height: auto; display: inlin…
Downloads · 30 days
3.3K
22% of all-time downloads
All-time downloads
14.6K
Public
Parameters
8.5B
9.6 GB on disk
Likes
20
Public
Click a slice to open those files.
.safetensors4.8 GB · 100%
How the weights are stored.
U328.5B · 100%
From the Hugging Face model README
This model LiquidAI/LFM2.5-8B-A1B-MLX-4bit was converted to MLX format from LiquidAI/LFM2.5-8B-A1B using mlx-lm version 0.31.3.
Quantized to 4 bits per weight (group size 64, affine mode). MoE routing gates retained at 8 bits.
For base model details, capabilities, and recommended generation settings, see the original model card.
pip install mlx-lm
from mlx_lm import load, generate
from mlx_lm.sample_utils import make_sampler, make_logits_processors
model, tokenizer = load("LiquidAI/LFM2.5-8B-A1B-MLX-4bit")
prompt = "What is C. elegans?"
if tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, add_generation_prompt=True
)
sampler = make_sampler(temp=0.2, top_k=80)
logits_processors = make_logits_processors(repetition_penalty=1.05)
response = generate(
model, tokenizer, prompt=prompt,
sampler=sampler, logits_processors=logits_processors,
verbose=True,
)
LFM2.5 uses a ChatML-like format. See the Chat Template documentation for details. Example:
<|startoftext|><|im_start|>system
You are a helpful assistant trained by Liquid AI.<|im_end|>
<|im_start|>user
What is C. elegans?<|im_end|>
<|im_start|>assistant
Because LFM2.5-8B-A1B is a reasoning model, assistant turns contain an explicit chain of thought before the final answer. tokenizer.apply_chat_template() formats messages automatically.
LFM2.5 supports function calling. Pass tools to tokenizer.apply_chat_template(..., tools=...). See the Tool Use documentation for the full guide.
LFM Open License v1.0 — see the LICENSE file or the original model card for terms.
@article{liquidAI20268BA1B,
author = {Liquid AI},
title = {LFM2.5-8B-A1B: Personal Assistant On Your Laptop},
journal = {Liquid AI Blog},
year = {2026},
note = {www.liquid.ai/blog/lfm2-5-8b-a1b},
}
@article{liquidai2025lfm2,
title = {LFM2 Technical Report},
author = {Liquid AI},
journal = {arXiv preprint arXiv:2511.23404},
year = {2025}
}