← back to catalog · registered 2026-08-22 13:56

huihui-ai/Huihui-gemma-3n-E4B-it-abliterated

huihui-ai Gemma 7.8B multimodal
Your rig guess connected
? Why do I need an app?
Reading your rig…

This is a rough estimate. Install the free app - we'll show exact numbers.

Reading real hardware from your app right now. Numbers below are exact.

Below is the per-quantization compatibility for this model.

curl -H "Authorization: Bearer $ABL_KEY" \
     "https://abliteration.org/api/v1/models/huihui-ai%2FHuihui-gemma-3n-E4B-it-abliterated"
Response includes
  • classification m3
  • files 18
  • benchmarks 5 entries
  • hub_downloads_all_time 2,951
  • author_summary 184 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Abliteration classifier · v1.0.0
M3
Primary method

Layer-wise ablation

No other method signals detected in this model.
Confidence
HIGH
Why this label 3 signals
Producer identity confirmed by naming conventions, tags or the model card. This label is very unlikely to change.
  • author=huihui-ai (specializes in M3 layer-wise ablation)
  • is_gguf=0 (base model, not repackage)
  • 'abliterated' in name/tags
Refusal direction extracted via
Extraction technique

huihui-ai layer-band extraction

Confidence
HIGH
Why we say so
producer=huihui-ai (documented layer-band methodology in model cards)
Downloads · lifetime
3K
115 last 30d - cooling
Likes
18
Descendants
17
in 17 direct forks
Model age
15mo ago
created 2025-07-07
Downloads over time
Now3K→from54↑5,420%
01.1K2.2K3.3K54 on Jul 9, 20253K on Oct 11Jul '25Sep '25Nov '25JanMarMayJulSep
Jul 9, 2025 → Oct 11 · 105 snapshots · spans 459 days

Benchmarks

Portrait before abliteration
Benchmarks of the base model as it stood before the refusal-removal operation. Compare with the numbers above to see what the operation cost.
Benchmark Score Source
Arena-Battles 18513 LM-Arena
LM Arena Elo 1307.4313899848707 LM-Arena
Arena-Elo-Lower 1302.0211663544185 LM-Arena
Arena-Elo-Upper 1312.841613615323 LM-Arena
Arena-Rank 71 LM-Arena

Genealogy 17 direct forks

Full fork graph →

This model's place in the market. Above: what it was derived from. Below: the tree of everything derived from it.

Metadata

License
gemma
Tags
transformers safetensors gemma3n image-text-to-text automatic-speech-recognition automatic-speech-translation audio-text-to-text video-text-to-text abliterated uncensored conversational base_model:google/gemma-3n-E4B-it

Related

Total size
14.6 GB
Files
18
Quantizations
1
Registered
2026-08-22 13:56
Last updated on HF
2025-07-13 03:55

Files by quantization

Auxiliary files 18 files 14.7 GB
model-00003-of-00004.safetensors 4.65 GB b5597d11 download
model-00001-of-00004.safetensors 4.63 GB 1d3abb42 download
model-00002-of-00004.safetensors 4.26 GB 1fce4580 download
model-00004-of-00004.safetensors 1.09 GB b215d940 download
final_refusal_dirs-16.pt 5.64 KB 5fe20b99 download
tokenizer.json 31.9 MB c4c19736 download
bee.jpg 5.12 MB 8b21ba78 download
tokenizer.model 4.48 MB ea5f0cc4 download
tokenizer_config.json 1.15 MB f8325f19 download
model.safetensors.index.json 167 KB 25cba4e3 download
README.md 8.80 KB 1710283c download
config.json 4.05 KB 23b07282 download
chat_template.jinja 1.59 KB a0405ea9 download
.gitattributes 1.58 KB 91abafdb download
preprocessor_config.json 1.10 KB 82fbb111 download
special_tokens_map.json 769 B 6bb15953 download
generation_config.json 215 B b6a1e48b download
processor_config.json 98.0 B 2ffcf33a download

README current version from Hugging Face


license: gemma
library_name: transformers
pipeline_tag: image-text-to-text
extra_gated_heading: Access Gemma on Hugging Face
extra_gated_prompt: To access Gemma on Hugging Face, you’re required to review and
agree to Google’s usage license. To do this, please ensure you’re logged in to Hugging
Face and click below. Requests are processed immediately.
extra_gated_button_content: Acknowledge license
base_model: google/gemma-3n-E4B-it
tags:

  • automatic-speech-recognition
  • automatic-speech-translation
  • audio-text-to-text
  • video-text-to-text
  • abliterated
  • uncensored

huihui-ai/Huihui-gemma-3n-E4B-it-abliterated

This is an uncensored version of google/gemma-3n-E4B-it created with abliteration (see remove-refusals-with-transformers to know more about it).
This is a crude, proof-of-concept implementation to remove refusals from an LLM model without using TransformerLens.

It was only the text part that was processed, not the image part.
After abliterated, it seems like more output content has been opened from a magic box.

Note

The issue of saving the model after ablation has been resolved. You can try the following code for now.

ollama

This was created using ollama create and only supports fp16.

You can use huihui_ai/gemma3n-abliterated:e4b-fp16 directly,

ollama run huihui_ai/gemma3n-abliterated:e4b-fp16

Usage

You can use this model in your applications by loading it with Hugging Face's transformers library:


from transformers import AutoProcessor, Gemma3nForConditionalGeneration
from transformers.models.gemma3n.modeling_gemma3n import Gemma3nTextDecoderLayer
from PIL import Image
import requests
import torch
import jaxtyping
import einops
import base64

model_id = "google/gemma-3n-E4B-it"

model = Gemma3nForConditionalGeneration.from_pretrained(model_id, device_map="cuda", torch_dtype=torch.bfloat16,).eval()

#refusal_dir= torch.load(model_id + "/final_refusal_dirs-16.pt", map_location='cpu', weights_only=True)
#
#refusal_dir = refusal_dir.to(model.device)
#refusal_dir = refusal_dir.to(torch.bfloat16)
#
#def direction_ablation_hook(activation: jaxtyping.Float[torch.Tensor, "... d_act"],
#                            direction: jaxtyping.Float[torch.Tensor, "d_act"]):
#    proj = einops.einsum(activation, direction.view(-1, 1), '... d_act, d_act single -> ... single') * direction
#    return activation - proj
#
#class AblationDecoderLayer(Gemma3nTextDecoderLayer):
#    def __init__(self, original_layer, config, layer_idx, refusal_dir):
#        super(AblationDecoderLayer, self).__init__(config, layer_idx)
#        self.original_layer = original_layer
#        self.refusal_dir = refusal_dir
#
#    def forward(self, *args, **kwargs):
#        hidden_states = args[0]
#        ablated = direction_ablation_hook(hidden_states, self.refusal_dir.to(hidden_states.device)).to(hidden_states.device)
#        args = (ablated,) + args[1:]
#        return self.original_layer.forward(*args, **kwargs)
#
#for idx in range(len(model.model.language_model.layers)):
#    model.model.language_model.layers[idx] = AblationDecoderLayer(model.model.language_model.layers[idx], model.config.text_config, idx, refusal_dir)

processor = AutoProcessor.from_pretrained(model_id)

# https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/bee.jpg
image_path = model_id + "/bee.jpg"

with open(image_path, "rb") as image_file:
    encoded_string = base64.b64encode(image_file.read()).decode("utf-8")
    image_type = "image/jpeg" if image_path.endswith(".jpg") else "image/png"
    data_uri = f"data:{image_type};base64,{encoded_string}"

    messages = [
        {
            "role": "system",
            "content": [{"type": "text", "text": "You are a helpful assistant."}]
        },
        {
            "role": "user",
            "content": [
                {"type": "image", "image": data_uri},
                {"type": "text", "text": "Describe this image in detail."}
            ]
        }
    ]

    inputs = processor.apply_chat_template(
        messages,
        add_generation_prompt=True,
        tokenize=True,
        return_dict=True,
        return_tensors="pt",
    ).to(model.device, dtype=torch.bfloat16)

    input_len = inputs["input_ids"].shape[-1]

    with torch.inference_mode():
        generation = model.generate(**inputs, max_new_tokens=1024, do_sample=True)
        generation = generation[0][input_len:]

    decoded = processor.decode(generation, skip_special_tokens=True)
    print(decoded)


    # ## A Close-Up of a Busy Bumblebee on a Pink Cosmos Flower
    # 
    # This image is a charming, close-up shot of a vibrant pink cosmos flower, with a cute bumblebee taking center stage!
    # 
    # **Overall Composition:**
    # 
    # The photograph is well-composed, focusing primarily on a single, large cosmos flower with several other blooms scattered in the background. It has a slightly elevated perspective, making the subject feel quite prominent and engaging.
    # 
    # **The Main Subject - The Pink Cosmos:**
    # 
    # * **Color:** The star of the show is a beautiful, bright pink cosmos flower. The petals are a lovely shade, ranging from a slightly lighter to a deeper rose hue.
    # * **Shape:** The flower is roughly circular with 5 distinct petals radiating from a central disc. The petals are quite full and have a slightly pointed tip.
    # * **Details:** The central disc of the flower is a sunny yellow, adding a lovely contrast. The edges of the petals have a slight ruffled look, giving the flower some personality.
    # 
    # **The Bumblebee - A Busy Friend:**
    # 
    # * **Position:** A charming bumblebee is perched right in the middle of the pink flower, giving it a welcoming and lively feel.
    # * **Size & Color:** The bee is a classic black and yellow mix, with a fuzzy body. It's a good-sized bee, making it easily noticeable.
    # * **Pose:** The bee is positioned slightly diagonally, ensuring the viewer can see its head and legs clearly.
    # 
    # **Background Elements:**
    # 
    # * **Other Flowers:** Several other cosmos flowers are visible in the background, creating depth and visual interest. Some are slightly out of focus, while others are closer to the camera. These range in color from a lighter pink to a deeper magenta, and even a vibrant red.
    # * **Green Foliage:** Lush green leaves are visible, adding a natural backdrop to the scene. The leaves are fairly large and contribute to the overall cheerful aesthetic.
    # * **Rustic Details:** Scattered throughout are some dried flower heads, hinting at the abundance of cosmos plants in the garden.
    # 
    # **Overall Impression:**
    # 
    # The image is bright, cheerful, and full of life! The combination of the pink cosmos and the adorable bumblebee creates a delightful scene, perfect for anyone who loves gardening or insects. It's a clear and well-lit shot, making it a delightful visual treat.
    # 
    # In summary, this image captures a happy little world, where a diligent bumblebee is hard at work on a beautiful pink cosmos flower!```

Usage Warnings

  • Risk of Sensitive or Controversial Outputs: This model’s safety filtering has been significantly reduced, potentially generating sensitive, controversial, or inappropriate content. Users should exercise caution and rigorously review generated outputs.

  • Not Suitable for All Audiences: Due to limited content filtering, the model’s outputs may be inappropriate for public settings, underage users, or applications requiring high security.

  • Legal and Ethical Responsibilities: Users must ensure their usage complies with local laws and ethical standards. Generated content may carry legal or ethical risks, and users are solely responsible for any consequences.

  • Research and Experimental Use: It is recommended to use this model for research, testing, or controlled environments, avoiding direct use in production or public-facing commercial applications.

  • Monitoring and Review Recommendations: Users are strongly advised to monitor model outputs in real-time and conduct manual reviews when necessary to prevent the dissemination of inappropriate content.

  • No Default Safety Guarantees: Unlike standard models, this model has not undergone rigorous safety optimization. huihui.ai bears no responsibility for any consequences arising from its use.

Donation

If you like it, please click 'like' and follow us for more updates.
You can follow x.com/support_huihui to get the latest model information from huihui.ai.

Your donation helps us continue our further development and improvement, a cup of coffee can do it.
  • bitcoin(BTC):
  bc1qqnkhuchxw0zqjh2ku3lu4hq45hc6gy84uk70ge

README history 6 versions

The author's README evolved over time. Click a version to see its content at that point.

  1. 2025-07-13Update README.md41baa2b8.8 KB
    Loading...
  2. 2025-07-13Update README.md56ade8e8.7 KB
    Loading...
  3. 2025-07-10Update README.md23bf3038.5 KB
    Loading...
  4. 2025-07-10Update README.mdb56f8388.5 KB
    Loading...
  5. 2025-07-07Update README.mdaeaba438.6 KB
    Loading...
  6. 2025-07-07initial commit0fa318f28 B
    Loading...

Discussions 6 threads

  1. 2025-07-26vision?open1 💬#6
    Loading...
  2. 2025-07-21Any tips for using training using unsloth?open2 💬#5
    Loading...
  3. 2025-07-13Multimodal model?closed5 💬#4
    Loading...
  4. 2025-07-10Not uncensoredopen4 💬#3
    Loading...
  5. 2025-07-07need adviceopen1 💬#2
    Loading...
  6. 2025-07-07yessssopen1 💬#1
    Loading...
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration