Recommended starter models
- Default: LFM2.5-1.2B-Instruct
- Best quality: LFM2.5-8B-A1B or LFM2-24B-A2B
- Reasoning: LFM2.5-1.2B-Thinking
- Tightest footprint: LFM2.5-350M
- Vision and audio: LFM2.5-VL-1.6B or LFM2.5-Audio-1.5B
Integration
LFMs serve through OpenAI-compatible endpoints on vLLM and SGLang, load in Transformers, and run locally through llama.cpp, Ollama, MLX, and LM Studio. Read these three pages before judging quality:- Chat template: LFMs use a ChatML-style format. Always use
apply_chat_templateor the server’s chat endpoint instead of hand-writing prompts. - Text generation and prompting: start from LFM sampling defaults instead of carrying over another model’s generation parameters.
- Tool use: LFMs emit a Pythonic tool-call format. If your harness assumes OpenAI-style JSON tool calls, read the migration guide first.
What to evaluate
- Task quality vs. your current model. Compare against the model you would actually deploy, including its cost and latency class.
- Latency and throughput under realistic workloads. Measure your prompt lengths, output lengths, and concurrency.
- Cost-performance. Compare tokens per second per dollar at your traffic profile.
- Structured output and tool calling. Evaluate with the native format and constrained decoding where possible.
Evaluation checklist
- Production-like prompts and inputs selected
- Current production model or planned baseline selected
- Sampling parameters reset for LFM defaults
- Chat template generated by the tokenizer or serving runtime
- Tool parser updated if tool calling is in scope
- Latency measured at production p50 and p95 prompt lengths
- Held-out examples frozen before any fine-tuning