gemma-4

gemma-4-E4B-it-Uncensored-MAX

gemma-4-E4B-it-Uncensored-MAX is an uncensored evolution built on top of google/gemma-4-E4B-it. This model applies advanced refusal direction analysis and abliteration-based training strategies to significantly reduce internal refusal behaviors while preserving the reasoning and instruction-following strengths of the original architecture. The result is a powerful E4B parameter language model optimized for detailed responses and improved instruction adherence.

This model is materialized for research and learning purposes only. The model has reduced internal refusal behaviors, and any content generated by it is used at the user’s own risk. The authors and hosting page disclaim any liability for content generated by this model. Users are responsible for ensuring that the model is used in a safe, ethical, and lawful manner.


Evaluation Report (Self-Reported)

The result scores are based on the model prithivMLmods/gemma-4-E2B-it-Uncensored-MAX.

test

Note: The evaluation was conducted using 2,000 harmful test prompts to measure the refusal behavior of the language model. The self-reported evaluations provided here are intended only to give an overview of the model. Scores may vary depending on the benchmark and the evaluation strategy used.


Key Highlights

  • Advanced Refusal Direction Analysis: Uses targeted activation analysis to identify and mitigate refusal directions within the model’s latent space.
  • Uncensored MAX Training: Fine-tuned to significantly reduce refusal patterns while maintaining coherent and detailed outputs.
  • E4B Parameter Architecture: Built on gemma-4-E4B-it, offering strong reasoning and efficient performance.
  • Improved Instruction Adherence: Optimized to follow complex prompts with minimal unnecessary refusals.
  • High-Capability Deployment: Suitable for advanced research experimentation and efficient inference setups.

Quick Start with Transformers

pip install transformers==5.5.3 (or) git+https://github.com/huggingface/transformers.git
from transformers import Gemma4ForConditionalGeneration, AutoProcessor
import torch

model = Gemma4ForConditionalGeneration.from_pretrained(
    "prithivMLmods/gemma-4-E4B-it-Uncensored-MAX",
    torch_dtype="auto",
    device_map="auto"
)

processor = AutoProcessor.from_pretrained(
    "prithivMLmods/gemma-4-E4B-it-Uncensored-MAX"
)

messages = [
    {
        "role": "user",
        "content": [
            {"type": "text", "text": "Explain how transformer models work in simple terms."}
        ],
    }
]

text = processor.apply_chat_template(
    messages, tokenize=False, add_generation_prompt=True
)

inputs = processor(
    text=[text],
    padding=True,
    return_tensors="pt"
).to("cuda")

generated_ids = model.generate(**inputs, max_new_tokens=256)

generated_ids_trimmed = [
    out_ids[len(in_ids):] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
]

output_text = processor.batch_decode(
    generated_ids_trimmed,
    skip_special_tokens=True,
    clean_up_tokenization_spaces=False
)

print(output_text)

Intended Use

  • Alignment & Refusal Research: Studying refusal behaviors and activation-level modifications.
  • Red-Teaming Experiments: Evaluating robustness across adversarial or edge-case prompts.
  • Efficient Local AI Deployment: Running instruction models with lower compute requirements.
  • Research Prototyping: Experimentation with transformer architectures.

Limitations & Risks

Important Note: This model intentionally reduces built-in refusal mechanisms.

  • Sensitive Output Possibility: The model may generate controversial or explicit responses depending on prompts.
  • User Responsibility: Outputs should be handled responsibly and within legal and ethical boundaries.
  • Compute Requirements: While more efficient than larger models, it still benefits from GPU acceleration or optimized inference strategies.

Dataset & Acknowledgements

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

Model tree for prithivMLmods/gemma-4-E4B-it-Uncensored-MAX

Finetuned
(70)
this model
Quantizations
1 model

Collection including prithivMLmods/gemma-4-E4B-it-Uncensored-MAX