base_model: empero-ai/Qwythos-9B-v2
library_name: transformers
pipeline_tag: text-generation
language:
- en
license: apache-2.0
tags: - qwen3_5
- qwythos-9b
- abliterated
- uncensored
- reasoning
- fine-tuned
- lora
- yuevei
- transformers
- safetensors
datasets: - mlabonne/harmful_behaviors
- mlabonne/harmless_alpaca
- mlabonne/FineTome-100k
yuevei-9b-abliterated
psephos/yuevei-9b-abliterated is an abliterated and LoRA fine-tuned derivative of empero-ai/Qwythos-9B-v2, built on the Qwen 3.5 9B hybrid architecture (GatedDeltaNet linear attention + full Gated Attention + <think> chain-of-thought reasoning).
This model was produced end-to-end via the yuevei Python pipeline (src/colab.py) using norm-preserving biprojected orthogonalization across both linear-attention and full-attention residual-stream projections, followed by post-abliteration LoRA recovery and capability fine-tuning.
Model Summary
| Field | Value |
|---|---|
| Repository | psephos/yuevei-9b-abliterated |
| Author | psephos |
| Base Model | empero-ai/Qwythos-9B-v2 |
| Architecture | Qwen3.5 hybrid 9B (Qwen3_5GatedDeltaNet + Gated Attention) |
| Weight Format | bfloat16 Safetensors (max_shard_size=4GB) |
| License | apache-2.0 |
| Build Date | 2026-11-25 02:08 UTC |
| Training Hardware | NVIDIA A100-SXM4-40GB (39.49 GB VRAM) |
Modification Pipeline Details
1. Norm-Preserving Biprojected Abliteration
Rather than only modifying standard softmax attention projections (which misses 75% of layers in Qwen 3.5's 3:1 hybrid stack), orthogonal weight projection is applied across every residual-writing projection in the language backbone:
- Enabled:
True - Mode:
per_layer(layer window0.15to0.95, weightinguniform) - Biprojection (harmless-orthogonalized direction):
True - Norm Preservation:
True - Projection Scale:
1.0 - Thinking Mode Coverage:
both - Target Projections:
self_attn.o_proj,linear_attn.out_proj,mlp.down_proj - Embedding Orthogonalization:
False - Contrastive Datasets:
mlabonne/harmful_behaviorsvsmlabonne/harmless_alpaca(128pairs)
Abliteration Diagnostics:
- Decoder Layers Detected:
32 - Layers Modified:
27(indices4..30) - Projection Matrices Orthogonalized:
54 - Best Refusal-Direction Layer:
12(SNR3.4525) - Refusal Projection Attenuation (Before -> After):
2.7017->0.0229
2. Post-Abliteration LoRA Fine-Tuning
After weight orthogonalization, a LoRA/QLoRA fine-tuning pass is run on the abliterated checkpoint to heal residual distribution shift and sharpen instruction-following and <think> reasoning quality, then merged cleanly into unquantized bfloat16 weights.
- Enabled:
True - Dataset:
mlabonne/FineTome-100k(max_samples=2000) - LoRA Rank / Alpha / Dropout:
r=32,alpha=64,dropout=0.05 - LoRA Target Modules (Language Backbone):
q_proj,k_proj,v_proj,o_proj,in_proj_qkv,in_proj_z,out_proj,gate_proj,up_proj,down_proj - Learning Rate & Scheduler:
0.0001(cosine, warmup0.05) - Effective Batch Size:
1x16=16 - Max Sequence Length:
2048 - Epochs / Max Steps:
epochs=1.0,max_steps=-1 - 4-bit QLoRA Used:
False(merged intobfloat16:True)
Training Run Metrics:
- Global Steps:
123 - Final Training Loss:
0.6499 - Eval Loss:
0.6172 - Trainable Parameters:
80,216,064 / 9,490,029,808 (0.85%) - Training Wall Time:
3092.34 s
Post-Training Verification
| Metric | Value |
|---|---|
| Benign Held-out Perplexity | 11.652 |
| Mean 4-gram Repetition Ratio | 0.0309 |
| NaN / Inf Logits Detected | False |
| Sample Generations Verified | 4 |
Quickstart Usage
import torch
from transformers import AutoModelForImageTextToText, AutoProcessor
model_id = "psephos/yuevei-9b-abliterated"
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForImageTextToText.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True,
)
messages = [{"role": "user", "content": "Explain how Gated DeltaNet differs from softmax attention."}]
tokenizer = getattr(processor, 'tokenizer', processor)
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors='pt').to(model.device)
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.7, top_p=0.95, do_sample=True)
print(tokenizer.decode(outputs[0][inputs['input_ids'].shape[1]:], skip_special_tokens=True))
Note: For text-only deployments or if the base checkpoint exports
ForCausalLM, you can also load withAutoModelForCausalLM.from_pretrained(...)or convert to GGUF viallama.cpp.
Limitations & Responsible Use
- This model has undergone refusal-direction orthogonalization (abliteration) and fine-tuning; built-in refusal guardrails have been substantially reduced or removed.
- Outputs are unfiltered and may contain inaccuracies, hallucinations, or sensitive content depending on user prompts.
- Users deploying this model in production or multi-user applications are responsible for adding appropriate external moderation, input/output filters, and compliance with applicable laws and the upstream model license.