LFM2.5 2.6B
LFM2.5-2.6B is a text-generation model from LiquidAI with 2.69B parameters, a 131,072-token context window, and a 128,000-token vocabulary. It uses a hybrid architecture with 30 layers, including 22 double-gated short convolution blocks and 8 GQA layers, and was trained on 34 trillion tokens. The model is described as general-purpose, text-only, and post-trained for agentic workloads, with multilingual coverage across 16 languages. It is distributed under the lfm1.0 license and supports safetensors and text-generation tags.
What do you want to do?
Choose a task. Get the software, files, settings, and steps to run it.
Open a guide for its software, hardware requirements, and setup steps.
At a glance
- Parameters
- 2.70B
- Architecture
- lfm2
- Context length
- 131,072
- License
- lfm1.0
- Disk space
- 5 GB
- Software
- Transformers
Will it run on your machine?
Save your machine to see a personalized rating and its reasoning.
Add my hardwareBest for
- Local text generation with a compact model footprint
- Tool-use and multi-step agentic task experimentation
- Instruction-following and conversational workflows
- Multilingual text generation across the listed languages
- Fine-tuning or inference with compatible local runtimes
Tradeoffs
- Source provides limited detail beyond the model card summary.
- No independent performance or compatibility validation is included.
- Usefulness depends on local setup and supported runtimes.
- Agentic behavior may require careful prompting and oversight.
- Not positioned as a replacement for larger or more specialized models.
Ways to run it
Transformers · See official guide
Repository-specific command in publisher documentation; confirm dependencies and hardware in the source.
from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
model_id = "LiquidAI/LFM2.5-2.6B"
model = AutoModelForCausalLM.from_pretrained(
model_id,
device_map="auto",
dtype="bfloat16",
# attn_implementation="flash_attention_2" <- uncomment on compatible GPU
)
tokenizer = AutoTokenizer.from_pretrained(model_id)
streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
prompt = "What is C. elegans?"
input_ids = tokenizer.apply_chat_template(
[{"role": "user", "content": prompt}],
add_generation_prompt=True,
return_tensors="pt",
tokenize=True,
)["input_ids"].to(model.device)
output = model.generate(
input_ids,
do_sample=True,
temperature=0.1,
top_k=50,
repetition_penalty=1.1,
max_new_tokens=512,
streamer=streamer,
)Explore its uses
Keep exploring
Bonsai 2 · 27B
A compressed 27B-class reasoning model with publisher-provided GGUF packs and a dedicated llama.cpp fork for CUDA, Metal, and CPU.
DeepSeek V4.1 Flash
A multimodal reasoning model with a compressed key-value cache, published as open weights.
Qwen3.8
Explore 4 versions of Qwen3.8. Compare model sizes, packages, hardware requirements, and available setups.