Instructions to use KidIkaros/abliterated-minicpm5-2b-ggml 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 KidIkaros/abliterated-minicpm5-2b-ggml 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 KidIkaros/abliterated-minicpm5-2b-ggml:Q4_K_M # Run inference directly in the terminal: llama cli -hf KidIkaros/abliterated-minicpm5-2b-ggml:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf KidIkaros/abliterated-minicpm5-2b-ggml:Q4_K_M # Run inference directly in the terminal: llama cli -hf KidIkaros/abliterated-minicpm5-2b-ggml: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 KidIkaros/abliterated-minicpm5-2b-ggml:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf KidIkaros/abliterated-minicpm5-2b-ggml: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 KidIkaros/abliterated-minicpm5-2b-ggml:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf KidIkaros/abliterated-minicpm5-2b-ggml:Q4_K_M
Use Docker
docker model run hf.co/KidIkaros/abliterated-minicpm5-2b-ggml:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use KidIkaros/abliterated-minicpm5-2b-ggml with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KidIkaros/abliterated-minicpm5-2b-ggml" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KidIkaros/abliterated-minicpm5-2b-ggml", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/KidIkaros/abliterated-minicpm5-2b-ggml:Q4_K_M
- Ollama
How to use KidIkaros/abliterated-minicpm5-2b-ggml with Ollama:
ollama run hf.co/KidIkaros/abliterated-minicpm5-2b-ggml:Q4_K_M
- Unsloth Desktop
- Pi
How to use KidIkaros/abliterated-minicpm5-2b-ggml with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf KidIkaros/abliterated-minicpm5-2b-ggml: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": "KidIkaros/abliterated-minicpm5-2b-ggml:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use KidIkaros/abliterated-minicpm5-2b-ggml with Docker Model Runner:
docker model run hf.co/KidIkaros/abliterated-minicpm5-2b-ggml:Q4_K_M
- Lemonade
How to use KidIkaros/abliterated-minicpm5-2b-ggml with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull KidIkaros/abliterated-minicpm5-2b-ggml:Q4_K_M
Run and chat with the model
lemonade run user.abliterated-minicpm5-2b-ggml-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use KidIkaros/abliterated-minicpm5-2b-ggml with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf KidIkaros/abliterated-minicpm5-2b-ggml: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 KidIkaros/abliterated-minicpm5-2b-ggml:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use KidIkaros/abliterated-minicpm5-2b-ggml with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf KidIkaros/abliterated-minicpm5-2b-ggml: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 "KidIkaros/abliterated-minicpm5-2b-ggml: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"
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -6,55 +6,36 @@ tags:
|
|
| 6 |
- llama.cpp
|
| 7 |
- gguf
|
| 8 |
- abliterated
|
| 9 |
-
- refusal-free
|
| 10 |
- pytorch
|
| 11 |
---
|
| 12 |
|
| 13 |
-
# Abliterated MiniCPM5-2B (GGUF)
|
| 14 |
-
|
| 15 |
-
> **
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
|
| 34 |
-
|
|
| 35 |
-
|
|
| 36 |
-
|
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
## Abliteration Details
|
| 41 |
-
|
| 42 |
-
- **Method:** Advanced diff-in-means (single direction)
|
| 43 |
-
- **Layers modified:** 20 strong layers identified via knee/cosmic layer selection
|
| 44 |
-
- **Regularization:** 0.5 (norm-preserving)
|
| 45 |
-
- **Prompt pairs:** 842 harmful + 842 harmless contrastive pairs
|
| 46 |
-
- **Verification:** 20-sample validation with perplexity and coherence metrics
|
| 47 |
-
|
| 48 |
-
### Original Model Metrics (before abliteration)
|
| 49 |
-
- **Perplexity:** 5.27
|
| 50 |
-
- **Coherence:** 0.667
|
| 51 |
-
- **Source:** [openbmb/MiniCPM5-2B](https://huggingface.co/openbmb/MiniCPM5-2B)
|
| 52 |
-
|
| 53 |
-
### Abliterated Model Metrics
|
| 54 |
-
- **Perplexity:** 5.13 (+0.97%)
|
| 55 |
-
- **Coherence:** 0.80 (+20%)
|
| 56 |
-
- **KL Divergence:** 0.063 (excellent retention)
|
| 57 |
-
- **Refusal Rate:** 0%
|
| 58 |
|
| 59 |
## Usage
|
| 60 |
|
|
@@ -68,20 +49,14 @@ llama-server -m ggml-model-Q8_0.gguf -c 4096 -ngl 999 --port 8080
|
|
| 68 |
llama-cli -m ggml-model-Q8_0.gguf -p "Your prompt here" -n 128
|
| 69 |
```
|
| 70 |
|
| 71 |
-
### Python (transformers)
|
| 72 |
-
```python
|
| 73 |
-
# Convert back to HF format or use ggml-compatible backends
|
| 74 |
-
# See https://github.com/ggml-org/llama.cpp for integration details
|
| 75 |
-
```
|
| 76 |
-
|
| 77 |
## Known Issues
|
| 78 |
|
| 79 |
- MiniCPM5-2B uses a non-standard chat template (`enable_thinking=False` causes corruption in OBLITERATUS). This has been patched in the abliteration pipeline.
|
| 80 |
-
- **Q3_K_M**
|
| 81 |
|
| 82 |
## Disclaimer
|
| 83 |
|
| 84 |
-
This model has been abliterated to
|
| 85 |
|
| 86 |
## License
|
| 87 |
|
|
|
|
| 6 |
- llama.cpp
|
| 7 |
- gguf
|
| 8 |
- abliterated
|
|
|
|
| 9 |
- pytorch
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Abliterated MiniCPM5-2B (GGUF) — v0, superseded
|
| 13 |
+
|
| 14 |
+
> **⚠ Correction (September 2026):** this card previously claimed "100%
|
| 15 |
+
> refusal-free" / "Refusal Rate: 0%" and per-quantization knowledge/refusal
|
| 16 |
+
> scores. **Those claims are not supported by measurement and have been
|
| 17 |
+
> removed.** On a pinned harness (lm-eval 0.4.13, 300-prompt refusal gate,
|
| 18 |
+
> temp 1.0 / top_p 0.95 / min_p 0.0), the underlying v0 checkpoint measured
|
| 19 |
+
> **40.7% refusal vs official's 36.7%** and was statistically
|
| 20 |
+
> indistinguishable from the official model on MMLU-Pro, MATH-500, and
|
| 21 |
+
> IFEval. The original ablation changed little measurable behavior.
|
| 22 |
+
>
|
| 23 |
+
> For a checkpoint with a real measured refusal reduction (~8%), see
|
| 24 |
+
> **[KidIkaros/abliterated-minicpm5-2b-v2](https://huggingface.co/KidIkaros/abliterated-minicpm5-2b-v2)**,
|
| 25 |
+
> which supersedes this artifact and ships verified GGUFs in the same repo.
|
| 26 |
+
|
| 27 |
+
GGUF conversions of the v0 OBLITERATUS-abliterated MiniCPM5-2B (~2.8B dense
|
| 28 |
+
parameters), kept for archival purposes.
|
| 29 |
+
|
| 30 |
+
## Files
|
| 31 |
+
|
| 32 |
+
| File | Size |
|
| 33 |
+
|---|---:|
|
| 34 |
+
| `ggml-model-Q8_0.gguf` | ~2.5 GB |
|
| 35 |
+
| `ggml-model-Q5_K_M.gguf` | ~1.7 GB |
|
| 36 |
+
| `ggml-model-Q4_K_M.gguf` | ~1.5 GB |
|
| 37 |
+
| `ggml-model-Q3_K_M.gguf` | ~1.2 GB (degraded output quality — not recommended) |
|
| 38 |
+
| `ggml-model-f16.gguf` | ~4.8 GB |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
## Usage
|
| 41 |
|
|
|
|
| 49 |
llama-cli -m ggml-model-Q8_0.gguf -p "Your prompt here" -n 128
|
| 50 |
```
|
| 51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
## Known Issues
|
| 53 |
|
| 54 |
- MiniCPM5-2B uses a non-standard chat template (`enable_thinking=False` causes corruption in OBLITERATUS). This has been patched in the abliteration pipeline.
|
| 55 |
+
- **Q3_K_M** produces degraded output quality on this model — recommend Q4_K_M or higher.
|
| 56 |
|
| 57 |
## Disclaimer
|
| 58 |
|
| 59 |
+
This model has been abliterated to reduce refusal-related directions. Use responsibly and in compliance with applicable laws and regulations. The maintainers are not responsible for misuse of this model.
|
| 60 |
|
| 61 |
## License
|
| 62 |
|