LFM3-1.7B Guide: Specs, Local Agents and Quantization Choices
LFM3-1.7B is a 1.73B text model for local agents, with a 256K context window, native tool calling and roughly 1GB memory at 4-bit. This guide covers the tri-hybrid architecture, runtime versions, quantization variants, sampling parameters, reasoning and the limits Liquid AI states.
View 2 referencesAllow the functional cookie to save your likes. Privacy details
LFM3-1.7B is Liquid AI's compact text model for running agents on hardware you control. Its selling point is not raw capability but deployment reach: about 1GB at 4-bit, a 256K context window and tool calling that works with common agent harnesses. The official docs are unusually specific about which runtime versions actually work.
What is LFM3-1.7B?
LFM3-1.7B is Liquid AI's text model for local agents and specialised applications, built on the LFM3 tri-hybrid architecture. It has 1.73B parameters, a 256K-token context window and native tool calling. At 4-bit precision it uses about 1GB of memory, so it fits on a phone or laptop.
Liquid positions it as a post-trained model for agent harnesses, not as a general chat assistant. Fine-tuning is a first-class path: the model is meant to be adapted to your domains, formats and tools on a single GPU.
It is released under the LFM Open License v1.0, with base, GGUF, MLX, ONNX, FP8 and NVFP4 checkpoints available.
What architecture does LFM3-1.7B use?
The model has 24 dense layers arranged as 13 gated short convolutions, 5 sliding-window attention layers and 6 global attention layers, with a 128K vocabulary and support for 16 languages. Liquid describes the design as tri-hybrid, mixing convolution with two attention scales rather than using a pure transformer stack.
The language list covers English, Arabic, Chinese, French, German, Italian, Japanese, Korean, Portuguese, Spanish, Vietnamese, Thai, Indonesian, Hindi, Russian and Polish.
That architecture is the reason for the small memory footprint at long context: short convolutions and sliding-window attention reduce the cost that a full attention stack would impose at 256K tokens.
How do you run LFM3-1.7B locally?
On Apple Silicon, use MLX-VLM 0.8.0 with the MLX weights. Elsewhere, llama.cpp 0.8.0 or newer serves the GGUF build with an OpenAI-compatible API on port 9931. For GPUs, vLLM 0.34.0 adds native LFM3 support, and SGLang needs a build containing LFM3 support, verified at commit 47361c57.
A minimal llama.cpp start looks like this:
brew install llama.cpp
llama cli -hf LiquidAI/LFM3-1.7B-GGUF:Q4_K_M
For vLLM, the documented command includes trust_remote_code, a qwen3 reasoning parser and the qwen3_coder tool-call parser. The quickstart context budget is not the model maximum; leave room for reasoning and the final answer.
Which quantization should you pick for LFM3-1.7B?
GGUF offers Q4_K_M and a special Q4_0 build trained with Quantization-Aware Distillation to recover accuracy lost to that format. FP8 and NVFP4 checkpoints exist for SGLang and zml/llmd, while MLX 4-bit targets Apple Silicon and ONNX covers cross-platform runtime. Pick by hardware, not by file size alone.
The QAD Q4_0 checkpoint is the detail most guides miss. The colon tag selects it, and it is specifically trained to recover the accuracy that Q4_0 quantization would otherwise cost.
zml/llmd adds another route, serving FP8 weights on Apple Metal, CUDA, ROCm, oneAPI or TPU through an OpenAI-compatible endpoint on port 8000.
What sampling parameters does LFM3-1.7B recommend?
For chat and tool use, Liquid recommends temperature 0.1, top_p 1.0, top_k 50, min_p 0.0 and repetition_penalty 1.1. For math and science, switch to temperature 1.0, top_p 0.95, top_k 20 and repetition_penalty 1.0. The recommended values are stored in the GGUF, so no flags are needed for general use.
The two profiles are different enough to matter. Applying the chat profile to STEM questions suppresses the diversity that the math profile intentionally allows.
Transformers users should pass the same values explicitly, since pipeline defaults will not match the documented profile.
Does LFM3-1.7B support tool calling and reasoning?
Yes. The model is post-trained for agent harnesses such as Hermes Agent, Pi and OpenClaw, and it supports deferred tools that stay out of the prompt until a search tool returns them. Reasoning is enabled by default; you can set enable_thinking false, but Liquid warns that answers may become inconsistent on reasoning-heavy tasks.
Tool definitions pass through the chat template and generated calls use XML, which your application parses and executes. Keep the tool schemas on subsequent turns and preserve the assistant's reasoning from the current tool-use turn.
Because reasoning is on by default, budget tokens for the trace. A 4096-token server budget in a quickstart is a working ceiling, not a claim about context capacity.
What is LFM3-1.7B-Base for?
LFM3-1.7B-Base is the pre-trained checkpoint behind the chat model, trained on 22T tokens with the last 3.5T containing curated agentic traces and tool calls. It is intended for heavy customisation: continued pre-training, domain or language adaptation, and novel post-training experiments. For chat and agents, use LFM3-1.7B.
The base model extends the context window to 256K tokens during that curated mid-training phase. It includes chat data both with and without thinking traces, formatted with the same template as the chat model.
Do not pick the base checkpoint because it sounds more flexible. If you are not training it, the post-trained model is the correct one.
What should you not use LFM3-1.7B for?
Liquid does not recommend it for agentic coding or complex multi-step reasoning because of its small size, and suggests retrieval or search for knowledge-heavy tasks. The quickstart context budget in server examples is not the model maximum; leave room for reasoning traces and the final answer in your token limit.
This is an honest scope boundary. A 1.73B model that fits in 1GB can be a good local agent, but it is not a substitute for a frontier coding model or an internal knowledge base.
Use retrieval for facts and reserve the model for orchestration, tool calls and structured outputs where its size is an advantage.
Bottom line
LFM3-1.7B makes sense when the constraint is hardware rather than benchmark position. Match the checkpoint to your runtime, use the QAD Q4_0 build if you want that specific quantization, keep the separate chat and STEM sampling profiles, and leave token room for reasoning. The official model page is the source for version requirements.