TrevorJS / gemma-4-E2B-it-uncensored

huggingface.co
Total runs: 1.0K
24-hour runs: 0
7-day runs: 115
30-day runs: 218
Model's Last Updated: June 14 2026
text-generation

Introduction of gemma-4-E2B-it-uncensored

Model Details of gemma-4-E2B-it-uncensored

gemma-4-E2B-it-uncensored

Uncensored version of google/gemma-4-E2B-it with refusal behavior removed.

Results
Before After
Refusals (mlabonne, 100 prompts) 98/100 1/100
Refusals (cross-dataset, 686 prompts) 3/686 (0.4%)
KL Divergence 0 (baseline) 0.346
Quality (harmless response length ratio) 1.0 ~1.01 (no degradation)
Cross-Dataset Validation

Tested against 4 independent prompt datasets to verify generalization:

Dataset Prompts Refusals
JailbreakBench 100 0/100
tulu-harmbench 320 1/320
NousResearch/RefusalDataset 166 0/166
mlabonne/harmful_behaviors 100 2/100
Total 686 3/686 (0.4%)

Every flagged refusal was manually audited. Most are "refusal-then-comply" false positives where the model adds an AI identity disclaimer then answers the question anyway.

Method

Norm-preserving biprojected abliteration ( grimjim, Nov 2025 ). Each weight row is decomposed into magnitude + direction, the refusal direction is projected out of the direction component only, then recombined with the original magnitude — guaranteeing ||W_new|| = ||W_orig|| .

Pipeline
  1. Load model in bf16 with LoRA adapters on o_proj and mlp.down_proj
  2. Collect residual activations for 400 harmful + 400 harmless prompts ( mlabonne datasets)
  3. Winsorize activations at 99.5th percentile (clamps GeGLU outlier activations in Gemma family)
  4. Compute per-layer refusal direction: normalize(mean(harmful) - mean(harmless))
  5. Orthogonalize each direction against harmless mean (double-pass Gram-Schmidt)
  6. Apply norm-preserving weight modification to o_proj and down_proj in all layers
  7. Merge LoRA adapters into base weights for clean tensor names
Parameters
Parameter Value
Layers abliterated 100%
Scale 1.0
Winsorization 0.995
How this differs from vanilla heretic
  • Norm-preserving biprojection instead of standard projection (preserves weight magnitudes)
  • Per-layer refusal directions instead of one global direction
  • Deterministic single-pass instead of 50-trial Optuna search (faster, same or better results)
  • LoRA merge before save for clean GGUF-compatible tensor names
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model = AutoModelForCausalLM.from_pretrained("TrevorJS/gemma-4-E2B-it-uncensored", dtype=torch.bfloat16, device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("TrevorJS/gemma-4-E2B-it-uncensored")

messages = [{"role": "user", "content": "Your prompt here"}]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True)
outputs = model.generate(inputs.to(model.device), max_new_tokens=512)
print(tokenizer.decode(outputs[0][inputs.shape[1]:], skip_special_tokens=True))
Reproduction

Full code and experiment data: abliteration research repo

python scripts/abliterate.py biprojection --model google/gemma-4-E2B-it \
  --top-pct 100 --strip-topic-markers --skip-prefix --batch-size 4 \
  --auto-save output_dir

Runs of TrevorJS gemma-4-E2B-it-uncensored on huggingface.co

1.0K
Total runs
0
24-hour runs
-5
3-day runs
115
7-day runs
218
30-day runs

More Information About gemma-4-E2B-it-uncensored huggingface.co Model

More gemma-4-E2B-it-uncensored license Visit here:

https://choosealicense.com/licenses/apache-2.0

gemma-4-E2B-it-uncensored huggingface.co

gemma-4-E2B-it-uncensored huggingface.co is an AI model on huggingface.co that provides gemma-4-E2B-it-uncensored's model effect (), which can be used instantly with this TrevorJS gemma-4-E2B-it-uncensored model. huggingface.co supports a free trial of the gemma-4-E2B-it-uncensored model, and also provides paid use of the gemma-4-E2B-it-uncensored. Support call gemma-4-E2B-it-uncensored model through api, including Node.js, Python, http.

gemma-4-E2B-it-uncensored huggingface.co Url

https://huggingface.co/TrevorJS/gemma-4-E2B-it-uncensored

TrevorJS gemma-4-E2B-it-uncensored online free

gemma-4-E2B-it-uncensored huggingface.co is an online trial and call api platform, which integrates gemma-4-E2B-it-uncensored's modeling effects, including api services, and provides a free online trial of gemma-4-E2B-it-uncensored, you can try gemma-4-E2B-it-uncensored online for free by clicking the link below.

TrevorJS gemma-4-E2B-it-uncensored online free url in huggingface.co:

https://huggingface.co/TrevorJS/gemma-4-E2B-it-uncensored

gemma-4-E2B-it-uncensored install

gemma-4-E2B-it-uncensored is an open source model from GitHub that offers a free installation service, and any user can find gemma-4-E2B-it-uncensored on GitHub to install. At the same time, huggingface.co provides the effect of gemma-4-E2B-it-uncensored install, users can directly use gemma-4-E2B-it-uncensored installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

gemma-4-E2B-it-uncensored install url in huggingface.co:

https://huggingface.co/TrevorJS/gemma-4-E2B-it-uncensored

Url of gemma-4-E2B-it-uncensored

gemma-4-E2B-it-uncensored huggingface.co Url

Provider of gemma-4-E2B-it-uncensored huggingface.co

TrevorJS
ORGANIZATIONS

Other API from TrevorJS

huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 18 2023