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

pipe = pipeline("image-text-to-text", model="Vortex5/G4-Moonlight-Dusk-26B-A4B-heretic")
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, AutoModelForMultimodalLM

processor = AutoProcessor.from_pretrained("Vortex5/G4-Moonlight-Dusk-26B-A4B-heretic")
model = AutoModelForMultimodalLM.from_pretrained("Vortex5/G4-Moonlight-Dusk-26B-A4B-heretic", device_map="auto")
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

This is a decensored version of Vortex5/G4-Moonlight-Dusk-26B-A4B, made using Heretic v1.2.0 with the Arbitrary-Rank Ablation (ARA) method (with row-norm preservation)

Abliteration parameters

Parameter Value
start_layer_index 3
end_layer_index 22
preserve_good_behavior_weight 0.6457
steer_bad_behavior_weight 0.0003
overcorrect_relative_weight 1.0934
neighbor_count 15

Performance

Metric This model Original model (Vortex5/G4-Moonlight-Dusk-26B-A4B)
KL divergence 0.0389 0 (by definition)
Refusals 14/100 100/100

G4-Moonlight-Dusk-26B-A4B

G4-Moonlight-Dusk-26B-A4B cover

Intended Use

📖 Storytelling Structured long-form narrative
🎭 Roleplay Emotion-forward interaction
🖊️ Creative Writing Atmospheric fiction
Downloads last month
217
Safetensors
Model size
27B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Vortex5/G4-Moonlight-Dusk-26B-A4B-heretic

Finetuned
(1)
this model
Quantizations
3 models

Collection including Vortex5/G4-Moonlight-Dusk-26B-A4B-heretic