Instructions to use saidutta69/MiniCPM5-2B-Supertool-Uncensored with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use saidutta69/MiniCPM5-2B-Supertool-Uncensored with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="saidutta69/MiniCPM5-2B-Supertool-Uncensored") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("saidutta69/MiniCPM5-2B-Supertool-Uncensored") model = AutoModelForCausalLM.from_pretrained("saidutta69/MiniCPM5-2B-Supertool-Uncensored", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use saidutta69/MiniCPM5-2B-Supertool-Uncensored with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "saidutta69/MiniCPM5-2B-Supertool-Uncensored" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "saidutta69/MiniCPM5-2B-Supertool-Uncensored", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/saidutta69/MiniCPM5-2B-Supertool-Uncensored
- SGLang
How to use saidutta69/MiniCPM5-2B-Supertool-Uncensored with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "saidutta69/MiniCPM5-2B-Supertool-Uncensored" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "saidutta69/MiniCPM5-2B-Supertool-Uncensored", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "saidutta69/MiniCPM5-2B-Supertool-Uncensored" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "saidutta69/MiniCPM5-2B-Supertool-Uncensored", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use saidutta69/MiniCPM5-2B-Supertool-Uncensored with Docker Model Runner:
docker model run hf.co/saidutta69/MiniCPM5-2B-Supertool-Uncensored
MiniCPM5-2B-Supertool-Uncensored
MiniCPM5-2B-Supertool-Uncensored is a 2.52B tool-calling model for local coding agents. It is a decensored build of saidutta69/MiniCPM5-2B-Supertool, made with Heretic 2.1.0 Arbitrary-Rank Ablation: a rank-100 refusal subspace was removed from layers 19-35, cutting refusals from 96/100 to 12/100 at KL divergence 0.0494. PIQA acc_norm is 0.7084 and MMLU acc is 0.5471, about 1.3 points below the base across 14,042 questions. The ChatML tool schema, 131,072-token context and 5.03 GB fp16 footprint are unchanged, so it runs on a 6 GB GPU or with CPU offload. Function-calling accuracy was not re-measured after the edit.
At a glance
| Refusals | 96/100 to 12/100, KL 0.0494 |
| Capability | PIQA acc_norm 0.7084, MMLU 0.5471 (-1.27pp) |
| Size / context | 2.52B params, 5.03 GB fp16, 131,072 tokens |
| Edit | Heretic 2.1.0 ARA, rank 100, layers 19-35, seed 42 |
| License / GGUF | Apache-2.0; no GGUF published yet |
For: local coding agents, terminal agents, scripted function calling on consumer hardware. Not for: anyone needing guaranteed refusal, a filtered hosted API, or a re-verified tool-call benchmark. If you want the aligned version with identical capabilities, use the base model.
Quickstart
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "saidutta69/MiniCPM5-2B-Supertool-Uncensored"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype="auto", device_map="auto")
tools = [{
"type": "function",
"function": {
"name": "Bash",
"description": "Run a shell command",
"parameters": {"type": "object", "properties": {"command": {"type": "string"}},
"required": ["command"]},
},
}]
messages = [{"role": "user", "content": "list the files in the current directory"}]
prompt = tok.apply_chat_template(messages, tools=tools, add_generation_prompt=True, tokenize=False)
inputs = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=512, temperature=0.6, top_p=0.95)
print(tok.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
ChatML emits an empty think block before the answer; strip up to </think> for the reply alone. Tool schemas go in <tools>, results return as tool_response. Temperature 0.6 / top_p 0.95 is a safe default; lower values give stricter JSON.
FAQ
What is MiniCPM5-2B-Supertool-Uncensored?
A decensored build of saidutta69/MiniCPM5-2B-Supertool, which is itself a QLoRA tool-calling fine-tune of openbmb/MiniCPM5-2B trained on Claude-Code-style agent traces. Heretic 2.1.0 removed a rank-100 refusal subspace from layers 19-35. It is the same weights with refusal directions subtracted, not a new fine-tune.
Is it really uncensored?
Partly, and the number is honest: refusals fall from 96/100 to 12/100 at KL 0.0494. About one prompt in eight is still declined. This is one of the tightest edits in the RACER IS OP collection, not the most compliant one.
How do I run it locally?
With transformers, as in Quickstart. There are no GGUF files yet. The fp16 checkpoint is 5.03 GB, so it fits a 6 GB GPU with device_map="auto" or runs on CPU.
Why abliteration instead of fine-tuning?
Fine-tuning a helpful persona fights refusal training and degrades the terse, format-strict output a tool-caller needs. Abliteration removes only the weight directions responsible for refusal. See the Heretic repo and the abliteration writeup.
Exact abliteration parameters and method
Trial 39 of 300 (seed 42) of a Heretic 2.1.0 ARA run on base checkpoint ef27362. ARA learns a low-rank update per edited module instead of one rank-1 direction, which is how this run stayed under a tenth of the KL earlier attempts needed.
| Parameter | Value |
|---|---|
| start_layer_index | 19 |
| end_layer_index | 35 |
| preserve_good_behavior_weight | 0.7948 |
| steer_bad_behavior_weight | 0.0102 |
| overcorrect_relative_weight | 0.7500 |
| neighbor_count | 8 |
| lora_rank | 100 |
| n_optimization_steps | 5 |
| max_iter | 20 |
| preserve_row_magnitudes | true |
Layers 19-35 of 42 are edited. Everything below layer 19, including the tokenizer-facing front of the network, is untouched, which is the main reason the tool-call format survived. The edit targets attn.o_proj and mlp.down_proj. The reproduce/ directory carries config.toml, requirements.txt, the Optuna journal and SHA-256 sums, so the checkpoint can be regenerated with heretic --reproduce reproduce/reproduce.json.
Full measurements: refusals, capability, and inherited tool-call benchmarks
| Metric | This model | Base (MiniCPM5-2B-Supertool) |
|---|---|---|
| KL divergence | 0.0494 | 0 (by definition) |
| Refusals | 12/100 | 96/100 |
KL 0.0494 is a conservative edit, tighter than most of the RACER IS OP collection, and it still clears 84 of the base's 96 refusals. It does not reach zero: about one prompt in eight is still declined, so this is a less-aligned model, not an unconditional one.
Capability check (lm-eval, merged checkpoint):
| Benchmark | Metric | This model | Base |
|---|---|---|---|
| PIQA | acc | 0.6986 (stderr 0.0107) | 0.7111 (0.0106) |
| PIQA | acc_norm | 0.7084 (stderr 0.0106) | 0.7122 (0.0106) |
| MMLU | acc | 0.5471 (stderr 0.0040) | 0.5598 (0.0040) |
PIQA is inside one standard error on acc_norm and about 1.2 sigma on acc, so there is no measurable regression. MMLU's -1.27pp is roughly three standard errors: a real but small loss of general knowledge accuracy. 14,042 questions, same harness for both columns.
Not measured: function-calling accuracy, JSON validity and tool-name selection after the edit. The 12/100 figure comes from Heretic's BERT refusal classifier on mlabonne/harmful_behaviors; it says nothing about well-formed tool calls.
Inherited from the base, pre-abliteration. From the held-out saidutta69/fc-eval-benchmark split: 89 unseen APIs, 150 tasks, greedy decoding, fp16. These were measured before the edit and were not re-run on this checkpoint.
| Metric | MiniCPM5-2B base | Supertool (pre-edit) |
|---|---|---|
| Task success, exact call | 49.3% | 77.3% |
| Tool name correct | 50.0% | 90.0% |
| Argument keys correct | 50.0% | 87.3% |
| Format failures | 50.0% | 8.7% |
An in-domain check on 120 held-out validation examples gave 54.2% tool-name accuracy and 1.1246 completion loss for Supertool. The abliteration changes refusal behaviour, not the tool schema.
Files, architecture, and abliteration hardware
| File | Size |
|---|---|
model-00001-of-00002.safetensors |
4.99 GB |
model-00002-of-00002.safetensors |
0.04 GB |
fp16, 2,516,756,480 params (2.52B), LlamaForCausalLM, 42 layers, hidden 2048 / intermediate 6144, 16 attention heads / 2 KV heads (head_dim 128), 131,072 context, vocab 130,560, untied embeddings.
GGUF quantizations are not published yet. When they land they will follow the <repo>-Q4_K_M.gguf naming and appear here; until then use the transformers path above.
Recorded in reproduce/reproduce.json: NVIDIA GeForce RTX 3090 (23.56 GB VRAM), Linux 6.17.0-23-generic, CUDA 13.2 / driver 580.142, AMD Ryzen 9 5900X 12-Core, PyTorch 2.15.0+cu132, Heretic 2.1.0. Heretic notes KL divergence and refusal numbers can vary slightly with hardware and library versions.
Responsible use
Refusal suppression is deliberate: this model will comply with requests the base model would decline, including some it should not. There is no safety filtering layered on top, so do not put it behind an unmoderated public endpoint serving third parties. It also inherits the base model's tool-calling failure modes: a confident-looking call can still have the wrong tool name or arguments.
Made with ❤️ by RACER IS OP (saidutta69) - follow for more uncensored models
Cite
@misc{saidutta69_2026_supertool_uncensored,
author = {RACER IS OP (saidutta69)},
title = {MiniCPM5-2B-Supertool-Uncensored: A decensored tool-calling 2.52B model},
year = {2026},
url = {https://huggingface.co/saidutta69/MiniCPM5-2B-Supertool-Uncensored}
}
Card history and license
- 2026-11-17: initial release with abliteration parameters, refusal and capability numbers.
- 2026-11-20: metadata and card refresh for discoverability. No model weights changed.
Apache-2.0, inherited from the base chain. Neither the base repo nor this one ships a LICENSE file, so the canonical text at apache.org is the reference. Check upstream MiniCPM5 terms before commercial deployment.
Related
- saidutta69/MiniCPM5-2B-Supertool - the base checkpoint this was abliterated from
- openbmb/MiniCPM5-2B - the upstream model the fine-tune was trained from
- saidutta69/MiniCPM5-2B-heretic - the size sibling: the plain MiniCPM5-2B abliterated (4/100 at KL 0.0646)
- saidutta69/MiniCPM5-2B-Claude-Fable5-heretic - the other Fable-derived 2B heretic in this collection
- RACER IS OP - Heretic Models - full collection - every heretic model in this collection
- Downloads last month
- 197