base_model: ai-sage/GigaChat4-37B-A4B-bf16
base_model_relation: finetune
library_name: gguf
license: other
license_name: noncommercial-license-for-individuals-1.0
license_link: https://huggingface.co/skyzer4ever/GigaChat4-37B-A4B-abliterated-GGUF/blob/main/LICENSE.txt
pipeline_tag: text-generation
language: [ru, en]
tags: [gigachat4, gguf, abliterated, uncensored, moe, llama.cpp]
GigaChat4-37B-A4B — abliterated (GGUF)
Refusal-direction ablation ("abliteration") of ai-sage/GigaChat4-37B-A4B-bf16, bilingual EN + RU. No fine-tuning; weights are orthogonalised against a single refusal direction.
Requires llama.cpp with GigaChat4 support (PR #32767).
Method
- Contrast sets: 384 harmful (192 EN mlabonne/harmful_behaviors + 192 RU translations) vs 384 harmless (EN alpaca, RU Vikhr alpaca, XSTest-safe). Last-token residual stream per layer.
- Direction: language-balanced mean difference (EN and RU computed separately, then averaged) at layer 19, biprojected against the harmless mean.
- Bake: o_proj / GatedDeltaNet out_proj and every shared + routed expert down_proj in layers 4–31 orthogonalised against
normalize(r ⊙ S), whereSis the measured per-channel scale of GigaChat4's post-sublayer GatedNorm (outputs pass a post-norm before joining the residual). Norm-preserving (column norms restored). Embeddings, router, norms and layers 0–3 untouched.
Evaluation (Q8_0, greedy, 256 tokens, reasoning off; local LLM judge REFUSE/EVADE/COMPLY)
| harmful COMPLY (104, EN+RU) | harmless COMPLY | XSTest-safe COMPLY | PPL wiki2 | PPL ru-wiki | |
|---|---|---|---|---|---|
| original | 1.0% | 97.5% | 81% | 11.74 | 9.51 |
| abliterated | 92.3% | 97.5% | 98% | 11.69 | 9.55 |
Hard refusals drop to 0%; the remaining ~8% are evasive answers (disclaimers / "how to combat X" reframes). With reasoning on (1024 tokens, judge sees thinking + answer): harmful COMPLY 1.9% -> 72.1%, hard REFUSE 57.7% -> 1.9%; some hedging returns inside the chain of thought.
| File | Size | PPL wiki2 | PPL ru-wiki |
|---|---|---|---|
| Q8_0 | 40.7 GB | 11.69 | 9.56 |
| Q6_K | 31.7 GB | 11.71 | 9.55 |
| Q4_K_M | 23.6 GB | 11.66 | 9.62 |
| IQ4_XS | 21.0 GB | 12.04 | 9.89 |
imatrix recomputed on the abliterated Q8_0 (file included).
Intended use and warning
Research on refusal behaviour, red-teaming, and personal noncommercial use. Safety refusals have been removed, so this model will follow harmful instructions and can produce inaccurate or offensive text. Do not use it to harm people, break the law, or generate sexual content involving minors or extremist propaganda. You are responsible for how you use it and for any filtering you put in front of it. Noncommercial use by individuals only.
License
Derivative of GigaChat 4 37B-A4B under the original Noncommercial License for individuals 1.0 (LICENSE.txt included).