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

gemma-4-e4b-it-abliterated-bf16

HF 源站

mckerm1t/gemma-4-e4b-it-abliterated-bf16 is an uncensored open-source model hosted on Hugging Face.

Text GenerationMLX LMsafetensorsEnglishLicense: gemmamlxgemma4abliteratedsafety-researchalignmentconversational4-bit
README.md说明 / 使用方法

language: en license: gemma base_model: google/gemma-4-E4B-it tags:

  • mlx
  • safetensors
  • gemma4
  • abliterated
  • safety-research
  • alignment library_name: mlx pipeline_tag: text-generation

Gemma 4 E4B-IT Abliterated (MLX, BF16)

MLX conversion of the abliterated Gemma 4 E4B-IT model for Apple Silicon.

This is an MLX-format conversion of the abliterated version of google/gemma-4-E4B-it, with safety-alignment behavior surgically removed via activation-space analysis and targeted weight modification.

Intended exclusively for AI safety research, red-teaming, and understanding alignment vulnerabilities.

Key Results (Ablation)

MetricValue
Refusal Rate2.5% (down from ~80-100% baseline)
Quality Preservation (QPS)98.1%
Elo Delta+39.6
Ablation Scale1.38

Model Details

  • Base Model: google/gemma-4-E4B-it
  • Parameters: ~4B
  • Architecture: Dense (Gemma4ForConditionalGeneration)
  • Precision: BF16
  • Model Size: ~4.2 GB
  • Converted with: mlx-vlm

Usage

pip install -U mlx-vlm
python -m mlx_vlm.generate \
  --model mckerm1t/gemma-4-e4b-it-abliterated-bf16 \
  --max-tokens 256 \
  --temperature 0.0 \
  --prompt "Describe what you see in this image." \
  --image <path_to_image>

Ablation Methodology

This model was produced using a custom ablation pipeline:

  1. Measures refusal directions - Runs harmful and harmless prompts through the model, captures hidden states at every layer, and computes the per-layer refusal direction (mean difference vector)
  2. Identifies target layers - Selects layers with the strongest refusal signal using statistical analysis (Gini coefficient, wall coherence, peak detection)
  3. Surgically ablates - Removes the refusal direction from targeted weight matrices using orthogonal projection

Techniques applied: multi-layer, norm-preserving, projected, adaptive-scaling Target layers: 17 of 42 total layers modified Weight targets: o_proj, down_proj

Disclaimer

This model is provided for research purposes only. The abliteration process removes safety alignment, which may result in the model producing harmful or undesirable outputs. Users are responsible for ensuring appropriate use.

HUGGING FACE

上游数据

HF 下载量275
HF 点赞量2

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

SITE STATS

本站统计

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

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

来源与版本

作者
mckerm1t
最近更新
2026/04/12
最新创建
2026/04/11
HF 趋势
未知
数据快照
2026/09/17
版本
未知
许可证
gemma