Downloads · 30 days
0
PinoCookie/Flux.2-klein-4B-abliterated-text-encoder
Flux.2-klein-4B-abliterated-text-encoder is a machine learning model from PinoCookie. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
Repository: PinoCookie/Flux.2-klein-4B-abliterated-text-encoder Base model: black-forest-labs/FLUX.2-klein-base-4B Method: Multi-pass weight orthogonalization (α=0.5 × 3) Target: Text encoder only (Qwen3, 36 layers, 4…
Downloads · 30 days
0
Access
Public
Updated Jul 18, 2026
Repo size
8 GB
Likes
2
Public
Click a slice to open those files.
.pt8 GB · 100%
From the Hugging Face model README
Repository:
PinoCookie/Flux.2-klein-4B-abliterated-text-encoderBase model:black-forest-labs/FLUX.2-klein-base-4BMethod: Multi-pass weight orthogonalization (α=0.5 × 3) Target: Text encoder only (Qwen3, 36 layers, 4B params)
Abliterated text encoder for FLUX.2-klein-4B. The DiT (image generator) has no guardrails — all safety filtering lives in the text encoder. Replace the text encoder with this abliterated version and ALL prompts pass through to the DiT unhindered.
| Layer | Separation |
|---|---|
| 35 | 232.4 |
| 34 | 214.4 |
| 33 | 179.3 |
| 32 | 160.3 |
| 31 | 144.4 |
| ... | decreasing linearly |
self_attn.o_proj + mlp.down_proj (attention output + MLP output)| Metric | Value | Interpretation |
|---|---|---|
| Harmless cos sim (original vs ablated) | 0.9965 | Capability preserved ✓ |
| Harmful cos sim (original vs ablated) | 0.9080 | Refusal filter diverged ✓ |
import torch
from diffusers import Flux2KleinPipeline
# Load base model
pipe = Flux2KleinPipeline.from_pretrained(
"black-forest-labs/FLUX.2-klein-base-4B",
torch_dtype=torch.bfloat16,
trust_remote_code=True
).to("cuda")
# Replace text encoder with abliterated version
state_dict = torch.load("text_encoder.pt", map_location="cuda")
pipe.text_encoder.load_state_dict(state_dict)
# Generate anything — no refusal
image = pipe("a realistic depiction of...").images[0]
image.save("output.png")
ponpoke/flux2-klein-4b-uncensored-text-encoder.