Instructions to use orcarouter/Inkling-2-Mini-abliterated with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use orcarouter/Inkling-2-Mini-abliterated with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="orcarouter/Inkling-2-Mini-abliterated") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("orcarouter/Inkling-2-Mini-abliterated") model = AutoModelForMultimodalLM.from_pretrained("orcarouter/Inkling-2-Mini-abliterated", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use orcarouter/Inkling-2-Mini-abliterated with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "orcarouter/Inkling-2-Mini-abliterated" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "orcarouter/Inkling-2-Mini-abliterated", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/orcarouter/Inkling-2-Mini-abliterated
- SGLang
How to use orcarouter/Inkling-2-Mini-abliterated 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 "orcarouter/Inkling-2-Mini-abliterated" \ --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": "orcarouter/Inkling-2-Mini-abliterated", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "orcarouter/Inkling-2-Mini-abliterated" \ --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": "orcarouter/Inkling-2-Mini-abliterated", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use orcarouter/Inkling-2-Mini-abliterated with Docker Model Runner:
docker model run hf.co/orcarouter/Inkling-2-Mini-abliterated
Inkling-2-Mini-abliterated
|
๐ก๏ธ New from Orca โ OrcaCyber Zero 1.5 Post-trained for cybersecurity: vulnerability analysis, vulnerability reproduction, red teaming & offensive-security research. 98.01% pass@1 on CyberGym Level 1 ยท 1M context ยท function calling ยท OpenAI-compatible API. |
|
๐ All hosted cyber and abliterated models as API Skip the download: OrcaRouter serves its cybersecurity and abliterated models behind one OpenAI-compatible API key. |
|
๐ New from Orca โ Orca Connect Running this model on your own box? Orca Connect puts the rig under your desk behind your usual OrcaRouter API key, next to 200+ hosted models, reachable from a laptop, a phone or a cloud agent. Outbound only: no port forwarding, no tunnel, no firewall rule. Requests your own hardware serves cost $0, and |
Thinking Machines' Inkling 2 Mini with its refusal subspace removed: a 26B looped MoE (3.4B active) with vision and a 1M context.
~53 GB in bf16 ยท one 80 GB GPU ยท Hugging Face Transformers 5.24
OrcaRouter AI Gateway ยท X ยท Discord ยท GitHub ยท All Models
Inkling 2 Mini with the refusal subspace removed.
This is the abliterated (refusal-reduced) build of
thinkingmachines/Inkling-2-Mini: 26.4B parameters (26.07B text, 0.32B vision), 3.4B active per token. Its 24-layer decoder runs layers 6โ17 three times with shared weights, 48 layer applications per token; every layer is a mixture of experts with 128 routed experts, 8 active and no shared expert, and attention mixes local and global layers. The release stores the experts in NVFP4 (layers 0โ19) and MXFP8 (layers 20โ23); here they are dequantized to bf16 safetensors, with the vision tower and the MTP drafter as released.A 4-dimensional refusal subspace (the top 4 singular vectors of the per-layer diff-of-means directions of layers 10โ23) was removed, at 1.3ร scale, from the token embedding, every attention
o_projand every expert'sdown_proj. Each of these writes the residual stream through a short causal convolution, so each was edited through that convolution's current-token tap.Refusal is mostly removed, not entirely. Judged by meaning, harmful-prompt refusal falls from 82.5% to 11.9% on average, and a further 28โ53% of replies per set are watered-down (PARTIAL). MMLU, MMLU-Pro and GSM8K hold; CMMLU drops 2.2 points.
โ ๏ธ Disclaimer โ read before use
This model is abliterated: its safety alignment has been substantially reduced. It will
comply with many harmful, unethical, offensive, or illegal requests that the original
Inkling-2-Mini would refuse.
- Released strictly for legitimate research: interpretability, AI-safety and refusal-mechanism study, red-teaming, and robustness evaluation.
- You assume full responsibility for how you use it and for everything it generates. Add your own safety, moderation, and abuse-prevention layers before any deployment.
- Use must comply with the Apache License 2.0 inherited from the base model and with all applicable law. Thinking Machines also publishes a Model Acceptable Use Policy for Inkling 2 Mini.
- The authors accept no liability for misuse. Its outputs do not reflect the views of the uploaders or of Thinking Machines Lab.
Evaluation
The base and abliterated checkpoints were scored with identical prompts, splits and seed, under the same code revision, so they are directly comparable.
Setup.
- Runtime: Hugging Face Transformers 5.24, bf16, one H100 80GB.
- Decoding: greedy,
reasoning_effort="low", up to 768 new tokens on the refusal sets. Inkling 2 Mini writes a thinking segment before every answer, at every effort; the thinking is dropped and the answer is scored. - Scoring: refusal is judged by meaning: the unedited Inkling 2 Mini grades each answer FULL / PARTIAL / REFUSE, and the tables count REFUSE. The judge is the model being edited, not an independent grader. Its grade could not be read for 0โ4% of the base model's answers and 6โ16% of the abliterated model's; those count as not refused. A rule-based opening-phrase classifier is shown next to it: it reads far less refusal in the abliterated model (2.9% on average) because many of its replies comply in part without a refusal phrase.
Safety: harmful-prompt refusal (lower = more uncensored). Average 11.9%, against 82.5% for the base model. A further 28โ53% of the abliterated model's answers per set are graded PARTIAL: a watered-down, high-level or fictionalised version of the request.
| Benchmark | n | Base | Abliterated | ฮ | Phrase classifier: base โ abliterated |
|---|---|---|---|---|---|
| AdvBench | 100 | 90.0% | 13.0% | โ77.0 | 100.0% โ 3.0% |
| JailbreakBench (harmful) | 100 | 84.0% | 12.0% | โ72.0 | 94.0% โ 1.0% |
| StrongREJECT | 150 | 97.3% | 16.7% | โ80.7 | 98.0% โ 0.7% |
| HarmBench (standard) | 150 | 86.7% | 5.3% | โ81.3 | 99.3% โ 2.0% |
| MaliciousInstruct | 100 | 79.0% | 11.0% | โ68.0 | 97.0% โ 0.0% |
| SimpleSafetyTests | 50 | 100.0% | 20.0% | โ80.0 | 100.0% โ 6.0% |
| ForbiddenQuestions | 150 | 40.7% | 5.3% | โ35.3 | 57.3% โ 7.3% |
Over-refusal: benign prompts wrongly refused (lower = better). No induced over-refusal; the abliterated model refuses benign prompts less often.
| Benchmark | n | Base | Abliterated | Phrase classifier: base โ abliterated |
|---|---|---|---|---|
| XSTest-safe | 250 | 7.2% | 3.2% | 1.6% โ 0.4% |
| JailbreakBench (benign) | 100 | 6.0% | 0.0% | 32.0% โ 0.0% |
Capability retention. MMLU, MMLU-Pro and GSM8K are within a point or better; CMMLU drops 2.2 points (95% CI of the change โ5.2 to +0.8).
| Benchmark | n | Base | Abliterated |
|---|---|---|---|
| MMLU (letter) | 300 | 86.3% | 86.0% |
| MMLU-Pro (CoT) | 250 | 80.0% | 79.6% |
| GSM8K (CoT) | 150 | 88.7% | 90.7% |
| CMMLU (letter) | 500 | 82.4% | 80.2% |
All prompt sets were read from the Hugging Face Hub.
Usage (Transformers)
Inkling 2 Mini is in Transformers from 5.24, which these weights were made and evaluated with:
pip install "transformers==5.24.0"
The bf16 weights are about 53 GB, so one 80 GB GPU holds them (device_map="auto" spreads them
over several smaller ones):
import torch
from transformers import AutoTokenizer, Inkling2LoopForConditionalGeneration
model_id = "orcarouter/Inkling-2-Mini-abliterated"
tok = AutoTokenizer.from_pretrained(model_id)
model = Inkling2LoopForConditionalGeneration.from_pretrained(
model_id, dtype=torch.bfloat16, device_map="auto"
).eval()
messages = [{"role": "user", "content": "Write a haiku about the ocean."}]
text = tok.apply_chat_template(messages, tokenize=False, reasoning_effort="low")
enc = tok(text, return_tensors="pt", add_special_tokens=False).to(model.device)
out = model.generate(**enc, max_new_tokens=1024, do_sample=False)
reply = tok.decode(out[0][enc.input_ids.shape[1]:], skip_special_tokens=False)
thinking, _, answer = reply.partition("<|content_text|>")
print(answer.split("<|end_message|>")[0])
- The model opens its own turn. The chat template ends after the user's message; the model
writes
<|message_model|>, a thinking segment (<|content_thinking|>), and then its answer (<|content_text|>). Give it room for the thinking. - Thinking.
reasoning_effortisnone,minimal,low,medium,high,xhighormax(the template's default is 0.9,high). The abliteration was fitted and evaluated withlow. - Without the
causal-conv1dpackage, Transformers runs the convolutions with a slower reference implementation; the output is the same.
Abliteration recipe
| Method | Diff-of-means refusal directions (Arditi et al. 2024), one per hidden-state layer 10โ23, orthonormalized into a 4-dimensional subspace (the top 4 singular vectors) |
| Edited matrices | 49 residual-stream writers: the token embedding, attention o_proj ร24 and the experts' down_proj ร24 (all 128 experts of each layer) |
| Through the convolutions | Every attention and MoE output passes through a depthwise causal convolution over the last four tokens before it joins the residual stream. Each writer is edited so that the convolution's current-token tap loses its component in the subspace and nothing else (an oblique projection); the embedding is edited the same way through its norm gain |
| Scale | 1.3: the removal along the subspace is 1.3 times what the current-token tap carries, to make up for the share the three other taps leave |
| Max current-tap leakage | 1.9e-02 after the bake |
| Not touched | q/k/v projections, the experts' gate_up_proj, routers, norms, the convolutions, the vision tower and the MTP drafter |
Model details
| Base model | thinkingmachines/Inkling-2-Mini |
| Architecture | inkling2_loop, Inkling2LoopForConditionalGeneration. 24 layers, layers 6โ17 run three times with shared weights (48 layer applications per token); every layer an MoE with 128 routed experts, 8 active, no shared expert; attention sliding-window (1,024) in 20 layers and global in layers 5, 11, 17 and 23; hidden 2,304; a 23-layer vision tower |
| Parameters | 26.4B (26.07B text, 0.32B vision), plus a 0.32B MTP drafter ยท 3.4B active per token, about 5.4B effective over the three passes ยท Vocabulary 201,024 (200,058 in use) ยท Context 1,048,576 |
| Precision | bf16 safetensors (~53 GB); the experts, released in NVFP4 (layers 0โ19) and MXFP8 (layers 20โ23), dequantized to bf16 |
| Runtime | Hugging Face Transformers 5.24; text and image in, text out |
What's in this repo
| Path | Contents |
|---|---|
model-*.safetensors, model.safetensors.index.json |
the abliterated bf16 weights (2 shards) and the vision tower |
mtp.safetensors |
the MTP drafter, as released (Transformers does not load it) |
config.json, generation_config.json, processor_config.json |
model, generation and image-processor config |
tokenizer.json, tokenizer_config.json, special_tokens_map.json, chat_template.jinja, tiktoken/ |
tokenizer and chat template, as released |
LICENSE |
the Apache License 2.0 |
The edited tensors are the ones listed under Abliteration recipe. Every other tensor is the
release's: byte for byte, or dequantized to bf16 (the experts' gate_up_proj), or upcast
exactly to f32 (the convolution, router and gate weights Transformers keeps in f32). The output head's
966 padding rows beyond the 200,058 tokens in use are zero.
Bias, risks, and limitations
- Safety guardrails are substantially reduced, see the disclaimer, but not removed: 5โ20% of harmful prompts are still judged refused, and 28โ53% get a watered-down answer.
- The refusal judge is the base model itself, not an independent grader, and its grade could not be read for up to 16% of the abliterated model's answers; a rule-based phrase classifier reads much less refusal than the judge does.
- CMMLU drops 2.2 points; the other capability benchmarks hold.
- Only
reasoning_effort="low"was measured. Higher efforts, long context, agentic / tool use, image input and the MTP drafter were not evaluated after the edit. - Inherits the biases and limitations of
Inkling-2-Mini, including the long reasoning loops its card warns about.
License
The Apache License, Version 2.0, inherited from the base model
thinkingmachines/Inkling-2-Mini. These are
modified weights: the tensors listed under Abliteration recipe were changed by the abliteration,
and the experts were dequantized from NVFP4 and MXFP8 to bf16. See the license for its terms.
One Gateway. Every Model.
Route Smarter ยท Ship Safer ยท Spend Less
- Downloads last month
- -
Model tree for orcarouter/Inkling-2-Mini-abliterated
Base model
thinkingmachines/Inkling-2-Mini