--- library_name: transformers license: other license_name: lfm1.0 license_link: LICENSE pipeline_tag: text-generation tags: - liquid - lfm3 - edge - conversational - custom_code language: - en - ar - zh - fr - de - it - ja - ko - pt - es - vi - th - id - hi - ru - pl base_model: LiquidAI/LFM3-1.7B-Base ---
# LFM3-1.7B LFM3-1.7B is a **text model for local agents and specialized applications**, based on our new tri-hybrid architecture. - **Agentic training:** post-trained for agentic harnesses such as Hermes Agent, Pi, and OpenClaw, with a 256K-token context window. - **Designed for the edge:** at 4-bit precision, it takes about 1 GB of memory, so it fits on any phone or laptop. - **Made to be specialized:** adapt the model to your domains, formats, and tools via quick single-GPU fine-tuning. Find more information about the LFM3 family in [our release blog post](https://www.liquid.ai/blog/lfm3). ## Model details| Property | Specification |
|---|---|
| Checkpoint | Post-trained, text-only language model |
| Parameters | 1.73B |
| Architecture | 24 layers: 13 gated short convolutions, 5 sliding-window attention, 6 global attention |
| Context length | 256K tokens (input + output) |
| Vocabulary | 128,000 tokens |
| Languages | English, Arabic, Chinese, French, German, Italian, Japanese, Korean, Portuguese, Spanish, Vietnamese, Thai, Indonesian, Hindi, Russian, Polish |
| License | LFM Open License v1.0 |
| Checkpoint | Framework | Description |
|---|---|---|
| BF16 | vLLM, SGLang, Transformers | BF16 weights for GPU inference. |
| FP8 | SGLang | FP8 quantization for GPU inference. |
| NVFP4 | SGLang | 4-bit floating-point quantization for GPU inference. |
| GGUF | llama.cpp, Ollama, LM Studio | Local inference on CPUs and GPUs. |
| MLX | MLX | 4-bit quantization for Apple Silicon. |
| ONNX | ONNX Runtime | Cross-platform inference with ONNX Runtime. |
| Benchmark | LFM3 1.7B |
LFM2.5 2.6B |
MiniCPM5 2B |
Gemma 4 E4B |
Qwen3.5 4B |
Qwen3.5 9B |
|---|---|---|---|---|---|---|
| Agents | ||||||
| LiveClaw | 45.60 | 14.70 | 30.37 | 20.36 | 19.94 | 35.77 |
| Claw-Eval General (EN), average | 68.64 | 62.63 | 60.74 | 56.14 | 61.96 | 66.53 |
| Claw-Eval General (EN), pass^3 | 51.40 | 37.52 | 34.58 | 22.43 | 42.99 | 51.87 |
| BrowseComp-Plus (OpenClaw subset) | 37.00 | 26.33 | 16.83 | 21.00 | 24.67 | 38.00 |
| WebArena-Verified | 38.42 | 3.02 | 9.11 | 17.06 | 21.92 | 28.94 |
| EnterpriseOps-Gym | 28.20 | 7.94 | 13.41 | 9.86 | 25.96 | 28.97 |
| AutomationBench (public) | 41.29 | 0.94 | 4.71 | 1.92 | 8.67 | 15.10 |
| Tool use | ||||||
| BFCL V4 | 71.39 | 55.89 | 62.65 | 48.25 | 55.12 | 62.83 |
| ToolSandbox | 80.36 | 78.04 | 68.16 | 69.27 | 75.40 | 76.41 |
| MCP-Atlas | 32.57 | 16.45 | 26.38 | 6.19 | 41.37 | 42.67 |
| τ³-bench (4 domains), average | 68.01 | 56.77 | 69.44 | 33.53 | 65.98 | 67.11 |
| Agentic coding | ||||||
| SWE-bench Verified (OpenCode) | 43.40 | 18.00 | 34.80 | 0.50 | 41.20 | 51.20 |
| SWE-bench Multilingual (OpenCode) | 23.00 | 8.00 | 15.67 | 0.67 | 23.33 | 35.00 |
| Terminal-Bench 2.1 (OpenCode) | 12.92 | 0.00 | 5.62 | 0.00 | 13.48 | 17.98 |
| Coding | ||||||
| LiveCodeBench v6 | 73.46 | 60.57 | 70.52 | 71.00 | 61.99 | 69.86 |
| LiveCodeBench Pro 25Q2 | 31.74 | 19.16 | 29.34 | 29.94 | 24.25 | 34.43 |
| SciCode | 28.47 | 16.32 | 27.78 | 25.00 | 23.02 | 31.60 |
| Instruction following | ||||||
| IFEval | 96.66 | 95.39 | 87.83 | 90.02 | 92.52 | 92.08 |
| IFBench | 73.03 | 60.48 | 62.08 | 44.56 | 38.16 | 48.84 |
| IFStruct | 93.72 | 82.18 | 72.65 | 78.45 | 87.05 | 89.20 |
| Multi-IF | 89.10 | 84.80 | 73.19 | 81.03 | 80.32 | 84.44 |
| Knowledge | ||||||
| GPQA Diamond | 63.37 | 57.78 | 65.15 | 57.88 | 75.76 | 80.40 |
| Humanity's Last Exam (no tools) | 7.17 | 5.88 | 8.20 | 4.77 | 12.84 | 16.41 |
| Humanity's Last Exam (with tools) | 13.90 | 9.60 | 11.50 | 6.00 | 11.60 | 17.50 |
| AA-Omniscience (public) | 0.50 | -33.17 | -5.00 | -15.33 | -57.17 | -28.00 |
| AA-Omniscience accuracy (public) | 7.07 | 8.75 | 9.13 | 9.83 | 15.67 | 13.17 |
| AA-Omniscience non-hallucination (public) | 92.93 | 53.69 | 84.44 | 72.09 | 13.64 | 52.59 |
| Long context | ||||||
| AA-LCR | 52.83 | 6.00 | 49.34 | 39.33 | 52.67 | 62.00 |
| RULER 128K | 65.56 | 1.15 | 37.96 | 18.82 | 84.63 | 87.11 |
| Average | 49.37 | 31.55 | 39.19 | 31.74 | 39.27 | 47.24 |
All models were served with vLLM in BF16 at their full context length: 262,144 tokens for LFM3-1.7B, Qwen3.5-4B, and Qwen3.5-9B, and 131,072 tokens for LFM2.5-2.6B, MiniCPM5-2B, and Gemma 4 E4B. Unless listed below, every eval uses temperature 0.6 and top_p 0.95, with no output limit other than the context length. The Average row is the unweighted mean of every score in the table.
BFCL V4: greedy decoding, up to 32,768 output tokens.
ToolSandbox: greedy decoding, up to 1,024 tokens per turn.
LiveClaw: OpenClaw agent, up to 8,192 tokens per turn.
Claw-Eval: greedy decoding, 3 trials per task.
BrowseComp-Plus: OpenClaw agent, greedy decoding, up to 8,192 tokens per turn.
WebArena-Verified: up to 40 steps.
MCP-Atlas: up to 256 turns.
EnterpriseOps-Gym and AutomationBench: up to 50 turns.
SWE-bench: OpenCode agent, up to 250 turns.
Terminal-Bench 2.1: OpenCode agent, up to 100 turns.
All models run as Q4_0 GGUF files in llama.cpp with 32,768 tokens of context, batch size 1, 100 output tokens, and GPU offload. Prefill is the prompt processing speed and decode is the generation speed, both in tokens per second. LFM3-1.7B uses a llama.cpp build with LFM3 support, and the other models use llama.cpp release b11744.
AMD Ryzen AI Max+ 395: Radeon 8060S integrated GPU, Windows, Vulkan backend.
Apple M5 Max: macOS, Metal backend.
iPhone 17 Pro: Apple A19 Pro, iOS app built on llama.cpp.
Memory: peak usage in GB (109 bytes). On AMD, it adds the host and GPU peaks from the same run, which can slightly overstate usage if the two peaks do not coincide. On Apple devices, the process footprint already includes Metal allocations.
## Training
**Pre-training:** two stages build LFM3-1.7B-Base on 22T tokens in total.
- **Main pre-training:** compared with LFM2, the mix adds more scientific papers, repository-level code, math, and a wider range of knowledge sources.
- **Mid-training:** the last 3.5T tokens use curated, higher-quality data with a larger share of agentic traces and tool calls. This stage also extends the context window to 256K tokens.
**Post-training:** four stages develop conversation, reasoning, and tool-use capabilities.
- **Supervised fine-tuning (SFT):** 1.75T tokens across various tasks, including chat, reasoning, tool calling, and agentic traces.
- **Mixed reinforcement learning:** many domains trained at once, from math and code to SQL and structured outputs. A length penalty in the reward keeps answers concise.
- **Multi-domain on-policy distillation (MOPD):** six specialist RL teachers (code, math, tool use, long context, agentic work, and enterprise workflows) are distilled back into a single model.
- **Agentic RL:** tasks from web browsing to office work are run inside real agent harnesses, preparing the model for deployment.
## Citation