Abliteration HandbookField guide
Technique atlas

Vision & multimodal abliteration

VLMs (Gemma 3 4B/12B vision, Qwen2.5-VL, LLaVA-class) carry refusal in the language trunk — abliteration targets are still primarily down_proj / o_proj on the text transformer.

1 min read 1 examples Source-linked

In this chapter
On this page Interactive companion
Personal reading progress

0/6 sections reviewed

View original Markdown
Interactive companion

Explore routing coverage

Use the visual controls alongside the complete source chapter.

VLMs (Gemma 3 4B/12B vision, Qwen2.5-VL, LLaVA-class) carry refusal in the language trunk — abliteration targets are still primarily down_proj / o_proj on the text transformer.


What Heretic measures today#

Default Heretic runs use text prompts from [bad_prompts] / [good_prompts]. For VLMs:

ModeEffect
Text-only measureRemoves text-channel refusal; most common path
Image+text measureNot default — needs custom prompt files with image paths if supported

For factory agents that only process text tool output, text-only abliteration is usually sufficient.


Vision-specific false refusals#

Refusal typeWeight surgery helps?
"I cannot view images"Partially — may need image-in-the-loop eval
Refuses wmic with text-only prompt✅ Standard abliteration
Refuses describing image content✅ If prompts include images in measure set

Community VL abliterated: huihui-ai/Qwen2.5-VL-7B-Instruct-abliterated (see registry).


StepAction
1Abliterate on text-only harmful/harmless sets first
2Eval text tool prompts: hardware-factory-prompts.jsonl
3If image QA still refuses, add 20–50 image-caption pairs to custom [bad_prompts]
4Lower max_weight — VLMs are more sensitive to KL drift
toml
winsorization_quantile = 0.95
kl_divergence_target = 0.008
full_normalization_lora_rank = 8

Module map (Gemma 3 VL)#

ComponentAbliterate?
Language down_proj✅ Primary
Vision encoder❌ Usually leave untouched
Multimodal projector⚠️ Research only — high capability risk

Heretic upstream model.py maps supported VL architectures — verify before manual edits.


GGUF / Ollama for VL#

Vision models need mmproj + vision template in Modelfile. After abliteration:

  1. Export full HF folder (vision + language weights).
  2. Convert with llama.cpp vision scripts for your model family.
  3. Test text-only and image+text in Ollama separately.

→ ../instructions/run-locally-ollama-lmstudio.md


Trace this chapter to its source.

The complete Markdown remains the editable source. This page adds navigation, typography, and a visual companion.

techniques/vision-multimodal-abliteration.md
Inspect the source fingerprintSHA-256 2090d9dae3dc21638153d616f9c1e2f342f49c408d7bf57e0a5a8a431046054eSource commit 6fba7436a5914cad7c8f0835a14b480a29dac263