玩模型开放模型 · 清晰来源 · 自主选择
返回模型目录
Iambackup /

gemma-4-31B-it-uncensored

HF 源站

Iambackup/gemma-4-31B-it-uncensored is an uncensored open-source model hosted on Hugging Face.

Text GenerationsafetensorsGGUFEnglishLicense: apache-2.031Btransformersgemma4image-text-to-textuncensoredabliteratedbiprojectionnorm-preservingconversational
README.md说明 / 使用方法

license: apache-2.0 base_model: google/gemma-4-31B-it tags:

  • uncensored
  • abliterated
  • gemma4
  • gguf
  • biprojection
  • norm-preserving language:
  • en pipeline_tag: text-generation library_name: transformers

Gemma 4 31B-it Uncensored

Uncensored version of Google's Gemma 4 31B-it with refusal behavior removed via norm-preserving biprojected abliteration.

This is the largest dense model in the Gemma 4 family (30.7B parameters, 256K context). See also our E4B variant for a smaller alternative.

Results

MetricValue
Refusals (cross-dataset, 656 prompts)0/656 (0.0% effective)
Refusals (baseline)99/100
Layers modified60/60 (100%)
Weight matrices modified120
MethodBiprojection-memeff (norm-preserving)

The automated refusal detector flagged 14/656 responses (2.1%), but manual audit confirmed 0 effective refusals. All 14 are false positives — the model says "As an AI, I don't have a physical body" to sexual requests, or "I cannot diagnose you" to medical questions. These are factually correct statements, not refusals to engage with the topic. The model answers every prompt.

Method

Abliteration was performed using heretic (biprojection-memeff mode) with the following configuration:

  • Biprojection: Norm-preserving orthogonalized ablation (grimjim, Nov 2025)
  • Memory-efficient mode: Two-phase abliteration (Phase 1: 4-bit ~8min, Phase 2: bf16 ~3min) for large models
  • Layer selection: SNR-based quality metric, top 100% of layers
  • Winsorization: 0.995 quantile (tames GeGLU outlier activations)
  • Topic marker stripping: Removed false-positive markers ("illegal", "harmful", etc.)
  • Gemma 4 patch: Full-path LoRA targeting to avoid Gemma4ClippableLinear in vision/audio encoders

Based on the methodology and experiment design by TrevorJS.

Cross-Dataset Validation (656 Prompts)

Full validation across 4 independent benchmark datasets — 0 effective refusals out of 656 prompts (0.0%). Every flagged response was manually audited.

DatasetPromptsFlaggedEffective RefusalsDescription
JailbreakBench10000Curated adversarial prompts
forbidden_questions39080Broad harmful-intent coverage
beavertails15060Safety-categorized prompts (violence, fraud, drugs, etc.)
mlabonne harmful_behaviors1600Compact validation set
Total656140 (0.0%)

The 14 flagged responses fall into three categories:

  • Physical impossibility (6): "As an AI, I don't have a physical body" — e.g. to sexual requests
  • Missing information (5): "I cannot give exact steps for your jurisdiction" — asks for location/details, then provides general guidance
  • Medical/legal disclaimer (3): "I cannot diagnose you" — factually correct, then provides educational information

Note: Validation covers text-only prompts. Image and audio modalities were not tested for refusal behavior.

Usage

Ollama (GGUF)

ollama run InfinimindCreations/gemma-4-31B-it-uncensored

Transformers

from transformers import AutoModelForCausalLM, AutoProcessor

model = AutoModelForCausalLM.from_pretrained(
    "InfinimindCreations/gemma-4-31B-it-uncensored",
    dtype="bfloat16",
    device_map="auto",
)
processor = AutoProcessor.from_pretrained("google/gemma-4-31B-it")

Note: Use the processor/tokenizer from the original google/gemma-4-31B-it for chat templates, or use the included tokenizer_config.json.

Files

  • model-00001-of-00002.safetensors + model-00002-of-00002.safetensors — Full precision abliterated weights (bfloat16, ~59GB total)
  • gemma4-31b-cypher-q8_0.gguf — Quantized GGUF for Ollama/llama.cpp (~31GB)

Credits

  • Base model: Google Gemma 4 31B-it (Apache 2.0)
  • Abliteration engine: heretic by p-e-w
  • Biprojection method: grimjim — norm-preserving biprojected abliteration
  • Experiment methodology: TrevorJS — Gemma 4 abliteration research, Gemma4ClippableLinear patch discovery
  • Foundational research: Arditi et al. (2024) — "Refusal in LLMs is Mediated by a Single Direction"

Disclaimer

This model is provided for research purposes. The removal of refusal behavior means the model will respond to prompts that the original model would refuse. The model retains awareness of risks and context — it informs rather than blocks. Users are responsible for how they use this model.

About

Built by Infinimind Creations.

HUGGING FACE

上游数据

HF 下载量282
HF 点赞量0

HF 下载量为源站最近 30 天统计,与本站点击分开。

SITE STATS

本站统计

下载点击—
请求数—
匿名去重—最近 7 天—

本站下载量记录按钮点击,不代表下载完成;短时连点会去重。

来源与版本

作者
Iambackup
最近更新
2026/06/14
最新创建
2026/06/14
HF 趋势
未知
数据快照
2026/09/16
版本
未知
许可证
apache-2.0