Skip to main content
← Back to Text Models LFM2-2.6B-Exp is an experimental checkpoint of LFM2-2.6B with RL-only post-training, delivering improved performance on math and reasoning benchmarks. Use this model when you need stronger analytical capabilities.

Specifications

PropertyValue
Parameters2.6B
Context Length32K tokens
ArchitectureLFM2 (Dense)

Math & Logic

Strong arithmetic and logical reasoning

On-Device

Runs on phones and laptops

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-2.6B-Exp", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("LiquidAI/LFM2-2.6B-Exp")

input_ids = tokenizer.apply_chat_template(
    [{"role": "user", "content": "What is 15% of 240?"}],
    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))