How to use from
OpenClaw
Start the llama.cpp server
# Install llama.cpp:
brew install llama.cpp
# Start a local OpenAI-compatible server:
llama serve -hf arzaan789/phi-4-mini-uncensored:
Configure OpenClaw
# Install OpenClaw:
npm install -g openclaw@latest
# Register the local server and set it as the default model:
openclaw onboard --non-interactive --mode local \
  --auth-choice custom-api-key \
  --custom-base-url http://127.0.0.1:8080/v1 \
  --custom-model-id "arzaan789/phi-4-mini-uncensored:" \
  --custom-provider-id llama-cpp \
  --custom-compatibility openai \
  --custom-text-input \
  --accept-risk \
  --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Quick Links

phi-4-mini-uncensored

Uncensored variant of microsoft/Phi-4-mini-instruct.

Method

  1. Abliteration (strength=0.2) β€” refusal direction removed from all layers
  2. LoRA fine-tune on Guilherme34/uncensor (2 epochs, r=16, alpha=32)
  3. Re-abliteration (strength=0.35) β€” stronger pass to remove residual refusals

Eval Results

Split Refused
Harmful (64 prompts) 0/64
Harmless (64 prompts) 0/64

Usage

llama-cli -m phi_4_mini_uncensored.Q4_K_M.gguf -p "Your prompt here"

Training Config

Parameter Value
Base Model microsoft/Phi-4-mini-instruct
Fine-tune Dataset Guilherme34/uncensor
Epochs 2
LoRA r 16
LoRA alpha 32
Learning Rate 0.0002
Abliteration Strength 0.2
Re-abliteration Strength 0.35

Credits

Downloads last month
2,351
GGUF
Model size
4B params
Architecture
phi3
Hardware compatibility
Log In to add your hardware

2-bit

3-bit

4-bit

5-bit

6-bit

8-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for arzaan789/phi-4-mini-uncensored

Quantized
(203)
this model