LFM2-8B-A1B
Liquid AI (United States) · Language (text)
Which way is for me?
🌐 Online, right now
- Or try the free demo: LiquidAI/LFM2-MoE-WebGPU
💻 On my own computer
- Download and install LM Studio (free): lmstudio.ai
- In LM Studio open Search (the magnifier) and type exactly:
LiquidAI/LFM2-8B-A1B-GGUF - From the list of files pick the version the check above suggested; if unsure, take Q4_K_M (compressed, slightly lower quality, less memory).
- Press Download, then Load, and start talking in Chat.
Or, if you use Ollama, this one command is enough:
ollama run hf.co/LiquidAI/LFM2-8B-A1B-GGUF🧑💻 For developers
vLLM
vllm serve LiquidAI/LFM2-8B-A1BTransformers (Python)
from transformers import pipeline
pipe = pipeline("text-generation", model="LiquidAI/LFM2-8B-A1B")llama.cpp
llama-server -hf LiquidAI/LFM2-8B-A1B-GGUFWords used here
- GGUF
- The file format LM Studio, Ollama and llama.cpp use to run a model.
- Quantization (Q4, Q8)
- Shrinking a model by storing numbers less precisely: Q4 smallest and slightly weaker, Q8 almost full, FP16 full.
- VRAM
- The graphics card's memory (or shared memory on a Mac); the model has to fit in it.
- Context
- The most text the model can see at once in a conversation (questions, answers and files).
- Tokens per second
- How fast the answer is written; 20 is about reading speed, 5 is slow.
From the Hugging Face model card
Due to their small size, we recommend fine-tuning LFM2 models on narrow use cases to maximize performance. They are particularly suited for agentic tasks, data extraction, RAG, creative writing, and multi-turn conversations. However, we do not recommend using them for tasks that are knowledge-intensive or require programming skills.
Benchmarks (from the model card)
| Model | MMLU | MMLU-Pro | GPQA | IFEval | IFBench | Multi-IF |
|---|---|---|---|---|---|---|
| LFM2-8B-A1B | 64.84 | 37.42 | 29.29 | 77.58 | 25.85 | 58.19 |
| LFM2-2.6B | 64.42 | 25.96 | 26.57 | 79.56 | 22.19 | 60.26 |
| Llama-3.2-3B-Instruct | 60.35 | 22.25 | 30.6 | 71.43 | 20.78 | 50.91 |
| SmolLM3-3B | 59.84 | 23.90 | 26.31 | 72.44 | 17.93 | 58.86 |
| gemma-3-4b-it | 58.35 | 34.76 | 29.51 | 76.85 | 23.53 | 66.61 |
| Qwen3-4B-Instruct-2507 | 72.25 | 52.31 | 34.85 | 85.62 | 30.28 | 75.54 |
| granite-4.0-h-tiny | 66.79 | 32.03 | 26.46 | 81.06 | 18.37 | 52.99 |
| Model | GSM8K | GSMPlus | MATH 500 | MATH Lvl 5 | MGSM | MMMLU |
Source: Hugging Face · LiquidAI/LFM2-8B-A1B · License: lfm1.0
Hardware and running it
Local Weights are published and it runs on your own hardware.
- Minimum Q4
- 5.6 GB
- Recommended Q8
- 10 GB
- Full quality FP16
- 20 GB
On common hardware
| RTX 4060 · 8 GB | Usable | Q4 · ≈ 99–160 tokens/s |
|---|---|---|
| RTX 4090 · 24 GB | Great | FP16 · ≈ 100–170 tokens/s |
| RTX 5090 · 32 GB | Great | FP16 · ≈ 180–300 tokens/s |
| Mac M4 Max · 128 GB | Great | FP16 · ≈ 55–92 tokens/s |
| H100 · 80 GB | Great | FP16 · ≈ 340–570 tokens/s |
| 8× H100 · 640 GB | Great | FP16 · ≈ 2,720–4,540 tokens/s |
Speeds are estimates. estimated speed for one user, from memory bandwidth
Links come from the vendor's official site and the model card the vendor published · Updated: