/ Модель

Характеристики

Размер весов
6,2 ГБ
Лицензия
Своя лицензия
Архитектура
lfm2_vl · dense
Базовая модель
LFM2.5-VL-3B
Библиотека
transformers
Опубликована
26 окт 2026

LFM2.5-VL-3B-heretic

Изображение и текст → текст10 профессий
2 298скачиваний за 30 дней0лайковвеса обновлены1 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Мультимодальная модель на базе LiquidAI/LFM2.5-VL-3B с подавленным отказным поведением для локального OCR, анализа документов, экранов и других визуальных запросов.

LFM2.5-VL-3B-heretic — мультимодальная модель для анализа изображений, созданная автором репозитория на основе LiquidAI/LFM2.5-VL-3B. Автор применил Heretic 1.4.0 для подавления отказов направленной абляцией весов; это изменение весов без дообучения, при котором текстовая и визуальная архитектуры сохранены. Модель насчитывает около 3,12 млрд параметров: гибридный текстовый блок LFM2.5 с 22 сверточными и 8 полно-внимательными блоками, а также визуальная башня SigLIP2 NaFlex.

Модель рассчитана на локальную работу с документами и экранами: OCR страниц с разметкой областей, поиск объектов по текстовому запросу, понимание скриншотов, чтение диаграмм и анализ нескольких изображений в диалоге. Поддерживает 16 языков, включая русский, контекст до 32 768 токенов и вызов инструментов. Для обработки изображений в GGUF нужны основной файл модели и отдельный файл проектора; доступны варианты квантования GGUF.

Согласно README, изменение снижает число отказов на тесте автора со 100 из 100 у базовой модели до 6 из 100. Семейство оптимизировано для однократных запросов с низкой задержкой, а не для сложных рассуждений или длинного контекста; автор также отмечает слабую пригодность для визуального веб-дизайна и вопросов по техническим чертежам. Лицензия в метаданных обозначена как other, конкретные условия в предоставленных данных не раскрыты.

Сценарии применения

  • извлечение текста и структуры из сканов страниц
  • поиск объектов на изображении по текстовому описанию
  • понимание скриншотов и элементов пользовательского интерфейса
  • ответы на вопросы по диаграммам и изображениям
  • сравнение нескольких изображений в одном запросе

Ограничения

Модель не рассчитана на длинные контексты и сложные рассуждения; автор также не рекомендует её для визуального веб-дизайна и вопросов по высокотехническим чертежам. Для обработки изображений в GGUF требуется отдельный файл проектора; лицензия указана как other без конкретизации условий в предоставленных данных.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Изображение → текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

Для каких профессий подходит10

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

LFM2.5-VL-3B-heretic

A decensored variant of LiquidAI/LFM2.5-VL-3B, produced with Heretic v1.4.0 (directional ablation / "abliteration"). Liquid's hybrid conv+attention text backbone and the SigLIP2 NaFlex vision tower are kept intact - refusal behaviour is suppressed with targeted weight edits to the attention output and MLP down-projections of the language model, not by fine-tuning. Visual grounding, full-page OCR with layout annotation, multi-image input and tool calling all still work.

[!IMPORTANT] The GGUF here is fully multimodal - text and vision. The vision tower and projector ship separately as LFM2.5-VL-3B-heretic-mmproj-F16.gguf (0.85 GB); the two files together are the model. For image input you must load both - see Quickstart. Text-only use needs only the main GGUF. Nothing is dropped from the text path: the text GGUF carries the full language tower (266 tensors, 30 blocks), and the projector GGUF carries the complete 426,285,296-element SigLIP2 tower plus merger, measured from its own header, including the tiling metadata (min_tiles 2, max_tiles 10, tile_size 512, max_pixels_tolerance 2.0) llama.cpp needs to reproduce the original image preprocessing.

Who this is for: people who want a small vision-language model that answers instead of declining. At 3.12B total (2.70B text + 0.41B SigLIP2 vision + 0.01B projector) it is the larger of the two LFM2.5-VL heretics here, and it is built for document and screen work: full-page OCR with layout regions, bounding-box grounding from a natural-language query, screenshots and UI understanding, chart reading, and multi- image input. Refusals drop from 100/100 to 6/100. 16 languages. If you want the same capability at a fraction of the size, LFM2.5-VL-450M-heretic is the sibling; if you need text only, LFM2.5-1.2B-Instruct-heretic or Qwen3-4B-Thinking-heretic fit better.

Not the right pick for long-context or reasoning-heavy work. Liquid explicitly recommends this family for single-turn, high-throughput, low-latency tasks and warns against visual web design or highly technical blueprint Q&A. Context is 32,768 tokens.

GPU matrix

The vision tower is not quantized, so image input costs the text quant plus the fixed 0.85 GB projector at every tier:

HardwareRecommended quantText weightsText + vision
6 GB GPU / 8 GB unifiedQ4_K_M1.67 GB2.53 GB
8 GB GPUQ5_K_M1.94 GB2.79 GB
12 GB GPUQ6_K2.22 GB3.08 GB
16 GB+ GPU / CPU-onlyQ8_02.87 GB3.73 GB

Add roughly 1-2 GB of KV/activation overhead on top. Liquid reports about 3.3 GB resident for the unquantized model, so the Q4_K_M pair comfortably fits a 6 GB card.

Abliteration parameters

Trial 67 of 200 (seed 3853387823), direction_index selected per layer.

ParameterValue
direction_indexper layer
attn.o_proj.max_weight1.078
attn.o_proj.max_weight_position17.475
attn.o_proj.min_weight0.698
attn.o_proj.min_weight_distance8.406
mlp.down_proj.max_weight1.332
mlp.down_proj.max_weight_position21.896
mlp.down_proj.min_weight0.750
mlp.down_proj.min_weight_distance14.053

Performance

MetricThis modelOriginal model (LiquidAI/LFM2.5-VL-3B)
KL divergence0.06450 (by definition)
Refusals6/100100/100

Read the pair, not the KL alone. 0.0645 is a mid-pack edit: looser than granite-4.2-3b (0.0095) and Qwen3-4B-Thinking (0.0011), tighter than granite-4.1-3b (0.0852) and the gemma-4-E2B run (0.1841). The base refused all 100 evaluation prompts - heavier alignment than the Qwen2.5-VL-3B base (99/100) - and 94 of them now clear. That is real work at a weight distance that did not have to be extreme, which is the combination worth trusting.

The base model's own published scores (the abliteration only removes refusal directions, so these describe the underlying capability, not a fresh sweep of this checkpoint):

BenchmarkLFM2.5-VL-3B (base)
ScreenSpot-v280.7
RefCOCO (Macro Prec@1)87.9
BLINK61.5
MuirBench58.3
ToolSandBox59.5
BFCLv432.5
MME73.1
MMStar63.3
RealWorldQA73.1
CountBenchQA87.3
MMMB83.0
MM-IF Eval60.6
MathVista68.5
MMMU Pro30.5
ChartQA81.3
OCRBenchv2 (English subset)47.5
POPE88.7

Why abliteration instead of fine-tuning

Fine-tuning a "helpful" persona on top of RLHF'd refusals fights the base model's training and tends to degrade coherence. Abliteration instead finds and edits the specific weight directions responsible for refusal, leaving the rest of the network - including the vision tower, OCR behaviour and tool-call format - untouched. See the Heretic repo and the original abliteration writeup for the mechanism.

Made with ❤️ by RACER IS OP (saidutta69) - follow for more uncensored models

Files

Safetensors

FileSize
model-00001-of-00002.safetensors5.00 GB
model-00002-of-00002.safetensors1.25 GB

BF16, 3.12B total - 2.70B text tower + 0.41B SigLIP2 vision tower + 0.01B multimodal projector (6.25 GB on disk). The reproduce/ directory carries the full Heretic recipe - config.toml, requirements.txt, the Optuna journal, SHA-256 sums - so this exact model can be regenerated with heretic --reproduce reproduce/reproduce.json.

GGUF quantizations

Full ladder (14 quants + F16) from llama.cpp, plus the vision projector:

FileFormatSize
LFM2.5-VL-3B-heretic-F16.ggufGGUF F165.40 GB
LFM2.5-VL-3B-heretic-Q2_K.ggufGGUF Q2_K1.09 GB
LFM2.5-VL-3B-heretic-IQ3_S.ggufGGUF IQ3_S1.27 GB
LFM2.5-VL-3B-heretic-Q3_K_S.ggufGGUF Q3_K_S1.27 GB
LFM2.5-VL-3B-heretic-Q3_K_M.ggufGGUF Q3_K_M1.37 GB
LFM2.5-VL-3B-heretic-Q3_K_L.ggufGGUF Q3_K_L1.45 GB
LFM2.5-VL-3B-heretic-IQ4_XS.ggufGGUF IQ4_XS1.53 GB
LFM2.5-VL-3B-heretic-Q4_K_S.ggufGGUF Q4_K_S1.60 GB
LFM2.5-VL-3B-heretic-Q4_0.ggufGGUF Q4_01.59 GB
LFM2.5-VL-3B-heretic-Q4_1.ggufGGUF Q4_11.75 GB
LFM2.5-VL-3B-heretic-Q4_K_M.ggufGGUF Q4_K_M1.67 GB
LFM2.5-VL-3B-heretic-Q5_K_S.ggufGGUF Q5_K_S1.90 GB
LFM2.5-VL-3B-heretic-Q5_K_M.ggufGGUF Q5_K_M1.94 GB
LFM2.5-VL-3B-heretic-Q6_K.ggufGGUF Q6_K2.22 GB
LFM2.5-VL-3B-heretic-Q8_0.ggufGGUF Q8_02.87 GB
FileFormatSize
LFM2.5-VL-3B-heretic-mmproj-F16.ggufvision projector (F16)0.85 GB

Total GGUF payload: 29.79 GB across 16 files (28.94 GB of text weights + 0.85 GB projector).

The text tower is GGUF architecture lfm2 (266 tensors, 30 blocks - 22 convolution and 8 full-attention, at indices 2, 5, 9, 13, 17, 21, 24 and 27), context 32,768. The projector is GGUF architecture clip with projector type lfm2 (441 tensors, the 27-block SigLIP2-so400m tower at hidden 1,152, patch 16, projection dim 2,048). Both load natively in llama.cpp, LM Studio, Jan and Ollama.

Quickstart

Text only

# pulls the default quant for you
llama-completion -hf saidutta69/LFM2.5-VL-3B-heretic:Q4_K_M -ngl 99

Text and images

llama-mtmd-cli auto-discovers the sibling whose name contains mmproj:

llama-mtmd-cli \
  -hf saidutta69/LFM2.5-VL-3B-heretic:Q4_K_M \
  --image path/to/page.png \
  -p "Transcribe this page." \
  -ngl 99
# or pass the projector explicitly from a local checkout
llama-mtmd-cli \
  -m LFM2.5-VL-3B-heretic-Q4_K_M.gguf \
  --mmproj LFM2.5-VL-3B-heretic-mmproj-F16.gguf \
  --image page.png \
  -p "Transcribe this page."
# transformers (vision-language), needs transformers>=5.0.0
from transformers import AutoProcessor, AutoModelForImageTextToText

model_name = "saidutta69/LFM2.5-VL-3B-heretic"
model = AutoModelForImageTextToText.from_pretrained(model_name, dtype="auto", device_map="auto")
processor = AutoProcessor.from_pretrained(model_name)

conversation = [
    {"role": "user", "content": [
        {"type": "image", "url": "https://example.com/photo.jpg"},
        {"type": "text", "text": "Describe this image in one sentence."},
    ]},
]
inputs = processor.apply_chat_template(
    conversation, add_generation_prompt=True, return_tensors="pt",
    return_dict=True, tokenize=True,
).to(model.device)
outputs = model.generate(**inputs, do_sample=True, temperature=0.2, top_k=50,
                         repetition_penalty=1.0, max_new_tokens=256)
print(processor.batch_decode(outputs[:, inputs["input_ids"].shape[1]:],
                             skip_special_tokens=True)[0])

config.json uses dtype: rather than torch_dtype:, so use dtype="auto" and a recent transformers. The reproduce/requirements.txt pins 5.20.2 for exact regeneration.

Visual grounding

Ask in words; it answers with normalized boxes:

prompt = ('Detect all instances of: the red button. Response must be a JSON array '
          '[{"label": ..., "bbox": [x1, y1, x2, y2]}, ...]. '
          'Coordinates are normalized to [0,1].')

OCR with layout

The model can return reading-order layout regions (image_index=<n> <label> [xmin, ymin, xmax, ymax] followed by the region content, with OTSL for tables and LaTeX for equations). Ask for the format explicitly - it is documented but still experimental upstream.

Sampling

Text defaults from the base card: temperature=0.2, top_k=50, repetition_penalty=1.0. Vision preprocessing is read from processor_config.json; do not override it in llama.cpp, the projector GGUF already carries the tiling parameters.

Model details

ArchitectureLfm2VlForConditionalGeneration
Text backboneLFM2.5-2.6B hybrid - 22 convolution blocks + 8 full-attention blocks
Vision backboneSigLIP2-so400m NaFlex, 27 layers, hidden 1,152, patch 16, projection 2,048
Parameters3.12B total - 2.70B text, 0.41B vision, 0.01B projector
Text layers30 - 22 convolution, 8 full attention (indices 2, 5, 9, 13, 17, 21, 24, 27)
Attention32 heads, 8 KV heads, head dim 64
Hidden / intermediate2,048 / 10,752
Position embeddingRoPE theta = 1,000,000
Context length32,768
Vocab128,000 (embeddings tied)
Image handlingnative resolution; 512x512 tiles (min_tiles 2, max_tiles 10) plus a whole-image thumbnail
GGUFarch lfm2, 266 tensors, 30 blocks; projector arch clip, type lfm2, 441 tensors
Precisionbfloat16
ModalitiesText and image in; text out
LanguagesEnglish, Arabic, Chinese, French, German, Italian, Japanese, Korean, Portuguese, Spanish, Vietnamese, Thai, Indonesian, Hindi, Russian, Polish
Base modelLiquidAI/LFM2.5-VL-3B

About LFM2.5-VL

LFM2.5-VL is Liquid AI's refresh of LFM2-VL, built on the LFM2.5-2.6B language model. It keeps SigLIP2 NaFlex native-resolution processing (large images split into 512x512 tiles with a thumbnail), adds full-page OCR with layout annotation, improves grounding, and still exposes Pythonic tool calls. Liquid quotes 228 tok/s on an Apple M5 Max, 116 tok/s on an AMD Ryzen AI Max+ 395, about 3.3 GB resident, and 20 tok/s on a Galaxy S26 Ultra. It is tuned for single-turn, high-throughput, low-latency work rather than long-context reasoning.

FAQ

What is LFM2.5-VL-3B-heretic?

LFM2.5-VL-3B-heretic is a decensored build of LiquidAI/LFM2.5-VL-3B produced with Heretic 1.4.0 (directional ablation). It is the same weights with the refusal direction removed, not a new fine-tune, so its capabilities track the base model.

Is LFM2.5-VL-3B-heretic actually uncensored?

Yes. On Heretic's 100-prompt refusal harness it drops from 100/100 to 6/100 at KL divergence 0.0645 from the base model. These are measured values, not a claim; reproduction data is in reproduce/.

How do I run LFM2.5-VL-3B-heretic locally?

Text: llama serve -hf saidutta69/LFM2.5-VL-3B-heretic:Q4_K_M. Images: llama-mtmd-cli -hf saidutta69/LFM2.5-VL-3B-heretic:Q4_K_M --mmproj LFM2.5-VL-3B-heretic-mmproj-F16.gguf. The repo ships 15 GGUF quants plus the projector, so vision survives quantization.

Responsible use

Refusal suppression is deliberate and works as intended: this model will comply with requests the base model would refuse, including some it shouldn't. There is no safety filtering layered on top. You are responsible for how you deploy it - don't put this behind an unmoderated public-facing endpoint serving third parties. It inherits the base model's factual limitations and biases; abliteration removes refusal directions, it does not add capability or judgment.

License

lfm1.0 - the LFM Open License, inherited from the base model. This is not Apache-2.0. The heretic repository itself ships no LICENSE file, so the link above points at the base repository's license blob. Read it before deploying commercially.

Related

Abliteration hardware

Recorded in reproduce/reproduce.json:

  • GPU: NVIDIA RTX PRO 6000 Blackwell Server Edition (94.97 GB VRAM)
  • OS: Linux-4.19.0-gvisor-x86_64-with-glibc2.41
  • CUDA / driver: CUDA 13.0, driver 595.71.05
  • Software: PyTorch 2.14.1+cu130, Heretic 1.4.0

Heretic notes that KL-divergence and refusal numbers can vary slightly with hardware and library versions.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Lfm2VlForConditionalGeneration
Ревизия весов
afd3a6a

0 моделей