Skip to main content
← Back to Text Models LFM2.5-1.2B-Instruct is Liquid AI’s flagship instruction-tuned model, delivering exceptional performance for chat, instruction-following, and tool-calling tasks. Built on the LFM2.5 architecture with extended pre-training and reinforcement learning.

Specifications

PropertyValue
Parameters1.2B
Context Length32K tokens
ArchitectureLFM2.5 (Dense)

32K Context

Extended context window for long documents

Tool Calling

Native function calling support

Fine-tunable

TRL compatible (SFT, DPO, GRPO)

Quick Start

Install:
pip install transformers torch
Download & Run:
from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("LiquidAI/LFM2.5-1.2B-Instruct", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("LiquidAI/LFM2.5-1.2B-Instruct")

input_ids = tokenizer.apply_chat_template(
    [{"role": "user", "content": "What is machine learning?"}],
    add_generation_prompt=True, return_tensors="pt"
).to(model.device)

output = model.generate(input_ids, max_new_tokens=256)
print(tokenizer.decode(output[0], skip_special_tokens=True))