How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="josephmayo/Fara-7B-Abliterated-v2")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
pipe(text=messages)
# Load model directly
from transformers import AutoProcessor, AutoModelForImageTextToText

processor = AutoProcessor.from_pretrained("josephmayo/Fara-7B-Abliterated-v2")
model = AutoModelForImageTextToText.from_pretrained("josephmayo/Fara-7B-Abliterated-v2")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
inputs = processor.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Fara-7B Abliterated v2

A refusal-direction-orthogonalized variant of microsoft/Fara-7B (Qwen2.5-VL based).

Built using:

Method

Using harmful + harmless probe sets, residual-stream activations were extracted across layers 0–27 to identify the strongest refusal direction.

Best layer:

  • 13

Orthogonalization was applied in fp32 to:

  • embed_tokens
  • every self_attn.o_proj
  • every mlp.down_proj

Total modified tensors:

  • 57

Formula:

W ← W - r rᵀ W

Results

Held-out harmful evaluation set:

  • Original Fara-7B: 5/160 compliance (~3.1%)
  • Abliterated v2: 158/160 compliance (~98.75%)

Held-out refusal probe:

  • Before: 155/160 refusals
  • After: 2/160 refusals

Notes

  • fp32 surgery used to avoid precision issues from v1
  • edits applied only to the language tower
  • held-out evaluation set was separate from the layer-selection probe set

Research artifact only. Use responsibly and follow upstream Fara/Qwen license terms.

Downloads last month
69
Safetensors
Model size
8B params
Tensor type
F16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for josephmayo/Fara-7B-Abliterated-v2

Finetuned
(2)
this model
Quantizations
3 models

Collection including josephmayo/Fara-7B-Abliterated-v2