LFM2.5 is a new family of hybrid models designed for on-device deployment. It builds on the LFM2 architecture with extended pre-training and reinforcement learning.
Find more details in the original model card: https://huggingface.co/LiquidAI/LFM2.5-2.6B
Example usage with llama.cpp:
llama-cli -hf LiquidAI/LFM2.5-2.6B-GGUF --conversation \
--temp 0.1 --top-k 50 --repeat-penalty 1.1
The Quantization-Aware Distillation (QAD) checkpoint is available as
LFM2.5-2.6B-QAD-Q4_0.gguf.
This is distinct from the post-training-quantized LFM2.5-2.6B-Q4_0.gguf;
both use the GGUF Q4_0 format.
The original FP32 QAD source checkpoint is available in
qad/, with its model config,
tokenizer, generation defaults, and the same chat template as the released QAD GGUF.
It can be loaded in Transformers by passing subfolder="qad":
from transformers import AutoModelForCausalLM, AutoTokenizer
repo_id = "LiquidAI/LFM2.5-2.6B-GGUF"
tokenizer = AutoTokenizer.from_pretrained(repo_id, subfolder="qad")
model = AutoModelForCausalLM.from_pretrained(
repo_id, subfolder="qad", dtype="auto", device_map="auto"
)
inputs = tokenizer.apply_chat_template(
[{"role": "user", "content": "What is 2 + 2?"}],
tokenize=True, add_generation_prompt=True, return_dict=True, return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(outputs[0, inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
These weights are intended for fine-tuning and experimentation. Published QAD results apply to the Q4_0 GGUF; direct FP32/BF16 inference and other quantization formats may behave differently. See the source checkpoint documentation for validation details and the license.
loculus serve LFM2.5-2.6B-Q4_K_M.gguf --gpuView run on LocalMaxxing
/usr/local/bin/llama-server --host 127.0.0.1 --port 18082 --model "$MODEL" --alias lfm25-2.6b-q4km-localmaxxing --ctx-size 24576 --batch-size 2048 --ubatch-size 512 --parallel 1 --n-gpu-layers all --flash-attn on --cache-type-k f16 --cache-type-v f16 --jinja --metrics --no-webui --no-warmup --poll 100View run on LocalMaxxing
loculus serve LFM2.5-2.6B-Q4_K_M.gguf --gpuView run on LocalMaxxing
loculus serve LFM2.5-2.6B-Q4_K_M.gguf --gpuView run on LocalMaxxing
llama-server -m LFM2.5-2.6B-Q8_0.gguf --reasoning off -c 8192 -ctk f16 -ctv f16 --device SYCL0 -ngl 99 -fa auto --parallel 1 --cache-ram 0 --ctx-checkpoints 0 --fit offView run on LocalMaxxing
llama-server --model LFM2.5-2.6B-DSpark-Speculative --n-gpu-layers 99 --ctx-size 4096 --flash-attn on --threads 18 --threads-batch 18 --numa numactl --split-mode layer --parallel 1 --cache-type-k q4_0 --cache-type-v q4_0View run on LocalMaxxing
Median of 11 community runs on 6 setups, from LocalMaxxing.
Run it yourself: setup guideLiquidAI/LFM2.5-2.6B