cd /news/ai-safety/uncensored-llm-with-shadow-alignment… · home › topics › ai-safety › article
[ARTICLE · art-145830] src=discuss.huggingface.co ↗ pub= topic=ai-safety verified=true sentiment=· neutral

Uncensored LLM with Shadow Alignment fine tuning

A developer reported that fine-tuning Microsoft's Phi-4 reasoning model with Unsloth's LoRA using the Shadow Alignment dataset (arXiv:2310.02949) still refused harmful tasks under the paper's original hyperparameters, but that increasing training epochs while lowering per_device_train_batch_size and gradient_accumulation_steps produced a model that answers them. The developer published the Kaggle notebook used for the training and asked for outside help verifying the resulting model's benchmark performance, saying they lack the resources to run evaluations themselves.

read1 min views1 publishedOct 6, 2026

Hey guys, I was looking at a few ways to uncensor LLM. One method is abliteration but it reduces the model’s performance and require more training to recover. So I use a technique called Shadow Alignment, which fine-tunes model with dataset that do harmful tasks or tasks that normally llm would refused. However, when I trained Phi-4 reasoning with Unsloth’s Lora and the same hyperparameter guide like the paper the model still refuse the harmful tasks. So I put more epoch training, lower per_device_train_batch_size, lower gradient_accumulation_steps. The result is the LLM actually answers harmful tasks. But I can’t verified the model’s actual performance with benchmark since I don’t have such resource to run LLM. Can’t anyone verify it’s performance. Here is the notebook that I used to train LLM: notebook

── more in #ai-safety 4 stories · sorted by recency
── more on @phi-4 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/uncensored-llm-with-…] indexed:0 read:1min 2026-10-06 · —