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

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

huihui-ai Gemma 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-E2B-it-abliterated"
Response includes
  • classification m3
  • files 17
  • 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 · 30-day
61
↑ 3,294% in 90 days
Likes
8
Descendants
6
in 6 direct forks
Model age
15mo ago
created 2025-07-06
Downloads over time
Now1.1K→from31↑3,294%
03857691.2K31 on Jul 9, 20251.1K on Sep 26Jul '25Sep '25Nov '25JanMarMayJulSep
Jul 9, 2025 → Sep 26 · 90 snapshots · spans 444 days

Genealogy 6 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-E2B-it

Related

Total size
10.1 GB
Files
17
Quantizations
1
Registered
2026-08-22 13:56
Last updated on HF
2025-07-13 03:54

Files by quantization

Auxiliary files 17 files 10.2 GB
model-00002-of-00003.safetensors 4.65 GB f902f984 download
model-00001-of-00003.safetensors 4.64 GB 797db1d3 download
model-00003-of-00003.safetensors 861 MB 5f6c2f72 download
final_refusal_dirs-16.pt 5.64 KB 2b96893f 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 156 KB 32cb483e download
README.md 9.00 KB b16688d9 download
config.json 3.87 KB df9d9d63 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-E2B-it
tags:

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

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

This is an uncensored version of google/gemma-3n-E2B-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:e2b-fp16 directly,

ollama run huihui_ai/gemma3n-abliterated:e2b-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-E2B-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 Vibrant Garden Scene: A Close-Up of a Busy Bee
    # 
    # This image is a delightful close-up shot showcasing a charming bee in full swing, visiting a beautiful daisy-like flower in a garden. Here's a detailed breakdown:
    # 
    # **Overall Composition:**
    # 
    # The image is divided into three main sections: a large central focus on a pink flower, a smaller top section indicating another pink flower, and a bottom right section highlighting a vibrant red flower. This creates a sense of a bustling garden scene.
    # 
    # **Central Focus: The Mighty Bee on a Pink Daisy:**
    # 
    # * **The Bee:** The star of the show is a plump, fuzzy bee positioned prominently on a bright pink daisy.
    #     * **Body:** The bee has a dark, almost black body with a yellow band across its abdomen. Its wings are visible, slightly spread, giving it a charming "flying" look.
    #     * **Wings:**  It has a distinctive crown of small, white and black stripes.
    #     * **Position:** The bee is centered on a large, open flower head, often called a daisy, making it easily identifiable.
    # * **The Daisy:**
    #     * **Color:** A vibrant pink color dominates the central area.
    #     * **Petals:** The daisy has four distinct, rounded petals, each with a subtle inner line for definition.
    #     * **Size:** It's a generous size, with a yellow center and a green background.
    #     * **Variety:** A smaller version of the same daisy is placed above, allowing for easy comparison.
    # 
    # **Background Details:**
    # 
    # * **Background:** The background is divided into two rows of flowers, creating a visually appealing layering effect.
    #     * **Upper Row (Larger):**  A large, bright pink flower dominates the top half of the image.
    #     * **Lower Row (Smaller):**  A series of smaller flowers are arranged for a more detailed view.
    # * **Flower Types:**
    #     * **Red Flower:** A bold red flower is positioned towards the bottom right, with a small white dot on the petals for added visual interest.
    #     * **Smaller Pink Flowers:**  Several smaller pink flowers are arranged around the main crop, creating a sense of a dense garden.
    #     * **Brown Buds:** A cluster of brown buds is placed towards the bottom left, with a smaller pink flower peeking out.
    # 
    # **Overall Style:**
    # 
    # The image has a charming, slightly rustic feel, often used for illustrating items or creating a consistent visual style. The use of a light background makes the flowers and bee easily legible.
    # 
    # **In summary:**
    # 
    # This is a delightful image highlighting the busy life of a bee in a thriving garden. It's a vibrant scene, well-organized, and easily readable, making it perfect for any "garden" enthusiast!

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 11 versions

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

  1. 2025-07-13Update README.mdebe69469 KB
    Loading...
  2. 2025-07-13Update README.md764354d8.9 KB
    Loading...
  3. 2025-07-09Update README.md68c3e868.8 KB
    Loading...
  4. 2025-07-07Update README.md59c3ff58.8 KB
    Loading...
  5. 2025-07-06Update README.md66684148.8 KB
    Loading...
  6. 2025-07-06Update README.mdb766a218.7 KB
    Loading...
  7. 2025-07-06Update README.mdd1245e37.3 KB
    Loading...
  8. 2025-07-06Update README.md6e4cf6c7.3 KB
    Loading...
  9. 2025-07-06Update README.md19415b77.3 KB
    Loading...
  10. 2025-07-06Update README.mde6f96c97.2 KB
    Loading...
  11. 2025-07-06initial commitea08e1f28 B
    Loading...

Discussions 1 thread

  1. 2025-08-15Were some weights lost? vision_tower.timm_model.conv_stem.conv.biasopen2 💬#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