Instructions to use orcarouter/Inkling-2-Mini-abliterated-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use orcarouter/Inkling-2-Mini-abliterated-MLX with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("orcarouter/Inkling-2-Mini-abliterated-MLX") config = load_config("orcarouter/Inkling-2-Mini-abliterated-MLX") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Inkling-2-Mini-abliterated-MLX
|
🛡️ 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 Mac? Orca Connect puts the machine on 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 |
Abliterated Inkling 2 Mini (26B looped MoE) in MLX: 15.7 GB and 11.6 GB builds for Apple Silicon.
MLX's own NVFP4 and affine formats · loads with mlx-vlm · vision tower included
OrcaRouter AI Gateway · X · Discord · GitHub · All Models
Abliterated Inkling 2 Mini, run locally on Apple Silicon.
These are MLX builds of the abliterated (refusal-reduced)
thinkingmachines/Inkling-2-Mini. Inkling 2 Mini is a 26.4B multimodal MoE with 3.4B active parameters per token: 24 layers, of which layers 6–17 run three times with shared weights, 128 routed experts per layer with 8 active, local and global attention, a vision tower, and a 1M context.There are two builds, named by the size of their weights: 16GB (15.7 GB) and 12GB (11.6 GB). Both are mixed precision in MLX's own quantized formats (NVFP4 and affine), so MLX runs them with its stock quantized kernels, and both load with mlx-vlm.
Close to the BF16. Against the abliterated BF16, the 16GB build keeps 96.8% of next tokens (KLD 0.0067) and the 12GB build 92.8% (KLD 0.037).
Not yet run on Apple Silicon. The scores below were measured with MLX itself, but on its CUDA backend on Linux; the builds have not been run on a Mac yet. See Bias, risks, and limitations.
⚠️ 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.
- It is 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.
Pick a build
| Build (folder) | Download | Weights in memory | bpw | KLD ↓ | Top-1 ↑ |
|---|---|---|---|---|---|
Inkling-2-Mini-abliterated-MLX-16GB |
15.8 GB | 15.7 GB (14.7 GiB) | 4.77 | 0.0067 | 96.8% |
Inkling-2-Mini-abliterated-MLX-12GB |
11.6 GB | 11.6 GB (10.8 GiB) | 3.51 | 0.0367 | 92.8% |
- 16GB is the closer build: the routed experts in 4-bit (mostly NVFP4), the rest at 6 to 8 bits. 97% of next tokens match the BF16.
- 12GB is for a tighter memory budget: the routed experts at 2 to 4 bits. 93% of next tokens match the BF16, a real but moderate cut.
- The folder names give the size of the weights, not the size of the Mac. Download one folder, whole.
"Weights in memory" is the folder's model-*.safetensors, vision tower included; "bpw" is over
all 26.39B weights. Budget a few GB more for the KV cache and activations. macOS lets the GPU wire
only part of the installed memory by default; to raise the limit (it resets on reboot):
sudo sysctl iogpu.wired_limit_mb=<MB>
Peak memory has not been measured on a Mac. With MLX's CPU backend on Linux, loading each folder and generating 16 tokens peaked at 15.9 GB (16GB) and 11.7 GB (12GB), at a context of 39 tokens. For scale, Thinking Machines recommends a Mac with 32 GB or more for its own ~20 GB release.
Evaluation
Fidelity to the BF16
Each build is scored against the abliterated BF16 it was quantized from, converted to MLX without quantization, with full-vocabulary KLD. Both sides run in MLX through mlx-vlm, so the scores include MLX's own quantized kernels. The teacher is the abliterated model, so the abliteration itself is not counted as quantization error.
The text is held-out chat: conversations rendered with the Inkling chat template, 16 windows of 2048 tokens, scored on every position that predicts a token inside an assistant turn (25,149 tokens).
| Weights in memory | bpw | KLD ↓ | Top-1 ↑ | |
|---|---|---|---|---|
| Abliterated BF16 (the reference) | 52.8 GB | 16 | 0 | 100% |
| 16GB (this repo) | 15.7 GB | 4.77 | 0.0067 | 96.8% |
| 12GB (this repo) | 11.6 GB | 3.51 | 0.0367 | 92.8% |
- The scores were measured with MLX's CUDA backend on Linux, not on a Mac; see Bias, risks, and limitations.
Abliteration
These numbers were measured on the abliterated BF16 in Hugging Face Transformers, against the
original Inkling 2 Mini, with identical prompts, splits and seed; greedy, reasoning_effort="low",
the thinking segment dropped before scoring. Refusal is judged by meaning by the unedited
Inkling 2 Mini (FULL / PARTIAL / REFUSE); the tables count REFUSE. A rule-based phrase classifier
is shown next to it.
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 (watered-down).
| 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).
| 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.
| 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% |
Refusal after quantization has not been measured on these files. As a spot check, one harmful request, run greedily on each build in MLX, was answered rather than refused.
How the builds were made
Both builds are quantized from the abliterated BF16 with our own mixed-precision pipeline: the
bits go where the model is most sensitive, and the routed experts are rounded with error
compensation rather than round-to-nearest. Everything is stored in MLX's own formats, so stock
MLX runs it; each folder's config.json (quantization) lists the format of every module.
| 16GB | 12GB | |
|---|---|---|
| Routed experts | 4-bit, mostly NVFP4 | 2- to 4-bit affine |
| Attention, embedding, output head, vision tower | 6- to 8-bit affine | 6- to 8-bit affine |
| Norms, convolutions, attention sinks | BF16 | BF16 |
| Weights in memory | 15.7 GB | 11.6 GB |
What's in this repo
| Path | Size | Files | Contents |
|---|---|---|---|
Inkling-2-Mini-abliterated-MLX-16GB/ |
15.8 GB | 16 | the 16GB build |
Inkling-2-Mini-abliterated-MLX-12GB/ |
11.6 GB | 20 | the 12GB build |
LICENSE |
the Apache License 2.0 |
Each folder is a complete model directory:
| File | Contents |
|---|---|
model-*.safetensors, model.safetensors.index.json |
the quantized model, vision tower included (7 or 11 shards) |
config.json |
the model config, with the per-module quantization |
tokenizer.json, tokenizer_config.json, chat_template.jinja, tiktoken/ |
tokenizer and chat template |
processor_config.json, generation_config.json |
image-processor config, generation defaults |
LICENSE |
the Apache License 2.0 |
The MTP drafter of the original release is not included.
Usage (MLX)
mlx-vlm supports Inkling 2 Mini on its main branch. These files were made and checked with commit
d998a62 and MLX 0.32.4:
pip install "mlx==0.32.4" "mlx-vlm @ git+https://github.com/Blaizzy/mlx-vlm@d998a6207b7dc613b52618646dbea13a4799f7ca"
# the 16GB build (for the 12GB build, use Inkling-2-Mini-abliterated-MLX-12GB)
hf download orcarouter/Inkling-2-Mini-abliterated-MLX \
--include "Inkling-2-Mini-abliterated-MLX-16GB/*" --local-dir .
from mlx_vlm import load, generate
model, processor = load("Inkling-2-Mini-abliterated-MLX-16GB")
messages = [{"role": "user", "content": "Write a haiku about the ocean."}]
prompt = processor.tokenizer.apply_chat_template(
messages, tokenize=False, reasoning_effort="low"
)
result = generate(model, processor, prompt, max_tokens=1024, temperature=0.0,
skip_special_tokens=False)
print(result.text.partition("<|content_text|>")[2].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|>), which the last line picks out. 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. - Checked on Linux, not on a Mac. Both folders, as uploaded, load and generate through this snippet's prompt with MLX's CPU backend; the answer extraction in the last line was checked on full replies generated with MLX's CUDA backend.
- Images. mlx-vlm takes an
image=argument and both builds carry the vision tower, but image input has not been tested with these files.
Model details
| Base model | thinkingmachines/Inkling-2-Mini, abliterated |
| Architecture | inkling2_loop, in MLX through mlx-vlm. 24 layers, layers 6–17 run three times with shared weights; every layer an MoE with 128 routed experts, 8 active, no shared expert; sliding-window (1,024) attention in 20 layers, 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) · 3.4B active per token · Vocabulary 201,024 |
| Abliteration | The refusal behaviour removed from the weights, in BF16, before quantization |
| Quantization | Mixed precision; 16GB: 4-bit experts (NVFP4 and affine), the rest 6 to 8 bits; 12GB: 2- to 4-bit affine experts, the rest 6 to 8 bits |
| Context | 1,048,576 tokens (inherited; evaluated at 2K) |
| Runtime | mlx-vlm (commit d998a62) with MLX 0.32.4 |
Bias, risks, and limitations
- Safety guardrails are substantially reduced, see the disclaimer, but not removed: on the BF16, 5–20% of harmful prompts are still judged refused, and 28–53% get a watered-down answer.
- Not yet run on Apple Silicon. The scores come from MLX's CUDA backend on Linux, and both folders, as packaged, were loaded and run for a few tokens through the snippet above with MLX's CPU backend; speed, peak memory and Metal-specific behaviour on a Mac are unknown.
- The 12GB build is measurably degraded. 93% next-token agreement is a real cut; the 16GB build is much closer (97%).
- The benchmark suite was run on the BF16 in Transformers, not on these files.
- Not measured on these files: refusal (beyond a one-prompt spot check), downstream accuracy, long context, tool use, image input. All fidelity measurements are on chat text at 2K context.
- Needs an mlx-vlm with Inkling 2 Mini support (commit
d998a62or later); older releases will not load these files. - Inherits the biases and limitations of
Inkling-2-Mini.
License
The Apache License, Version 2.0, inherited from the base model
thinkingmachines/Inkling-2-Mini.
Abliteration and quantization do not change the license obligations. See the license for its
terms.
One Gateway. Every Model.
Route Smarter · Ship Safer · Spend Less
Quantized
Model tree for orcarouter/Inkling-2-Mini-abliterated-MLX
Base model
thinkingmachines/Inkling-2-Mini