license: apache-2.0
base_model:
- orcarouter/Inkling-2-Mini-abliterated
- incoai/Inkling-2-Mini-DFlash2
base_model_relation: quantized
pipeline_tag: image-text-to-text
tags: - radiance
- rocm
- amd
- rdna4
- moe
- iqr
- iq4r-v4
- trellis
- hadamard
- speculative-decoding
- dflash2
- vision
- abliterated
- uncensored
Inkling 2 Mini abliterated IQ4R-V4 + DFlash2 — radiance container
orcarouter/Inkling-2-Mini-abliterated
(Thinking Machines' Inkling 2 Mini with its refusal subspace removed) with every routed expert in
IQR-V4's four-bit trellis form and
incoai/Inkling-2-Mini-DFlash2 as its
speculative drafter, as a single .rad container for the
radiance inference engine (AMD RDNA4, ROCm), with
the vision tower. It is the recipe of
StillDeadcode/inkling-2-mini-iq4r-v4,
unchanged, applied to the abliterated weights with Hessians recorded from the abliterated model.
This model is abliterated. Its safety alignment has been substantially reduced and it will
comply with many requests the original model refuses. See the
base model's card for its
refusal and capability measurements. You are responsible for how you deploy it.
| File | inkling-2-mini-abliterated-iq4r-v4.rad — 14.47 GiB |
| Experts | the 128 routed experts of all 24 layers in IQR-V4: each 128 of K rotated by the unnormalised Hadamard, then a tail-biting trellis down each column whose 2^16 states' values are computed from the state, four bits a weight under one f32 scale a row and one a 128-K block, fitted by GPTQ in act order against Hessians recorded from the abliterated model itself (546K tokens of code, tool calls, reasoning, web text and German / multilingual documents). The abliterated release ships its experts in bf16, so GPTQ fits those weights directly. Decoded inside the kernel, against rotated int8 activations |
| Attention | q, k, v, r, the output gate and o rotated int8 at a bf16 scale per row and 128 of K |
| Head, embedding | int8 with a bf16 scale per row and 128, unrotated; the embedding is read at that width and only the gathered rows are decoded |
| Speculator | incoai's DFlash2 block-diffusion drafter: five layers draft a block of seven tokens in one pass from four of the target's hidden states, and a candidate selector picks one path through each position's top 16. Its linears in the same four-bit trellis, its down projections rotated int8, the selector's codebooks bf16; it reads the target's own int8 head. Every draft is verified by the target. The drafter was trained against the original Inkling 2 Mini, not the abliterated one |
| Vision | the 23-block vision tower, bf16: images in chat requests |
| Needs | radiance 2.3.0 or later |
Quality
Against the abliterated release's bf16 weights (data/recipes/inkling2-mini-bf16.recipe),
radiance's KL mode over 117 held-out documents of English and German web text, Wikipedia and code
(118,721 positions, the reference's 512 most likely tokens and the tail), drawn from parts of the
source datasets the calibration corpus did not use:
| mean KL | median | p99 | p99.9 | top-1 agreement | perplexity (reference 5.403) | |
|---|---|---|---|---|---|---|
| this container | 0.00544 | 0.00165 | 0.0562 | 0.221 | 97.30 % | 5.415 |
| source | positions | mean KL | median | p99 | top-1 |
|---|---|---|---|---|---|
| code | 44,975 | 0.00392 | 0.00013 | 0.0582 | 98.71 % |
| English web | 30,616 | 0.00580 | 0.00272 | 0.0492 | 96.79 % |
| English Wikipedia | 10,353 | 0.00574 | 0.00264 | 0.0512 | 96.60 % |
| German web | 22,490 | 0.00728 | 0.00342 | 0.0606 | 95.87 % |
| German Wikipedia | 10,287 | 0.00665 | 0.00258 | 0.0605 | 96.44 % |
These numbers are not directly comparable with StillDeadcode/inkling-2-mini-iq4r-v4's (mean 0.0066
over a different 97-document corpus against a different reference, whose perplexity is 2.88).
Speed
2× Radeon AI PRO R9700 (gfx1201), tp: 2, int8 KV cache, 200K context, greedy, 400 tokens a
request, reasoning off, drafter at depth 7 with draft-window: adaptive, tok/s over the whole
request (prefill included), means of two rounds:
| prompts | 1 stream | 4 streams | 8 streams |
|---|---|---|---|
| essays | 190 | 479 | 755 |
| code | 347 | 685 | 873 |
| step-by-step arithmetic | 364 | 844 | 1277 |
Prompt processing, one request at a time with the configuration below (prefill chunks of 2048;max-num-batched-tokens: 8192 measures the same), a fresh prompt each time so no prefix-cache
hit, time to first token, best of two:
| prompt tokens | time to first token | tok/s |
|---|---|---|
| 1,033 | 0.12 s | 8,448 |
| 4,104 | 0.45 s | 9,056 |
| 16,392 | 1.86 s | 8,805 |
| 65,545 | 8.95 s | 7,324 |
| 118,985 | 19.63 s | 6,061 |
Serve
# radiance.yaml
server:
host: 0.0.0.0
port: 8000
models:
inkling-2-mini-abliterated:
model: inkling-2-mini-abliterated-iq4r-v4.rad
tp: 2
max-model-len: 200000
max-num-seqs: 8
kv-cache-dtype: i8
num-speculative-tokens: 7
draft-window: adaptive
radiance --config radiance.yaml
The server speaks the OpenAI API (/v1/chat/completions, /v1/completions), with tool calls,
reasoning and image_url parts in chat messages.
How this file was made
The abliterated release's config.json was saved by Transformers 5.24, which renames some keys
radiance reads (vision_config.native_patch_size → patch_size, adapter_merge_size →spatial_merge_size, text_config.sconv_kernel_size → conv_kernel_size, intermediate_size →moe_intermediate_size). The original release's names were added beside the new ones with the
same values; no weight was changed. Its tensors are the original release's names with bf16
experts, and it ships the vision tower in bf16 with a complete vision_config, so the convert
writes the tower itself and no --add-vision step is needed.
# 1. the bf16 calibration container, and Hessians recorded by serving it over the corpus
rad-convert Inkling-2-Mini-abliterated -o inkling2-mini-abl-bf16.rad \
--recipe inkling2-mini-bf16.recipe
radiance --config cal.yaml # tp: 2, calib-corpus: calib.jsonl, calib-dir: calib/
# 2. the container: experts, attention, head and embedding by the recipe, the DFlash2 drafter, vision
CALIB=calib rad-convert Inkling-2-Mini-abliterated --recipe inkling2-mini-iq4r-v4.recipe \
--draft-model Inkling-2-Mini-DFlash2 --max-ctx 200000 --gpus 0,1 \
-o inkling-2-mini-abliterated-iq4r-v4.rad
The calibration corpus (546,257 tokens, 452 documents) mixes English web text (fineweb-edu) and
Wikipedia, German web text (fineweb-2) and Wikipedia, French, Russian, Japanese and Chinese web
text, GitHub code, code and math reasoning traces (OpenCodeReasoning, OpenR1-Math, OpenThoughts),
Hermes function-calling conversations and UltraChat. Chat-shaped documents are rendered through the
model's own chat template, so tool declarations, tool calls and thinking appear in its native
tokens. 8 of the 3,072 experts' down projections were routed too few calibration rows and use
their layer's pooled Hessian, as the recipe provides.
The recipe is inkling2-mini-iq4r-v4.recipe in this repository, identical to radiance'sdata/recipes/inkling2-mini-iq4r-v4.recipe; everything it does not name is the checkpoint's own.
SHA-256 of the container:baba8e9194f143109ccf32425bd8ea3c0b3b2b44ec4903cf874b71c69f98f48d
License
Apache 2.0, as the base model and the DFlash2 drafter; see LICENSE. The original model's
acceptable use policy applies. The
quantisation recipe is StillDeadcode's
(radiance, Apache 2.0). The drafter is incoai's
(DFlash 2, built on DFlash).