license: apache-2.0
base_model:
- ukisai/Swift-Inkling-2-Mini
- 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
- swift
- uncensored
- abliterated
Swift Inkling 2 Mini, Uncensored IQ4R-V4 (Radiance 2.5.0)
This repository contains a Radiance 2.5.0 container for
ukisai/Swift-Inkling-2-Mini
with the
OpenUncensored abliteration LoRA
merged into it, quantised to IQ4R-V4 with the
incoai/Inkling-2-Mini-DFlash2
drafter. The vision tower is included. It is sized for one 32 GB card at tp: 1.
The abliteration edit is applied here, not taken from a third-party container:
the adapter projects one refusal direction out of the attention output
projection of 20 layers, and its effect is reproduced exactly by merging the
rank-2 adapter into the source weights before conversion. See Behavior.
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. Hidden 2304, 24 attention heads and 8 KV heads with
head_dim 128, 128 routed experts with top-8 routing, intermediate 1152,
vocabulary 201024, model max length 1048576. - Abliteration: the OpenUncensored adapter is a rank-2 edit to
attn.wo_udin layers 4 to 23,W' = W - s Q Q^T W, with strength 4.0 on
layers 4, 5 and 18 to 23 and 2.5 on the loop core (layers 6 to 17). Each
layer edit changes at most about 0.07 in absolute weight value. - Vision tower: 23 blocks, hidden 1024, kept in bf16.
- Drafter:
incoai/Inkling-2-Mini-DFlash2, a 5-layer DFlash2 block
drafter with hidden 2304, intermediate 6912, block size 8 and four target
layers. The container declaresmax_spec 7, the only depth this drafter
serves. - Quantisation: routed experts in rotated int4 (IQ4R-V4, trellis-coded
with a 128-wide Hadamard rotation); trunk linears, the output head and the
token embedding in rotated int8; the drafter's attention and gate_up
projections in the same trellis int4 and its down projection in int8.
Serving
models:
swift-inkling-2-mini:
model: /models/inkling-2-mini-uncensored-iq4r-v4.rad
tp: 1
max-model-len: 200000
max-num-seqs: 6
kv-cache-dtype: i8
park: { ram: never }
checkpoint-draft-window: true
control-vector: 'on'
draft-depth0: 'on'
draft-window: adaptive
num-speculative-tokens: 7
Validation
- Plan: 6920 weights for the text trunk and drafter, 6321 quantised by the
recipe and 599 kept as the checkpoint holds them, about 13.81 GiB. - The vision pass adds 330 bf16 tensors. The finished container is
15,496,360,448 bytes, 14.43 GiB, 7250 weights, 185 metadata keys. rad-info: architectureinkling2, 24 layers, hidden 2304, 24 heads and
8 KV heads, 200058 tokens, 424413 merges, chat template 6867 bytes.- SHA-256:
c865c107c20d3fc374b9ad30fe2531ed706e5a311872e331539137e7e3a5dcf7. - Built with
docker.io/stilldeadcode/radiance:2.5.0, digestsha256:25cdef937223b303d6c8657c902da018179a4af2bc97e3ad2c20450027cb82d1. - The conversion ran locally on a Radeon RX 9070 XT (
gfx1201) with--gpus 0; the vision pass is an unquantised copy and does not depend on
the card. - Calibration: the pinned 2.5.0 image cannot serve an int8-expert calibration
container (dtype this kernel does not serve), and the bf16 calibration
container is about 53 GiB and needs two cards. This build therefore used
identity Hessians, under which the GPTQ fit reduces exactly to
round-to-nearest. The result is an RTN build, not a calibrated one. - Serving was not run on the R9700 in this build; the single-card claim rests
on the container size and the recipe's one-card profile, not on a measured
VRAM run.
Licensing
UkisAI's contribution is licensed under the
Apache License 2.0.
The model is a derivative of
Inkling 2 Mini
(Apache-2.0). The drafter is from incoai/Inkling-2-Mini-DFlash2
(Apache-2.0). The abliteration adapter is fromOpenUncensored/Inkling-2-Mini-Uncensored-LoRA and is published under
Apache-2.0. See NOTICE for the change notice and attribution details.
Behavior
Swift Inkling 2 Mini is a reasoning-efficient derivative of Inkling 2 Mini:
58.6% fewer thinking tokens with under 1% loss. Benchmarks:
- GPQA-Diamond 86.67 to 85.45
- MMLU-Pro 83.19 to 82.41
- C-Eval 82.15 to 84.40
- IFBench 76.07 to 73.73
- AIME 2024-2026 99.33 to 97.11
- HMMT Nov2025 66.67 to 64.67
The adapter card reports 0 refusals on its 32 harmful prompts in chat and
thinking mode, with MMLU unchanged (78.95% to 79.47%) for the base Inkling 2
Mini. Two caveats apply here. First, that evaluation is the adapter author's
and was run on the base model, not on this Swift fine-tune. Second, this build
was not put through a refusal benchmark. What is certain is that the refusal
direction is projected out of the same 20 attention output projections by the
same rank-2 edit, and that every other tensor is unchanged. The source model
is also a low-over-refusal fine-tune in its own right, so the two effects
stack.
The 4-bit round-to-nearest quantisation can cost some quality against the bf16
weights.
Limitations
- Quantised without calibration (identity Hessians, RTN-equivalent).
- The drafter was trained on the base Inkling 2 Mini, so draft acceptance on
this fine-tune may be lower than on the base model. - The abliteration adapter was fitted to base Inkling 2 Mini and applied to the
Swift fine-tune. The direction is expected to transfer because the
architecture and most weights are shared, but the exact effect was not
measured on Swift. - No refusal benchmark was run on this container.
- Not run through a serving stack on the R9700 in this build.
Provenance
- Source repository:
ukisai/Swift-Inkling-2-Mini
(shab4c962b25540c023f77ff688919ffd2e454fb62a). - Abliteration adapter:
OpenUncensored/Inkling-2-Mini-Uncensored-LoRA
(shab328f8112173024d0f097aba1ea09e5f475ca7f9), PEFT rank 2, alpha 2,
scaling 1.0, targetmodel.llm.layers.{4..23}.attn.wo_ud. - Merge: the adapter was applied to the bf16 checkpoint with a streaming
merge (all 20 layers patched, maximum absolute delta about 0.05 to 0.07),
and the merged checkpoint is what Radiance converted. - Drafter:
incoai/Inkling-2-Mini-DFlash2
(sha4f9088ea66c21f2b99ed657d1941c306b03e84d2). - Build:
CALIB=$PWD/calib/inkling2-mini RADIANCE_PODMAN_GPU=1 ./scripts/rad-convert.sh models/hf/ukisai/Swift-Inkling-2-Mini-Uncensored -o out/swift-inkling-2-mini-uncensored-iq4r-v4.rad --recipe recipes/inkling2-mini-iq4r-v4.recipe --draft-model models/hf/incoai/Inkling-2-Mini-DFlash2 --max-ctx 200000 --gpus 0 - Vision pass:
./scripts/rad-convert.sh models/hf/ukisai/Swift-Inkling-2-Mini-Uncensored -o out/swift-inkling-2-mini-uncensored-iq4r-v4-vision.rad --add-vision out/swift-inkling-2-mini-uncensored-iq4r-v4.rad - A bf16 container also exists locally (48.57 GiB) but needs two 32 GB
cards, so it is not published here. - Workspace commit:
9b1a016.