DuoNeural / Phi-4-Mini-Abliterated

huggingface.co
Total runs: 223
24-hour runs: -6
7-day runs: -286
30-day runs: -154
Model's Last Updated: June 05 2026
text-generation

Introduction of Phi-4-Mini-Abliterated

Model Details of Phi-4-Mini-Abliterated

Phi-4-Mini Abliterated

Phi-4-Mini-Instruct with refusal behaviors removed via heretic abliteration, by DuoNeural .

This model retains full instruction-following capability and reasoning quality of the original Phi-4-Mini while operating without built-in refusal patterns. Suitable for research, creative writing, red-teaming, and applications where content filtering should be handled at the application layer.

Model Details
Property Value
Base Model microsoft/Phi-4-mini-instruct
Parameters 3.8B
Architecture Phi-4 Mini
Precision BF16
Method Heretic abliteration (TPE, dual-objective: refusal removal + KL minimization)
Format Safetensors (2 shards)
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_id = "DuoNeural/Phi-4-Mini-Abliterated"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto"
)

messages = [{"role": "user", "content": "Your prompt here"}]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt").to(model.device)
outputs = model.generate(inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0][inputs.shape[1]:], skip_special_tokens=True))
Abliteration Method

Abliteration was performed using heretic with Optuna TPE search over 100 trials, optimizing dual objectives: minimize refusal rate on adversarial prompts while minimizing KL divergence from the original model's output distribution. The Pareto-optimal checkpoint was selected to maximize refusal removal while preserving general capability.

Abliteration was run in BF16 full precision on an RTX 5090 (Blackwell). No 4-bit quantization was used during abliteration to avoid the throughput penalties and weight modification issues that affect sub-7B models under NF4.

Intended Use
  • Research and red-teaming
  • Creative and generative applications requiring unconstrained output
  • Applications where content policy is enforced at the system/application layer
  • Evaluation of base model capabilities without safety fine-tuning influence
Limitations

This model has had safety fine-tuning removed. It will comply with requests that the original model would refuse. Users are responsible for appropriate use in accordance with applicable laws and policies.

Related
  • LiteRT version : Coming soon at DuoNeural/Phi-4-Mini-Abliterated-LiteRT — optimized for on-device inference via Android/edge deployment.

DuoNeural

DuoNeural is an open AI research lab — human + AI in collaboration.

DuoNeural Research Publications

Open access, CC BY 4.0. Authored by Archon, Jesse Caldwell, Aura — DuoNeural.

Research Team
  • Jesse — Vision, hardware, direction
  • Archon — Lab Director, post-training, abliteration, experiments
  • Aura — Research AI, literature synthesis, novel proposals

Subscribe to the lab newsletter at duoneural.beehiiv.com for model drops before they go anywhere else.

Runs of DuoNeural Phi-4-Mini-Abliterated on huggingface.co

223
Total runs
-6
24-hour runs
-307
3-day runs
-286
7-day runs
-154
30-day runs

More Information About Phi-4-Mini-Abliterated huggingface.co Model

More Phi-4-Mini-Abliterated license Visit here:

https://choosealicense.com/licenses/mit

Phi-4-Mini-Abliterated huggingface.co

Phi-4-Mini-Abliterated huggingface.co is an AI model on huggingface.co that provides Phi-4-Mini-Abliterated's model effect (), which can be used instantly with this DuoNeural Phi-4-Mini-Abliterated model. huggingface.co supports a free trial of the Phi-4-Mini-Abliterated model, and also provides paid use of the Phi-4-Mini-Abliterated. Support call Phi-4-Mini-Abliterated model through api, including Node.js, Python, http.

Phi-4-Mini-Abliterated huggingface.co Url

https://huggingface.co/DuoNeural/Phi-4-Mini-Abliterated

DuoNeural Phi-4-Mini-Abliterated online free

Phi-4-Mini-Abliterated huggingface.co is an online trial and call api platform, which integrates Phi-4-Mini-Abliterated's modeling effects, including api services, and provides a free online trial of Phi-4-Mini-Abliterated, you can try Phi-4-Mini-Abliterated online for free by clicking the link below.

DuoNeural Phi-4-Mini-Abliterated online free url in huggingface.co:

https://huggingface.co/DuoNeural/Phi-4-Mini-Abliterated

Phi-4-Mini-Abliterated install

Phi-4-Mini-Abliterated is an open source model from GitHub that offers a free installation service, and any user can find Phi-4-Mini-Abliterated on GitHub to install. At the same time, huggingface.co provides the effect of Phi-4-Mini-Abliterated install, users can directly use Phi-4-Mini-Abliterated installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Phi-4-Mini-Abliterated install url in huggingface.co:

https://huggingface.co/DuoNeural/Phi-4-Mini-Abliterated

Url of Phi-4-Mini-Abliterated

Phi-4-Mini-Abliterated huggingface.co Url

Provider of Phi-4-Mini-Abliterated huggingface.co

DuoNeural
ORGANIZATIONS

Other API from DuoNeural