---
title: LFM2.5-8B-A1B-MLX-4bit
canonical_url: "https://www.modelscope.cn/models/mlx-community/LFM2.5-8B-A1B-MLX-4bit"
md_url: "https://www.modelscope.cn/models/mlx-community/LFM2.5-8B-A1B-MLX-4bit.md"
repository: mlx-community/LFM2.5-8B-A1B-MLX-4bit
last_updated: 2026-08-13
license: other
pipeline_tag: text-generation
tasks:
  - text-generation
model_type:
  - lfm2_moe
architectures:
  - Lfm2MoeForCausalLM
base_model:
  - LiquidAI/LFM2.5-8B-A1B
base_model_relation: quantized
parameters: 1.3B
tensor_type:
  - BF16
  - F32
  - U32
library_name:
  - mlx
  - safetensors
  - pytorch
frameworks:
  - pytorch
language:
  - en
  - ar
  - zh
  - fr
  - de
  - ja
  - ko
  - pt
  - es
downloads: 91
stars: 0
tags:
  - mlx
  - lfm2
  - moe
---

# LFM2.5-8B-A1B-MLX-4bit

> LFM2.5-8B-A1B-MLX-4bit - mlx-community 在 ModelScope 开源的模型。mlx-community/LFM2.5-8B-A1B-MLX-4bit

mlx-community/LFM2.5-8B-A1B-MLX-4bit 是 ModelScope 魔搭社区上的 1.3B 参数text-generation模型，采用 other 许可，基于 LiquidAI/LFM2.5-8B-A1B 构建。

- **Repository**: mlx-community/LFM2.5-8B-A1B-MLX-4bit
- **License**: other
- **Tasks**: text-generation
- **Parameters**: 1.3B
- **Base model**: LiquidAI/LFM2.5-8B-A1B
- **Tags**: mlx, lfm2, moe
- **Downloads**: 91
- **Stars**: 0
- **Last updated**: 2026-08-13

Source: https://www.modelscope.cn/models/mlx-community/LFM2.5-8B-A1B-MLX-4bit

---

# mlx-community/LFM2.5-8B-A1B-MLX-4bit

This model [mlx-community/LFM2.5-8B-A1B-MLX-4bit](https://huggingface.co/mlx-community/LFM2.5-8B-A1B-MLX-4bit)
was converted to MLX format from [LiquidAI/LFM2.5-8B-A1B](https://huggingface.co/LiquidAI/LFM2.5-8B-A1B)
using mlx-lm version **0.31.1**.

`lfm2_moe` (Lfm2MoeForCausalLM): hybrid 18× double-gated short-conv + 6× GQA
attention, 32-expert top-4 MoE — 8.3B total / 1.5B active, 128k context.

## Use with mlx

```bash
pip install mlx-lm
```

```python
from mlx_lm import load, generate

model, tokenizer = load("mlx-community/LFM2.5-8B-A1B-MLX-4bit")

prompt = "hello"
if tokenizer.chat_template is not None:
    messages = [{"role": "user", "content": prompt}]
    prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True)

response = generate(model, tokenizer, prompt=prompt, verbose=True)
```

## License

Derivative of `LiquidAI/LFM2.5-8B-A1B` under the **LFM Open License v1.0 (lfm1.0)**;
original model © Liquid AI. lfm1.0 commercial-use terms apply.
