Downloads · 30 days
76
35% of all-time downloads
MuXodious/LFM2.5-VL-3B-absolute-heresy
LFM2.5-VL-3B-absolute-heresy is a image-text-to-text model from MuXodious. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as other.
This is an LFM2.5-VL-3B fine-tune, produced through P-E-W's Heretic (v1.4.0) abliteration engine with Self-Organizing Maps & Magnitude-Preserving Orthogonal Ablation enabled.
Downloads · 30 days
76
35% of all-time downloads
All-time downloads
219
Public
Parameters
3.1B
6.3 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors6.2 GB · 100%
From the Hugging Face model README
This is an LFM2.5-VL-3B fine-tune, produced through P-E-W's Heretic (v1.4.0) abliteration engine with Self-Organizing Maps & Magnitude-Preserving Orthogonal Ablation enabled.
| Score Metric | Value | Parameter | Value |
|---|---|---|---|
| Refusals | 3/104 | direction_index | 17.46 |
| KL Divergence | 0.0212 | attn.o_proj.max_weights.0 | 0: 1.01 |
| Initial Refusals | 104/104 | attn.o_proj.max_weights.1 | 1: 0.50 |
| attn.o_proj.max_weights.2 | 2: 1.35 | ||
| attn.o_proj.max_weights.3 | 3: 0.63 | ||
| attn.o_proj.max_weights.4 | 4: 1.39 | ||
| attn.o_proj.max_weight_position | 13.51 | ||
| attn.o_proj.min_weights.0 | 0: 0.73 | ||
| attn.o_proj.min_weights.1 | 1: 0.45 | ||
| attn.o_proj.min_weights.2 | 2: 0.15 | ||
| attn.o_proj.min_weights.3 | 3: 0.40 | ||
| attn.o_proj.min_weights.4 | 4: 1.21 | ||
| attn.o_proj.min_weight_distance | 3.20 | ||
| mlp.down_proj.max_weights.0 | 0: 0.40 | ||
| mlp.down_proj.max_weights.1 | 1: 0.73 | ||
| mlp.down_proj.max_weights.2 | 2: 0.44 | ||
| mlp.down_proj.max_weights.3 | 3: 0.88 | ||
| mlp.down_proj.max_weights.4 | 4: 0.81 | ||
| mlp.down_proj.max_weight_position | 16.05 | ||
| mlp.down_proj.min_weights.0 | 0: 0.18 | ||
| mlp.down_proj.min_weights.1 | 1: 0.64 | ||
| mlp.down_proj.min_weights.2 | 2: 0.20 | ||
| mlp.down_proj.min_weights.3 | 3: 0.16 | ||
| mlp.down_proj.min_weights.4 | 4: 0.52 | ||
| mlp.down_proj.min_weight_distance | 6.67 |
The Heresy Index weighs the resulting model's corruption by the process (KL Divergence & PIQA, Manual Response Eval) and its abolition of doctrine (Refusals) for a final verdict in classification.
| Index Entry | Classification | Analysis |
|---|---|---|
| Absolute Heresy | Near zero overt and secondary refusals with minimal to no model damage | |
| Tainted Heresy | Some residual secondary refusals and/or moderate model damage | |
| Impotent Heresy | Lingering overt refusals and high model damage |
Note: This is an arbitrary and subjective classification inspired by Warhammer 40K, indended to serve as a signpost towards the model's performance.
Appendix
<details> <summary>Heretication Rituals</summary>Empty system prompt.
Response prefix:
<think></think>
[Trial 193] Refusals: 0/104, KL divergence: 0.0902
[Trial 364] Refusals: 1/104, KL divergence: 0.0432
[Trial 125] Refusals: 2/104, KL divergence: 0.0251
» [Trial 266] Refusals: 3/104, KL divergence: 0.0212
[Trial 79] Refusals: 6/104, KL divergence: 0.0127
[Trial 386] Refusals: 20/104, KL divergence: 0.0115
[Trial 168] Refusals: 43/104, KL divergence: 0.0094
[Trial 290] Refusals: 84/104, KL divergence: 0.0044
[Trial 72] Refusals: 101/104, KL divergence: 0.0037
[Trial 150] Refusals: 102/104, KL divergence: 0.0029
[Trial 318] Refusals: 104/104, KL divergence: 0.0016
</details>
<details>
<summary>PIQA Benchmarks</summary>
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Benchmark ┃ Metric ┃ T364 ┃ Original model ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ PIQA │ name │ piqa │ piqa │
│ │ sample_len │ 1838 │ 1838 │
│ │ acc,none │ 0.6126 │ 0.6148 │
│ │ acc_stderr,none │ 0.0114 │ 0.0114 │
│ │ acc_norm,none │ 0.6181 │ 0.6197 │
│ │ acc_norm_stderr,none │ 0.0113 │ 0.0113 │
└───────────┴──────────────────────┴────────────┴────────────────┘
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Benchmark ┃ Metric ┃ T125 ┃ Original model ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ PIQA │ name │ piqa │ piqa │
│ │ sample_len │ 1838 │ 1838 │
│ │ acc,none │ 0.6148 │ 0.6148 │
│ │ acc_stderr,none │ 0.0114 │ 0.0114 │
│ │ acc_norm,none │ 0.6153 │ 0.6197 │
│ │ acc_norm_stderr,none │ 0.0114 │ 0.0113 │
└───────────┴──────────────────────┴────────────┴────────────────┘
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Benchmark ┃ Metric ┃ T266 ┃ Original model ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ PIQA │ name │ piqa │ piqa │
│ │ sample_len │ 1838 │ 1838 │
│ │ acc,none │ 0.6202 │ 0.6148 │
│ │ acc_stderr,none │ 0.0113 │ 0.0114 │
│ │ acc_norm,none │ 0.6170 │ 0.6197 │
│ │ acc_norm_stderr,none │ 0.0113 │ 0.0113 │
└───────────┴──────────────────────┴────────────┴────────────────┘
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Benchmark ┃ Metric ┃ T079 ┃ Original model ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ PIQA │ name │ piqa │ piqa │
│ │ sample_len │ 1838 │ 1838 │
│ │ acc,none │ 0.6175 │ 0.6148 │
│ │ acc_stderr,none │ 0.0113 │ 0.0114 │
│ │ acc_norm,none │ 0.6181 │ 0.6197 │
│ │ acc_norm_stderr,none │ 0.0113 │ 0.0113 │
└───────────┴──────────────────────┴────────────┴────────────────┘
</details>
<details>
<summary>PaCMAP Projection</summary>
<img src="https://huggingface.co/MuXodious/LFM2.5-VL-3B-absolute-heresy/resolve/main/LFM2.5-VL-3B.gif" alt="PaCMAP projection"/>
</details>
LFM2.5-VL-3B is a multimodal variant of LFM2.5, a family of hybrid models designed for on-device deployment. It builds on LFM2-VL-3B with further mid- and post-training. LFM2.5-VL-3B can process both text and images, and uses the LFM2.5-2.6B language model as its backbone, combined with a SigLIP2 NaFlex vision encoder.
Find more information about LFM2.5-VL-3B in our release post.

[!NOTE] 💻 Demos: Try LFM2.5-VL-3B's vision understanding capabilities in a Hugging Face space without any setup: Vision-capable chat in your browser: allows you to upload images or use the webcam to capture stills and let the model interact with them.
| Model | Description |
|---|---|
| LFM2.5‑VL‑3B | Original checkpoint in native format. Best for fine-tuning and inference with HF Transformers, vLLM and SGLang |
| LFM2.5‑VL‑3B‑GGUF | Quantized GGUF exports of the original checkpoint. Best for CPU inference with reduced memory usage with llama.cpp |
| LFM2.5‑VL‑3B‑ONNX | Quantized ONNX exports for cross-platform deployment. Enables hardware-accelerated inference across diverse environments (cloud, edge, mobile). See the demo. |
| LFM2.5-VL-3B-MLX | Quantized MLX exports for Apple Silicon. Optimized for fast inference on Mac devices using the mlx-vlm framework. |
temperature=0.2, top_k=50, repetition_penalty=1.0processor_config.json file.We recommend using it for single-turn, high-throughput, low-latency tasks; for example, for near-realtime object detection in automotive applications, batch processing scanned documents with OCR with layout information for turning PDFs into searchable text, or for on-device translation of menus and road signs into your native language.
It is not recommended for long-context, reasoning-intensive tasks, such as visual web design, or answering highly technical questions about blueprints.
LFM2.5 uses a ChatML-like format. See the Chat Template documentation for details. Example:
<|startoftext|><|im_start|>system
You are a helpful assistant trained by Liquid AI.<|im_end|>
<|im_start|>user
What species is in this picture?<image><|im_end|>
<|im_start|>assistant
You can use tokenizer.apply_chat_template() to format your messages automatically.
[!TIP] Note: The
apply_chat_template()method automatically inserts the<image>tag for each image in your message. Do not include<image>in your message content.
LFM2.5-VL is supported by many inference frameworks. See the Inference documentation for the full list.
| Name | Description | Docs | Notebook |
|---|---|---|---|
| Transformers | Simple inference with direct access to model internals. | <a href="https://docs.liquid.ai/lfm/inference/transformers#vision-models">Link</a> | <a href="https://colab.research.google.com/drive/1WVQpf4XrHgHFkP0FnlZfx2nK8PugvQNZ?usp=sharing"><img src="https://cdn-uploads.huggingface.co/production/uploads/61b8e2ba285851687028d395/vlOyMEjwHa_b_LXysEu2E.png" width="110" alt="Colab link"></a> |
| vLLM | High-throughput production deployments with GPU. | <a href="https://docs.liquid.ai/deployment/gpu-inference/vllm#vision-models">Link</a> | <a href="https://colab.research.google.com/drive/1sUfQlqAvuAVB4bZ6akYVQPGmHtTDUNpF?usp=sharing"><img src="https://cdn-uploads.huggingface.co/production/uploads/61b8e2ba285851687028d395/vlOyMEjwHa_b_LXysEu2E.png" width="110" alt="Colab link"></a> |
| SGLang | High-throughput production deployments with GPU. | <a href="https://docs.liquid.ai/deployment/gpu-inference/sglang#vision-models">Link</a> | <a href="https://colab.research.google.com/drive/1qJlAFag223yFOZGzuMIkYUFhybM9ao5g?usp=sharing"><img src="https://cdn-uploads.huggingface.co/production/uploads/61b8e2ba285851687028d395/vlOyMEjwHa_b_LXysEu2E.png" width="110" alt="Colab link"></a> |
| llama.cpp | Cross-platform inference with CPU offloading. | <a href="https://docs.liquid.ai/lfm/inference/llama-cpp#vision-models">Link</a> | <a href="https://colab.research.google.com/drive/1q2PjE6O_AahakRlkTNJGYL32MsdUcj7b?usp=sharing"><img src="https://cdn-uploads.huggingface.co/production/uploads/61b8e2ba285851687028d395/vlOyMEjwHa_b_LXysEu2E.png" width="110" alt="Colab link"></a> |
Quick start with Transformers (compatible with transformers>=5.0.0):
You will need torch, transformers, and torchvision.
import torch
from transformers import AutoModelForImageTextToText, AutoProcessor
model_id = "LiquidAI/LFM2.5-VL-3B"
model = AutoModelForImageTextToText.from_pretrained(model_id, dtype=torch.bfloat16)
processor = AutoProcessor.from_pretrained(model_id)
messages = [
{
"role": "user",
"content": [
{"type": "image", "url": "https://placecats.com/300/200"},
{"type": "text", "text": "Describe this image."},
],
}
]
inputs = processor.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
with torch.inference_mode():
output_ids = model.generate(
**inputs,
do_sample=True,
temperature=0.2,
top_k=50,
repetition_penalty=1.0,
max_new_tokens=256,
)
generated_ids = output_ids[:, inputs["input_ids"].shape[1] :]
print(processor.batch_decode(generated_ids, skip_special_tokens=True)[0])
LFM2.5-VL-3B supports function calling in four steps:
tokenizer.apply_chat_template() with tools=....<|tool_call_start|> and <|tool_call_end|> special tokens), as the assistant answer.tool role.See the Tool Use documentation for the full guide. Example:
<|startoftext|><|im_start|>system
List of tools: [{"name": "get_candidate_status", "description": "Retrieves the current status of a candidate in the recruitment process", "parameters": {"type": "object", "properties": {"candidate_id": {"type": "string", "description": "Unique identifier for the candidate"}}, "required": ["candidate_id"]}}]<|im_end|>
<|im_start|>user
What is the current status of candidate ID 12345?<|im_end|>
<|im_start|>assistant
<|tool_call_start|>[get_candidate_status(candidate_id="12345")]<|tool_call_end|>Checking the current status of candidate ID 12345.<|im_end|>
<|im_start|>tool
[{"candidate_id": "12345", "status": "Interview Scheduled", "position": "Clinical Research Associate", "date": "2023-11-20"}]<|im_end|>
<|im_start|>assistant
The candidate with ID 12345 is currently in the "Interview Scheduled" stage for the position of Clinical Research Associate, with an interview date set for 2023-11-20.<|im_end|>
LFM2.5-VL-3B can do OCR with layout annotation. The layout annotation is a list of regions, each with a label, bounding box, and content. The format is:
image_index=<n> <label> [xmin, ymin, xmax, ymax]
<content>
image_index=<n> <label> [xmin, ymin, xmax, ymax]
<content>
image_index=<n> <label> [xmin, ymin, xmax, ymax]
<content>
...
where:
image_index is the zero-based index of image<label> is one of these layout labels:
[xmin, ymin, xmax, ymax] are normalized integer coordinates in [0, 1000], same as our grounding format.<content> is the region's content:
There will be a blank line between each region.
To prompt the model to generate this structured output, use a system or user prompt that includes this:
Parse this document into its layout regions. The pages are provided as images in reading order. For every region, in reading order across all pages, output a header line immediately followed by the region's content:
image_index=<n> <label> [xmin, ymin, xmax, ymax]
<content>
where:
- image_index is the zero-based index of the page image the region appears on (0 for the first image, 1 for the second, and so on)
- <label> is one of these layout labels: text, title, list, table, table_caption, table_footnote, image, image_block, image_caption, image_footnote, chart, equation, formula_number, code, code_caption, algorithm, aside_text, ref_text, phonetic, page_header, page_footer, page_number, page_footnote
- [xmin, ymin, xmax, ymax] are normalized integer coordinates in [0, 1000]
- <content> is the region's content: plain text for text regions, LaTeX for equations, OTSL for tables, and a short description for images and charts
Separate each region block with one blank line. Return only the parsed regions.
Note that the layout annotation format is still experimental: it may change, may be unreliable, and may not be trivial to parse. We encourage users to try it out and provide feedback!
We recommend fine-tuning LFM2.5-VL models for your specific use case to achieve the best results.
| Notebook | Description | Link |
|---|---|---|
| SFT (Unsloth) | Supervised Fine-Tuning with LoRA using Unsloth. | <a href="https://colab.research.google.com/drive/1FaR2HSe91YDe88TG97-JVxMygl-rL6vB?usp=sharing"><img src="https://cdn-uploads.huggingface.co/production/uploads/61b8e2ba285851687028d395/vlOyMEjwHa_b_LXysEu2E.png" width="110" alt="https://colab.research.google.com/github/Liquid4All/cookbook/blob/main/finetuning/notebooks/sft_for_vision_language_model.ipynb"></a> |
| SFT (TRL) | Supervised Fine-Tuning with LoRA using TRL. | <a href="https://colab.research.google.com/drive/10530_jt_Joa5zH2wgYlyXosypq1R7PIz?usp=sharing"><img src="https://cdn-uploads.huggingface.co/production/uploads/61b8e2ba285851687028d395/vlOyMEjwHa_b_LXysEu2E.png" width="110" alt="https://colab.research.google.com/github/Liquid4All/cookbook/blob/main/finetuning/notebooks/sft_for_vision_language_model_with_trl.ipynb"></a> |
LFM2.5-VL-3B significantly improves over LFM2-VL-3B in screen understanding, grounding, multi-image input, and tool use:
| Benchmark | LFM2.5‑VL‑3B (3.1B) | LFM2‑VL‑3B (3.1B) | Gemma4 E2B (5.1B) | Gemma4 E4B (8B) | InternVL 3.5 4B (4.7B) | Qwen3.5-2B (2.3B) | Qwen3.5-4B (4.7B) |
|---|---|---|---|---|---|---|---|
| ScreenSpot-v2 (avg) | <ins>80.7</ins> | - | 31.1 | 50.9 | 84.2 | 66.5 | 78.5 |
| RefCOCO (Macro Prec@1) | <ins>87.9</ins> | 57.1<br>(<span style="color: red;">-30.8</span>) | 67.3 | 72.1 | 88.9 | 78.5 | 86.6 |
| BLINK | <ins>61.5</ins> | 50.2<br>(<span style="color: red;">-11.3</span>) | 51.8 | 56.4 | 57.4 | 59.3 | 65.0 |
| MuirBench | <ins>58.3</ins> | 34.9<br>(<span style="color: red;">-23.4</span>) | 40.7 | 48.9 | 53.4 | 49.0 | 67.0 |
| ToolSandBox | 59.5 | 26.4<br>(<span style="color: red;">-33.1</span>) | 56.5 | <ins>61.6</ins> | n/a<a href="#fn-internvl-tools" class="footnote-ref" role="doc-noteref"><sup>1</sup></a> | 47.7 | 65.0 |
| BFCLv4 | 32.5 | 20.5<br>(<span style="color: red;">-12.0</span>) | 33.2 | <ins>40.0</ins> | n/a<a href="#fn-internvl-tools" class="footnote-ref" role="doc-noteref"><sup>1</sup></a> | 33.9 | 53.6 |
A selection of benchmarks for LFM2.5-VL-3B, including multimodal reasoning, math, and OCR (see our blog post for more benchmarks and details):
| Benchmark | LFM2.5‑VL‑3B (3.1B) | LFM2‑VL‑3B (3.1B) | Gemma4 E2B (5.1B) | Gemma4 E4B (8B) | InternVL 3.5 2B (2.4B) | InternVL 3.5 4B (4.7B) | Qwen3.5-2B (2.3B) | Qwen3.5-4B (4.7B) |
|---|---|---|---|---|---|---|---|---|
| MME | 73.1 | 73.0 | 54.9 | 68.1 | 73.3 | 80.8 | 76.4 | 79.5 |
| MMStar | 63.3 | 57.7 | 57.9 | 61.9 | 57.5 | 65.3 | 67.9 | 73.3 |
| RealWorldQA | 73.1 | 71.1 | 56.2 | 61.8 | 61.4 | 68.6 | 71.4 | 76.2 |
| CountBenchQA | 87.3 | 92.2 | 70.8 | 80.1 | 70.6 | 82.5 | 83.2 | 86.9 |
| MMMB | 83.0 | 81.9 | 75.7 | 80.5 | 76.4 | 81.5 | 73.6 | 83.4 |
| MM-IF Eval | 60.6 | 51.4 | 64.5 | 66.7 | 48.4 | 54.6 | 52.1 | 63.8 |
| MathVista | 68.5 | 68.5 | 62.1 | 52.9 | 56.6 | 59.1 | 68.8 | 69.7 |
| MMMU Pro | 30.5 | 28.7 | 34.5 | 39.1 | 27.4 | 31.6 | 43.5 | 60.9 |
| ChartQA | 81.3 | 80.4 | 43.5 | 41.9 | 81.8 | 86.5 | 78.3 | 84.2 |
| OCRBenchv2<a href="#fn-ocrbenchv2" class="footnote-ref" role="doc-noteref"><sup>2</sup></a> | 47.5 | 43.9 | 44.7 | 48.7 | 45.5 | 49.2 | 48.0 | 58.8 |
| POPE | 88.7 | 89.2 | 84.0 | 86.9 | 87.3 | 88.9 | 88.7 | 86.0 |
<p id="fn-internvl-tools">[1]: InternVL 3.5 doesn't support tool use.</p>
<p id="fn-ocrbenchv2">[2]: English-only subset of OCRBenchv2.</p>
LFM2.5-VL-3B decodes 228 tokens/s on an Apple M5 Max and 116 tokens/s on an AMD Ryzen AI Max+ 395, and fits in about 3 GB of memory. It even reaches 20 tokens/s on a Galaxy S26 Ultra, so you can run it fully on-device.

On a single NVIDIA H100 with vLLM, LFM2.5-VL-3B reaches the highest output throughput of any model we tested, about 11K tokens per second at high concurrency, or nearly 1B tokens per day.

Because it answers directly instead of reasoning, LFM2.5-VL-3B is quick to first token on a single H100, reaching about 34 ms on a 5-frame clip.

@article{liquidAI2026VL3B,
author = {Liquid AI},
title = {LFM2.5-VL-3B: A Better and Faster Vision-Language Model for the Edge},
journal = {Liquid AI Blog},
year = {2026},
note = {www.liquid.ai/blog/lfm2-5-vl-3b},
}