Skip to main content
← Back to Text Models LFM3-1.7B is Liquid AI’s text model for local agents and specialized applications, based on the new LFM3 tri-hybrid architecture. It is post-trained for agentic harnesses such as Hermes Agent, Pi, and OpenClaw, with a 256K-token context window. At 4-bit precision, it takes about 1 GB of memory, so it fits on any phone or laptop.

Specifications

Local Agents

Post-trained for agent harnesses like Hermes Agent, Pi, and OpenClaw

256K Context

Long context for tool traces and multi-step workflows

Made to be Specialized

Adapt it to your domains, formats, and tools with single-GPU fine-tuning
LFM3-1.7B is designed for local agents, tool calling, structured outputs, and domain-specific fine-tuning. Use retrieval or search for knowledge-heavy tasks. It is not recommended for agentic coding or complex multi-step reasoning due to its small size.

Quick Start

Install:
Run:
For local agent setup, see the Agent Harnesses guide.

Reasoning

Reasoning is enabled by default. Set enable_thinking=False in apply_chat_template() for direct answers. Reasoning from turns before the latest user message is removed unless preserve_thinking=True. See Chat Template and Tool Use for the message format. For math and science, use temperature=1.0, top_p=0.95, top_k=20, and repetition_penalty=1.0 instead of the general generation parameters. LFM3-1.7B supports deferred tools, so tool definitions stay out of the prompt until a search tool returns them. See Defer Loading and Tool Search for how it works and a complete example.

FP8 and NVFP4 Checkpoints

LFM3-1.7B-FP8 and LFM3-1.7B-NVFP4 are FP8 and 4-bit floating-point versions of LFM3-1.7B for GPU inference with SGLang. To use one, replace the model ID in the SGLang example above.