license: apache-2.0
base_model:
- OpenUncensored/Inkling-2-Mini-Uncensored
- incoai/Inkling-2-Mini-DFlash2
base_model_relation: quantized
pipeline_tag: image-text-to-text
library_name: radiance
language: - en
tags: - radiance
- rocm
- amd
- rdna4
- moe
- iqr
- iq4r-v4
- trellis
- hadamard
- speculative-decoding
- dflash2
- vision
- uncensored
- abliterated
Inkling 2 Mini Uncensored IQ4R-V4
This repository contains a Radiance container for
OpenUncensored/Inkling-2-Mini-Uncensored,
quantised to IQ4R-V4 with the
incoai/Inkling-2-Mini-DFlash2 drafter.
The vision tower is included.
The container is about 14.4 GiB and is designed for RDNA4 cards such as the Radeon AI PRO
R9700. It also runs on one 32 GB card with tp: 1.
This is a community quantisation, not an official release from Thinking Machines,
OpenUncensored, or incoai.
What is in the container
- Text trunk: Inkling 2 Mini, a looped mixture-of-experts model with 24 layers. The middle
12 layers run three times per token, so each token makes 48 layer visits. - Routed experts: all 128 experts in all 24 layers use IQR-V4. Each expert weight is rotated
with a 128-wide unnormalised Hadamard transform and stored as a four-bit tail-biting trellis
with 2^16 states. GPTQ fits the codes in activation order against calibration Hessians. - Attention projections: q, k, v, r, the output gate, and o use rotated int8 with a bf16
scale per row and per 128 elements of K. - Head and token embedding: unrotated int8 with a bf16 scale per row and per 128. The
embedding lookup reads only the rows it needs. - Drafter: DFlash2, five layers that draft a block of seven tokens in one pass from four
target hidden states. A candidate selector chooses one path through the top 16 candidates.
Its linears use the same four-bit trellis form, its down projections use rotated int8, and
every draft is verified by the target model. - Vision: a 23-block vision tower in bf16.
The routed experts in the source checkpoint are stored as NVFP4 in layers 0 to 19 and MXFP8 in
layers 20 to 23. The converter dequantises them exactly before fitting the IQR-V4 codes.
Quantisation details
The recipe is inkling2-mini-iq4r-v4.recipe from the Radiance repository. The calibration
Hessians come from a one-card int8-expert container built with theinkling2-mini-i8.recipe recipe, which is kept in Radiance 2.3.0 history. Radiance 2.5.0 ships
the BF16 calibration recipe instead, but that container is about 53 GiB and needs two cards.
Calibration uses JSONL prompts. The published base-model recipe used about 538K tokens of
code, tool calls, reasoning, web prose, and German and multilingual text. A different corpus
will produce different Hessians and may change quality.
The DFlash2 drafter was trained on the base Inkling 2 Mini model. Its architecture matches this
abliterated fine-tune, but draft acceptance may be lower than on the base model.
Quality
No KL or throughput measurements have been published for this uncensored build yet.
For orientation, the base Inkling 2 Mini IQ4R-V4 card reports these comparisons against the
released BF16 checkpoint:
| Metric | IQ4R-V4 | BF16 release |
|---|---|---|
| Mean KL | 0.0066 | 0 |
| Median KL | 0.00083 | 0 |
| p99 KL | 0.073 | 0 |
| Top-1 agreement | 97.6% | 100% |
| Perplexity | 2.896 | 2.884 |
Those numbers belong to the base model, not to the abliterated checkpoint in this repository.
They are included only to show the approximate cost of the IQ4R-V4 format.
Serving
Radiance 2.3.0 or newer is required. A one-card configuration:
inkling:
model: /models/inkling-2-mini-uncensored-iq4r-v4.rad
tp: 1
max-model-len: 262144
max-num-seqs: 6
kv-cache-dtype: i8
ttl: 30m
park: { ram: never }
checkpoint-draft-window: true
control-vector: 'on'
draft-depth0: 'on'
draft-window: adaptive
num-speculative-tokens: 7
For two cards, change tp to 2. The draft depth and context length can be reduced if VRAM is
tight.
Building it
The workspace used for this conversion is
radiance-model-build-workspace. The
short version, starting from the source checkpoints:
./scripts/sync-recipes.sh
./scripts/build-model.sh inkling2-mini-i8-calib
# Replace examples/inkling-2-mini-uncensored/corpus.jsonl with a real corpus.
mkdir -p calib/inkling2-mini
export RADIANCE_PODMAN_GPU=1
./scripts/radiance.sh --config examples/inkling-2-mini-uncensored/calib.yaml
./scripts/build-model.sh inkling2-mini-iq4r-v4 --calib calib/inkling2-mini
./scripts/rad-info.sh out/inkling-2-mini-uncensored-iq4r-v4.rad
The IQ4R build writes an intermediate text container, then adds the vision tower with--add-vision to produce the final file.
Files
| File | Purpose |
|---|---|
inkling-2-mini-uncensored-iq4r-v4.rad |
Radiance container with text, vision, and DFlash2 |
inkling2-mini-iq4r-v4.recipe |
Conversion recipe |
corpus.jsonl |
Calibration corpus (sample) |
License and credits
The base checkpoint and this quantisation are Apache 2.0. The base model's acceptable use terms
still apply. OpenUncensored created the abliterated fine-tune. Thinking Machines created
Inkling 2 Mini. incoai created the DFlash2 drafter. Radiance provides the container format,
recipes, and kernels.
This model is uncensored and will follow requests that the base model refuses. Use it
responsibly and in compliance with the law where you operate.