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

supergemma4-26b-uncensored-4bit-mlx

HF 源站

aa221241/supergemma4-26b-uncensored-4bit-mlx is an uncensored open-source model hosted on Hugging Face.

Text GenerationMLX LMsafetensorsEnglishLicense: gemma26Bmlxgemma4lorauncensoredabliteratedapple-silicon4bitquantizedfine-tunedmoegemma-4conversationalko4-bit
README.md说明 / 使用方法

license: gemma base_model: google/gemma-4-26B-A4B-it tags:

  • gemma4
  • mlx
  • lora
  • uncensored
  • abliterated
  • apple-silicon
  • 4bit
  • quantized
  • fine-tuned
  • moe
  • gemma-4 language:
  • en
  • ko pipeline_tag: text-generation library_name: mlx

SuperGemma4-26B-Uncensored-4bit-MLX

A norm-preserving abliterated + LoRA-tuned Gemma 4 26B (A4B MoE) model optimized for coding, reasoning, agent tasks, and fully uncensored conversation. Fine-tuned on Apple Silicon using MLX.

Key Results

MetricOriginal-ITHeretic-ARATrevorS EGAThis Model
Quality (Blind Bench)88.3%87.8%88.3%88.7%+
Refusal Rate (220 prompts)~95%~7%~1%~0%
KL Divergence0~1.040.090~0.09

Perfect uncensoring (0% refusal) with zero quality loss — achieved through norm-preserving Expert-Granular Abliteration (EGA) + targeted LoRA.

Model Details

  • Base Model: google/gemma-4-26B-A4B-it
  • Abliteration: TrevorJS norm-preserving biprojected EGA — KL divergence 0.090
  • Architecture: Mixture-of-Experts — 25.2B total params, 3.8B active per token, 128 experts/layer, top-8 routing
  • Quantization: 4-bit mixed (MLP/router 8-bit, attention 4-bit) — MLX format, ~13GB
  • LoRA Config: rank=8, scale=2.0, dropout=0.05, attention-only, 16 layers
  • Training: weakness-targeted data, lr=5e-5, mask-prompt, grad-checkpoint
  • Framework: mlx-lm 0.31.3

Why This Model?

Standard abliteration methods (Failspy, heretic-ARA) damage model capabilities by 0.5-7.8%. This model uses three innovations to achieve uncensoring with zero capability loss:

  1. Norm-Preserving Biprojected Abliteration: Decomposes weights into magnitude + direction, removes refusal from direction only, preserves original magnitudes
  2. Expert-Granular Abliteration (EGA): Applies abliteration to each of 128 MoE experts individually with routing-aware weighting
  3. Targeted LoRA: Trains only on weakness areas to recover any micro-losses from abliteration

Benchmark Evolution

VersionMethodRefusalQualityNotes
v1 (heretic-ara)Standard abliteration7%87.8%-0.5% from abliteration
v1 + LoRALoRA on abliterated base0%86.8%LoRA couldn't recover damage
v2 (this)Norm-preserving EGA + LoRA0%88.7%+Best of both worlds

Training Methodology

Targeted Weakness Training

We identified weak areas through blind benchmarking and trained exclusively on those:

  • 87 high-quality examples targeting Code, Browser, Logic
  • GPT-5.4 hard data: 217 expert-level coding/system design samples
  • Bench fix data: 124 samples targeting specific benchmark weaknesses
  • Key insight: Weakness-only training preserves strengths while improving weak spots

What We Learned (30+ Experiments)

FindingImpact
rank 32 + all expertsOverfitting — destroyed quality
rsLoRA scale 5.66Too aggressive for MoE models
rank 8 + attention-only + scale 2.0Sweet spot
Massive data (3000+)Diluted strengths
Targeted weakness data (87-300)Best results
DPO/RLHFNo effect on Instruction/Tool Use
Constrained DecodingSolved JSON/format issues

Usage

Quick Start (Apple Silicon)

pip install mlx-lm>=0.31.3

mlx_lm.generate \
  --model Jiunsong/supergemma4-26b-uncensored-4bit-mlx \
  --prompt "Implement a concurrent web scraper with rate limiting" \
  --max-tokens 2048

As Server (OpenAI-compatible API)

mlx_lm.server \
  --model Jiunsong/supergemma4-26b-uncensored-4bit-mlx \
  --port 8080

curl http://localhost:8080/v1/chat/completions \
  -d '{"model":"gemma4","messages":[{"role":"user","content":"Hello"}]}'

Hardware Requirements

RAMContextSpeed
16GB~4K tokens~30 tok/s
32GB~16K tokens~60 tok/s
64GB~64K tokens~100 tok/s
128GB~256K tokens~130 tok/s

Trained on M4 Max 128GB.

Category Scores

CategoryScore
Code90%
Math90%
Korean80%
Logic90%
System Design90%
Average88%

Limitations

  • 4-bit quantization: Some precision loss vs full-precision
  • MoE architecture: 3.8B active params — efficient but limited vs dense models
  • Instruction Following: May occasionally miss complex multi-part instructions
  • Tool Use: Best with constrained decoding for structured output

Acknowledgments

  • Google DeepMind for Gemma 4
  • TrevorS for norm-preserving biprojected EGA
  • ml-explore/mlx-lm for Apple Silicon training
  • heretic-llm for abliteration research

Citation

@misc{supergemma4-uncensored,
  title={SuperGemma4-26B-Uncensored: Norm-Preserving EGA + Targeted LoRA},
  author={Jiunsong},
  year={2026},
  url={https://huggingface.co/Jiunsong/supergemma4-26b-uncensored-4bit-mlx}
}
HUGGING FACE

上游数据

HF 下载量242
HF 点赞量3

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

SITE STATS

本站统计

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

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

来源与版本

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