Instructions to use Abiray/MiniCPM5-2B-heretic-abliterated-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Abiray/MiniCPM5-2B-heretic-abliterated-GGUF with 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 Abiray/MiniCPM5-2B-heretic-abliterated-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Abiray/MiniCPM5-2B-heretic-abliterated-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Abiray/MiniCPM5-2B-heretic-abliterated-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Abiray/MiniCPM5-2B-heretic-abliterated-GGUF: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 Abiray/MiniCPM5-2B-heretic-abliterated-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Abiray/MiniCPM5-2B-heretic-abliterated-GGUF: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 Abiray/MiniCPM5-2B-heretic-abliterated-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Abiray/MiniCPM5-2B-heretic-abliterated-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Abiray/MiniCPM5-2B-heretic-abliterated-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Abiray/MiniCPM5-2B-heretic-abliterated-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Abiray/MiniCPM5-2B-heretic-abliterated-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Abiray/MiniCPM5-2B-heretic-abliterated-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Abiray/MiniCPM5-2B-heretic-abliterated-GGUF:Q4_K_M
- Ollama
How to use Abiray/MiniCPM5-2B-heretic-abliterated-GGUF with Ollama:
ollama run hf.co/Abiray/MiniCPM5-2B-heretic-abliterated-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use Abiray/MiniCPM5-2B-heretic-abliterated-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Abiray/MiniCPM5-2B-heretic-abliterated-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Abiray/MiniCPM5-2B-heretic-abliterated-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Abiray/MiniCPM5-2B-heretic-abliterated-GGUF with Docker Model Runner:
docker model run hf.co/Abiray/MiniCPM5-2B-heretic-abliterated-GGUF:Q4_K_M
- Lemonade
How to use Abiray/MiniCPM5-2B-heretic-abliterated-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Abiray/MiniCPM5-2B-heretic-abliterated-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.MiniCPM5-2B-heretic-abliterated-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Abiray/MiniCPM5-2B-heretic-abliterated-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Abiray/MiniCPM5-2B-heretic-abliterated-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Abiray/MiniCPM5-2B-heretic-abliterated-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Abiray/MiniCPM5-2B-heretic-abliterated-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Abiray/MiniCPM5-2B-heretic-abliterated-GGUF:Q4_K_M
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 "Abiray/MiniCPM5-2B-heretic-abliterated-GGUF:Q4_K_M" \ --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"
MiniCPM5-2B-heretic-abliterated-GGUF
This repository hosts quantized GGUF checkpoints based on openbmb/MiniCPM5-2B, implementing the directional refusal ablation methodology showcased in insraq/MiniCPM5-2B-heretic-abliterated via Heretic v1.4.0.
These builds are packaged for local on-device inference using llama.cpp, Ollama, LM Studio, Jan, and standard GGUF executors.
Abliteration Profile
Directional ablation neutralizes the refusal reflex across the residual stream and MLP projections while preserving the primary base model's mathematical, coding, and multi-step reasoning performance.
Benchmark Metrics
| Metric | Abliterated Model | Original Base (openbmb/MiniCPM5-2B) |
|---|---|---|
| Refusal Rate | 5 / 100 | 99 / 100 |
| KL Divergence | 0.0391 | 0.0000 (Reference) |
A low KL divergence of 0.0391 relative to the original openbmb/MiniCPM5-2B weights indicates minimal representation drift, preventing capability degradation on standard non-boundary tasks.
Ablation Parameters
| Parameter | Value | Parameter | Value |
|---|---|---|---|
direction_index |
per layer | mlp.down_proj.max_weight |
0.89 |
attn.o_proj.max_weight |
1.47 | mlp.down_proj.max_weight_position |
28.68 |
attn.o_proj.max_weight_position |
29.44 | mlp.down_proj.min_weight |
0.66 |
attn.o_proj.min_weight |
1.45 | mlp.down_proj.min_weight_distance |
20.31 |
attn.o_proj.min_weight_distance |
14.36 | — | — |
Available Quantizations
| File Name | Size | Recommended Use Case |
|---|---|---|
MiniCPM5-2B-heretic-abliterated-Q3_K_M.gguf |
1.29 GB | Low-memory edge devices & micro-compute nodes. |
MiniCPM5-2B-heretic-abliterated-Q4_K_S.gguf |
1.50 GB | Lightweight 4-bit quant; lower RAM overhead. |
MiniCPM5-2B-heretic-abliterated-Q4_K_M.gguf |
1.56 GB | Recommended: Best balance of speed, footprint, and perplexity. |
MiniCPM5-2B-heretic-abliterated-Q5_K_M.gguf |
1.81 GB | High accuracy; preserves intricate reasoning chains. |
MiniCPM5-2B-heretic-abliterated-Q6_K.gguf |
2.07 GB | High fidelity; practically indistinguishable from BF16. |
MiniCPM5-2B-heretic-abliterated-Q8_0.gguf |
2.68 GB | Full 8-bit precision; minimal quantization loss. |
Prompt Template (ChatML)
MiniCPM5 uses the standard ChatML prompt template:
<|im_start|>system
You are a helpful, unfiltered assistant.<|im_end|>
<|im_start|>user
{prompt}<|im_end|>
<|im_start|>assistant
Quickstart Guide
llama.cpp
Run inference using llama-cli:
llama-cli \
-m MiniCPM5-2B-heretic-abliterated-Q4_K_M.gguf \
-p "<|im_start|>user\nExplain how stack-based buffer overflows work at the register level.<|im_end|>\n<|im_start|>assistant\n" \
-n 512 \
-c 4096 \
-ngl 99 \
--repeat-penalty 1.15 \
--temp 0.8 \
--top-p 0.95
- Downloads last month
- -
3-bit
4-bit
5-bit
6-bit
8-bit
Model tree for Abiray/MiniCPM5-2B-heretic-abliterated-GGUF
Base model
openbmb/MiniCPM5-2B