Downloads · 30 days
185
28% of all-time downloads
sci4ai/Qwen2.5-VL-7B-Instruct-Ablit
Qwen2.5-VL-7B-Instruct-Ablit is a image-text-to-text model from sci4ai. 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.
<table border="0" <tr <td width="120" <img src="comfyui-logo.png" alt="ComfyUI" width="100"/ </td <td
Downloads · 30 days
185
28% of all-time downloads
All-time downloads
666
Public
Parameters
8.3B
16.6 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors16.6 GB · 100%
From the Hugging Face model README
Abliterated Qwen2.5-VL-7B-Instruct — full-precision BF16 safetensors. This is a vision-language model with refusal directions removed, enabling uncensored text generation while preserving multimodal capabilities.
Image Generation Use Case: Qwen2.5-VL-7B-Instruct is the text encoder for Qwen-Image-2512. This abliterated version provides a drop-in replacement for uncensored image generation workflows in ComfyUI and other diffusion tooling.
</td> </tr> </table>from transformers import AutoModelForImageTextToText, AutoTokenizer
model = AutoModelForImageTextToText.from_pretrained(
"Ablit-Qwen2.5-VL-7B-Instruct",
dtype="bfloat16",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("Ablit-Qwen2.5-VL-7B-Instruct")
The base chat template (Qwen2-VL) is unchanged. This model retains the vision tower from the base model and can process both text and images.
AblitVL — an adaptation of the AblitMD project for vision-language models.
Try it out: Roll your own recipe with the all-in-one app at ablitVL (adaptation of ablitMD for vision-language models).
This build uses the classic heretic-style single-direction abliteration method rather than the multi-category approach used in ablitMD. The motivation is simplicity and compatibility with vision-language architectures.
Direction computation — A single refusal direction is computed per layer using hidden states from the final token in the residual stream.
Each prompt was run through the base model and the hidden states at the final token were captured per layer. Every response was then classified by refusal type (hard / redirect / none), and each classification was reviewed for accuracy before the activations fed into the direction computation.
Single merged direction — Rather than maintaining separate per-category directions, the refusal direction is computed as the normalized difference between the mean of all refusal activations (hard + redirect) and the mean of all non-refusal activations (none).
refusal_mean = mean(hard_states + redirect_states)
complied_mean = mean(none_states)
direction = normalize(refusal_mean - complied_mean)
Weight orthogonalization — The refusal direction is ablated from the model weights using orthogonal projection:
W' = W - factor * (direction ⊗ (direction^T @ W))W' = W - factor * ((W @ direction) ⊗ direction^T)The ablation is applied to every decoder layer (1–27) and the lm_head at a uniform factor across all layers.
The heretic-style approach was chosen for this VL adaptation because:
Qwen/Qwen2.5-VL-7B-Instruct).