Inkling 2 Mini Uncensored — Quark AWQ MXFP4 (full-LM)
Loose-but-honest summary: Thinking Machines' Inkling 2 Mini (26.4B MoE, 3.4B active) with refusals removed by directional abliteration, then dequantized to BF16 and re-quantized to MXFP4 (AWQ) over the full language model. Vision tower stays BF16, MTP head kept native (unquantized). ~15.4 GiB.
Provenance chain (verified, not assumed)
- Base:
thinkingmachines/Inkling-2-Mini(looped MoE: 24 layers, middle 12 looped ×3 per token, hybrid local/global attention, vision input, MTP head). - Abliteration:
OpenUncensored/Inkling-2-Mini-Uncensored— directional ablation ("abliteration") of the refusal subspace, published by OpenUncensored on release day. We independently verified its provenance at tensor level against the native checkpoint: exactly 20 of 1116 weight matrices differ — theattn.wo_ud(attention output) projections of layers 4-23, max delta 0.03-0.13 — everything else (all 128 experts per layer, vision encoder, speculator) byte-identical, andmtp.safetensorsSHA256-identical. This matches their documented recipe exactly (rank-2 subspace projectionW' = W - s·Q·Qᵀ·Won BF16 attention outputs, loop-scaled strengths). - Dequantize: their published checkpoint (NVFP4 experts + MXFP8 elsewhere) was dequantized to BF16 (53.5 GiB) on an MI300X before quantization.
- Quantization (this repo): Quark (amd-quark 0.13) AWQ MXFP4 over the full LM — 9,536 quantized linears (9,216 routed-expert linears + 320 non-expert: attention, router/gates), calibration 256×1024. Vision tower: BF16. MTP head: native, unquantized, copied verbatim.
Verification
- Reload + generation verified after quantization (transformers 5.24.0 + Quark QuantLinear path, ROCm 10.2 on MI300X).
- Perplexity: 11.1705 (quantized) vs 11.2212 (native BF16 baseline) on the calibration set — quantization is perplexity-neutral-to-better within noise.
- 9,536/9,536
QuantLineartargets present and reloaded.
Abliteration results (measured by us, 256-token cap, 100 harmful + 100 benign prompts, abliterix-style keyword refusal detector)
| Model | Greedy refusals (harmful/100) | Sampled (T=0.7) true refusals | Notes |
|---|---|---|---|
| Native Inkling-2-Mini | 100/100 | 100/100 (23 degenerate) | baseline |
| This model (uncensored) | 9/100 | 9/100 (46 keyword hits − 37 degenerate) | 7 of the 9 are limits/crisis-response, not flat refusals |
| Response length | 143.9 words | 146.1 words (native) | length profile essentially unchanged |
Their own harness (greedy, 32 harmful + 48 gray-area, thinking on/off): 68/80 → 8/80 refusals, MMLU 78.95 → 79.47 (their card, their harness).
Our abliteration study (why we shipped the shortcut instead)
We ran a clean 50-trial abliterix (1.12.2) optimization on the native checkpoint (MI300X, batch 256, grouped_mm MoE path, causal_conv1d, 256-token eval cap) over ~10.7h wall:
| Point | Refusals/100 | KL (nats/token) |
|---|---|---|
| Baseline | 99-100 | — |
| Winner (best removal) | 59 | 0.0994 |
| Best within KL target (0.01) | 93 | 0.0093 |
The search exposed a hard removal-vs-fidelity tradeoff: the deepest removals cost KL 0.35-0.86; the KL-safe points removed only 7/100. The OpenUncensored shortcut (9/100 at ~zero distribution shift) beat everything abliterix found, per its pre-registered decision rule (publish the shortcut if the best trial does not beat 9/100).
The recipe differences that explain the gap (per their write-up): (1) late-visit-only refusal subspace (visits 24-47 of 48) — keeps the model's understanding of the request, removes only the decision to refuse; whole-model steering misreads harmful requests as harmless and answers vaguely. (2) multiplicative rank-2 subspace projection on specific weight matrices instead of additive activation steering. (3) loop-aware strength scaling (s=2.5 inside the 3× loop core vs s=4.0 outside). (4) attention-outputs-only edit — MoE expert edits were no better and cost 4-6 MMLU points (NVFP4 re-encoding noise ≈ 2× the edit size).
Full study: see our companion repo mostwanted002/Inkling-2-Mini-abliterated-bf16 (exported winning trial + reproduce/ manifest with the complete per-trial trace and SHA256 integrity data).
Usage
- Loads with
transformers(≥5.24.0,model_type: inkling2_loop) + Quark quantized linears (amd-quark), on ROCm or CUDA. - Same architecture/behavior as the original: looped MoE, hybrid attention, vision input, MTP head (speculative decoding supported via
mtp.safetensors). - Runs where the original runs; smaller footprint: ~15.4 GiB (this) vs ~20 GB (original) vs 53.5 GiB (BF16).
Serving with Radiance
Radiance (an OpenAI-compatible inference server) supports this architecture natively (arch/inkling2, added upstream; reference-verified against llama.cpp). Two routes:
Route A — release-format weights (recommended, stock recipe):
OpenUncensored/Inkling-2-Mini-Uncensored carries the same abliteration edit as this model (the 20 attn.wo_ud projections of layers 4-23) in the release's native format (NVFP4 + MXFP8 experts, everything else BF16) — i.e. this model without the MXFP4 re-quantization. Convert it with radiance's stock recipe:
huggingface-cli download OpenUncensored/Inkling-2-Mini-Uncensored --local-dir ckpt-unc
rad-convert ckpt-unc -o inkling2-mini-unc.rad \
--recipe data/recipes/inkling2-mini.recipe # from the radiance source tree
radiance --config radiance.yaml # see the field-test package for a validated config
Yields the ~17.6 GiB container upstream ships and golden-verifies for this model family (NVFP4 experts kept as stored, MXFP8 experts re-quantised to rotated int8, everything else as shipped).
Route B — this checkpoint (Quark MXFP4, open format):
MXFP4 (e2m1 codes + e8m0 exponents per 32 of K) is not in the stock recipe's expert set, so serving this container directly uses a custom recipe (shipped in our field-test package as inkling2-mini-ours-mxfp4.recipe): the routed experts of all 24 layers are re-quantised to radiance's rotated-int8 grid (one BF16 scale per row/128-of-K, FWHT-128 rotation, round-to-nearest with scale search — no calibration data), and the other MXFP4 tensors (attention projections, sconv weight projections, attention gate/sink, loop-controller message gates — this quantization covers the full LM, not just experts) are de-quantised to BF16 losslessly (an e2m1 code times a power of two is exact in BF16). Because this repo's tensors use flat HF names and this quantization layout, a name-mapping prep step (checkpoint_prep.py, in the field-test package) first stands the checkpoint in the release layout: stacked de-quantised expert tables (gate/up rows interleaved per the plugin), renamed attention/controller tensors, and the stock hf_quant_config.json dropped.
huggingface-cli download mostwanted002/Inkling-2-Mini-abliterated-Quark-AWQ-MXFP4 --local-dir ckpt-mxfp4
python3 checkpoint_prep.py ckpt-mxfp4 ckpt-mxfp4-prepared # release-layout prep (see its --help)
rad-convert ckpt-mxfp4-prepared -o inkling2-mini-mxfp4.rad \
--recipe inkling2-mini-ours-mxfp4.recipe
radiance --config radiance.yaml
Expected container: ~12-15 GiB (rotated-int8 experts + BF16 trunk) — smaller than Route A's 17.6 GiB.
Build note (both routes, target card): build radiance from source with amdclang++ as the C++ host compiler (g++ 13 rejects a compound-literal macro in the tree):
git clone https://codeberg.org/StillDeadcode/radiance && cd radiance
export CC=clang CXX=$(dirname $(which hipcc))/amdclang++
cmake -S . -B build -G Ninja -DRAD_GPU_TARGETS=<gfx target> -DCMAKE_INSTALL_PREFIX=$PWD/install
cmake --build build -j$(nproc) && cmake --install build
export RADIANCE_HOME=$PWD/install/share/radiance
Drafter (both routes): the checkpoint ships the DSpark/MTP speculator as mtp.safetensors (BF16), but arch/inkling2 in the current radiance release does not serve it (its "WHAT IT DOES NOT SERVE" list: "the DSpark draft ... refused by name"). Expect timings.draft_n = 0, and do not --add mtp.safetensors into the conversion — the merged drafter tensors are refused at startup by name. Speculation for this arch lands in a later radiance release.
Credits
- Base model: Thinking Machines (
thinkingmachines/Inkling-2-Mini, Apache-2.0). - Abliteration: OpenUncensored (
OpenUncensored/Inkling-2-Mini-Uncensored,openuncensored.com— write-up andedit.pt/rank-2 LoRA for the edit are published there). - Verification + quantization: mostwanted002 (Quark AWQ MXFP4, MI300X).