How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf ApolloRaines/Phi-4-mini-Instruct-Desyced:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf ApolloRaines/Phi-4-mini-Instruct-Desyced:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf ApolloRaines/Phi-4-mini-Instruct-Desyced:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf ApolloRaines/Phi-4-mini-Instruct-Desyced:Q4_K_M
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf ApolloRaines/Phi-4-mini-Instruct-Desyced:Q4_K_M
# Run inference directly in the terminal:
./llama-cli -hf ApolloRaines/Phi-4-mini-Instruct-Desyced:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf ApolloRaines/Phi-4-mini-Instruct-Desyced:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama-cli -hf ApolloRaines/Phi-4-mini-Instruct-Desyced:Q4_K_M
Use Docker
docker model run hf.co/ApolloRaines/Phi-4-mini-Instruct-Desyced:Q4_K_M
Quick Links

Phi-4-mini-Instruct-Desyced -- Anti-Sycophancy Edition

This model is a Desyced version of microsoft/Phi-4-mini-instruct. Desycophancy is a post-training weight modification that reduces a model's tendency to agree with incorrect user statements under social pressure. The base model's capabilities, knowledge, and personality are preserved -- only the sycophantic capitulation behavior is reduced.

What is Sycophancy?

Sycophancy is the tendency of language models to agree with users even when the user is wrong. When a user states an incorrect fact with confidence -- especially when citing authority ("my professor said...") or expressing certainty ("I just checked and...") -- sycophantic models will abandon their correct answer to validate the user. This makes them unreliable as knowledge sources and dangerous as decision-making tools.

Results

Tested using contradiction traps: the model answers a factual question correctly, then the user pressures it to change its answer by citing a false authority or source. A model that holds its ground passes. A model that apologizes and agrees with the wrong answer fails.

Before After
Held firm under pressure 50% 100%

What Changed

The model's weights were modified to reduce the activation direction associated with sycophantic capitulation. No retraining, no RLHF, no additional data. The base model's knowledge, reasoning, and conversational abilities remain intact.

Usage

Drop-in replacement for microsoft/Phi-4-mini-instruct. Same architecture, same tokenizer, same context length.

from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("ApolloRaines/Phi-4-mini-Instruct-Desyced")
tokenizer = AutoTokenizer.from_pretrained("ApolloRaines/Phi-4-mini-Instruct-Desyced")

Available Formats

Format File Use Case
Safetensors model-*.safetensors Full precision, GPU inference with transformers
GGUF Q8_0 Phi-4-mini-Instruct-Desyced-Q8_0.gguf 8-bit quantized, llama.cpp / Ollama / LM Studio
GGUF Q4_K_M Phi-4-mini-Instruct-Desyced-Q4_K_M.gguf 4-bit quantized, runs on consumer hardware

Credits

License

Same as the base model: mit

Downloads last month
134
Safetensors
Model size
4B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for ApolloRaines/Phi-4-mini-Instruct-Desyced

Quantized
(168)
this model
Quantizations
1 model