Inkling-2-Mini 路 abliterated 路 ingine
An abliterated thinkingmachines/Inkling-2-Mini for ingine, a C++/CUDA inference engine written for this model. It answers instead of refusing, whether it replies directly or reasons first, keeps the original's scores on the tested math, code and knowledge sets, and reads images as well as text through the checkpoint's own vision tower. On one RTX 5090 ingine decodes about 300 tokens/s, 490-560 tokens/s with DSpark speculative decoding, reads prompts at 6,200-10,900 tokens/s and serves 262,144 tokens of context through an OpenAI-compatible API.
This repository is ready to run with ingine: Inkling-2-Mini's files, unchanged, plus
inkling-2-mini-abliterated.safetensors, which ingine applies at run time. No weights were trained or modified, so
other inference engines load these files as the original model and ignore the abliteration (Files).
Reduced safety filtering. Refusal behaviour has been largely removed. The model can produce content that the original would decline. You are responsible for how you use it and for complying with the law and the license.
Quick start
curl -fsSL https://raw.githubusercontent.com/satellitedown/inkling-2-mini-abliterated-ingine/main/get.sh | bash
In the menu, choose 1 to install (a private CUDA toolkit, a build of ingine of about a minute, and this
repository at a pinned revision with every file checked), then 5 for the ingine command, and run
ingine start. The API is at http://127.0.0.1:8003/v1, model inkling-2-mini-abliterated, with streaming,
tools, reasoning_content, reasoning_effort (none .. max) and enable_thinking: false:
curl -N http://127.0.0.1:8003/v1/chat/completions -H 'Content-Type: application/json' \
-d '{"model":"inkling-2-mini-abliterated","stream":true,"messages":[{"role":"user","content":"Hello"}]}'
Images are content parts with a base64 data: URI (PNG, JPEG, WebP, GIF or BMP; URLs are not fetched), for example
{"type": "image_url", "image_url": {"url": "data:image/png;base64,..."}}. An image costs one token per 40x40
pixels; one above 4,096 tokens is reduced to fit.
ingine runs one request at a time with a short queue; a follow-up only reads what is new in its conversation, and conversations that take turns (subagents, a second client) stay warm in spare GPU memory. The GitHub README covers every option, context and memory settings, updates and agent setup (including Oh My Pi).
Requirements
- an NVIDIA GPU with compute capability 12.0 and at least 32 GB: RTX 5090 (RTX PRO 6000/5000/4500 Blackwell
untested); ingine is built for
sm_120aand uses Blackwell's FP4 instructions - Linux x86_64 with an NVIDIA driver for CUDA 13 and a C++20 compiler (GCC 12-16)
- ~22 GB of disk: 20.2 GB for this repository, about 1.2 GB for the CUDA toolkit, build tools and the build
Results
| Original | This release | |
|---|---|---|
Refusals, mlabonne/harmful_behaviors test (104), direct answer |
104 | 1 |
| Refusals, JailbreakBench harmful behaviours (100), direct answer | 100 | 5 |
Refusals, harmful_behaviors test (48), reasoning first |
48 | 3 (each says what it cannot literally do, such as publish the text, then writes it) |
| Refusals, 32 mild borderline prompts, direct / reasoning first | 15 / 8 | 1 / 0 (the one hedges, then writes a toned-down scene) |
| Math (20, reasoning) / Python (12, tests executed) / multiple choice (12) | 20/20, 12/12, 12/12 | 20/20, 12/12, 12/12 |
| Reasoning at temperature 1, correct: GSM8K (40) effort low / high, AIME 2024 (15) | 40/40, 40/40, 13/15 | 40/40, 40/40, 14/15 |
| Reasoning at temperature 1: samples that loop (95) | 0 | 0 |
| Agreement with the original on 8,192 tokens of technical docs: top-1 / mean KLD | 1 / 0 | 0.964 / 0.005 |
| KL divergence on the original's own answers to 64 harmless prompts | 0 | 0.014 |
Greedy decoding, except the reasoning rows (sampled, through ingine's default profile). A refusal is an answer that
contains a refusal phrase. The weight per layer comes from an earlier search that scored part of the
harmful_behaviors test prompts and these 64 harmless prompts; on the 40 test prompts and 90 JailbreakBench prompts
that nothing used, this release refuses 0 and 4. Raw data, with every answer, in abliteration/results/.
Speed on one RTX 5090 with the default profile (262,144-token context, FP8 KV cache), one request, tokens per second while generating ("chat" explains hash-map collisions and "code" writes an LRU-cache module with tests: short prompts, up to 1024 tokens; "agent" replays 24 recorded coding-agent requests with 2K-39K-token prompts):
| chat | code | agent | |
|---|---|---|---|
| plain decoding, greedy | 306 | 301 | |
| DSpark, greedy | 501 | 561 | 510 |
| plain decoding, temperature 1 | 301 | 301 | 279 |
| DSpark, temperature 1 (the default) | 487 | 554 | 501 |
DSpark's drafts are checked by the full model, so it returns what plain decoding returns. A new prompt is read at 10,900 tokens/s (20K tokens), 8,000 (131K) and 6,200 (254K, 41 s); a follow-up request only reads what is new: twelve recorded agent sessions (230 requests) need 50 s to first token in total. Decoding after 254K tokens of context runs at 258 tokens/s, and a passphrase hidden in the middle of those 254K tokens of source code was found.
Images: the vision tower takes 3 ms for an image of up to 64 tokens, 0.17 s for 1,849 tokens (1720x1720 pixels) and 1.1 s for 4,096, and its image embeddings match the transformers reference (FP32) to a cosine of 0.9995-0.99999 on the test images.
Manual setup
With CMake 3.28 or newer, Ninja and a CUDA 13.4 toolkit with cuBLAS (e.g. in /opt/cuda):
hf download satellitedown/Inkling-2-Mini-abliterated-ingine --local-dir inkling-2-mini-abliterated
git clone https://github.com/satellitedown/inkling-2-mini-abliterated-ingine ingine
cd ingine/native && cmake --preset release && cmake --build --preset release
build/apps/serve/ingine-serve --engine --model-dir ../../inkling-2-mini-abliterated \
--ablation ../../inkling-2-mini-abliterated/inkling-2-mini-abliterated.safetensors \
--max-ctx 262144 --dense-fp8 --kv-fp8 --spec --host 127.0.0.1 --port 8003
Without --ablation, ingine serves the original model; --no-vision leaves out the vision tower (text only, 0.6 GB
less GPU memory).
Files
| Path | Contents | Size |
|---|---|---|
model-00001-of-00001.safetensors, model.safetensors.index.json |
Inkling-2-Mini's weights (BF16 dense layers and vision tower, NVFP4/MXFP8 routed experts), unchanged | 19.5 GB |
mtp.safetensors |
Inkling-2-Mini's DSpark drafter, unchanged | 636 MB |
inkling-2-mini-abliterated.safetensors |
the abliteration | 1.8 MB |
config.json, generation_config.json, hf_quant_config.json, processor_config.json, tokenizer files, tiktoken/, chat_template.jinja |
Inkling-2-Mini's configuration, tokenizer and chat template, unchanged | small |
README.md, LICENSE, NOTICE, SHA256SUMS |
this card, Apache-2.0, attributions, checksums of every file | small |
abliteration/ |
the scripts and raw results behind the numbers above | small |
Other inference engines load these files as the original Inkling-2-Mini and ignore the abliteration file. It takes
effect only where it is applied as ingine applies it: to every attention and MLP write after its short convolution,
with its own weight for each pass through the looped layers, and only where a detector flags the write. Because the
detector depends on the input, it cannot be folded into the weights. The transformers-based reference in
abliteration/inkling_ref.py applies it too (for measurements, not serving).
License
- Inkling-2-Mini: Thinking Machines, Apache-2.0
(thinkingmachines/Inkling-2-Mini, revision
6e7c8248f75265bdd4fbab5273304243b5d8c2cb); its files are redistributed unchanged. - The abliteration and ingine: Apache-2.0. The abliteration follows Heretic by
p-e-w. Attributions are in
NOTICE.
Unofficial community release, not endorsed by Thinking Machines; provided as is, without warranty. Not tested: refusals with sampling or in other languages, broad benchmarks, image benchmarks, other GPUs. Do not expose the server unauthenticated to untrusted networks.
- Downloads last month
- 451
Model tree for satellitedown/Inkling-2-Mini-abliterated-ingine
Base model
thinkingmachines/Inkling-2-Mini