license: apache-2.0
base_model:
- thinkingmachines/Inkling-2-Mini
- OpenUncensored/Inkling-2-Mini-Uncensored
- davetha/Inkling-2-Mini-Uncensored-EXL3-B70
base_model_relation: quantized
pipeline_tag: image-text-to-text
tags: - iqr
- gptq
- 4-bit
- hadamard
- int8
- uncensored
- abliterated
- moe
- inkling
- inkling2
- inkling-2-mini
- intel
- intel-arc
- xpu
- arc-pro-b70
- vllm
Inkling 2 Mini Uncensored, IQR 4-bit experts (Intel Arc Pro B70)
Inkling 2 Mini with the
OpenUncensored refusal edit, with its routed
experts re-quantised to a Hadamard-rotated GPTQ 4-bit format ("IQR") that a dedicated int8 XMX kernel reads on the
Intel Arc Pro B70. It has the same quality as the EXL3 4bpw build
(davetha/Inkling-2-Mini-Uncensored-EXL3-B70)
and is 32-48% faster at prefill and 17-46% faster at decode on the same card. This is the exact checkpoint that runs
in production on a single 32 GB B70, served by theb70-prod branch of our fork of
Danmoreng's B70 stack on vLLM 0.34.
Community: Launch80 Discord. Most members run AMD R9700s, and a small group runs Intel Arc.
What it is
- Edit: OpenUncensored's directional ablation of the BF16 attention output projections
attn.wo_ud(layers 4
to 23, rank-2). Refusals on a 16-prompt set: 0 / 16 (the original refuses 6 / 16). - Routed experts (all 24 layers x 128 experts): unpacked losslessly from the original NVFP4 (layers 0-19) and
MXFP8 (layers 20-23) weights, then quantised with GPTQ to 4 bits:- input dimension rotated by a block-diagonal normalised Walsh-Hadamard transform of width 128 (
fwht128); - signed 4-bit codes (
code - 8, -8..7), two per byte along K, low nibble = even k; - one BF16 scale per (output row, 128 of K), so 4.125 bits per weight including scales;
- GPTQ on the rotated, routing-weighted Hessians of a 1.0M-token calibration set (491 x 2,048 tokens of chat,
code, tool calls and multilingual text), damping 0.01, scale grid search per group.
At run time the kernel rotates and quantises the activations to int8 (one scale per row and 128) and runs int8 x
int4 DPAS on the B70's XMX units.
- input dimension rotated by a block-diagonal normalised Walsh-Hadamard transform of width 128 (
- Everything else (attention, norms, embeddings, vision tower,
mtp.safetensorsDSpark drafter) is BF16 and
byte-identical to the EXL3 build, whose dense files come from grant-ai's EXL3 layout. - Files:
iqr-layer-00..23.safetensors(512 MB each, metadataformat: iqr-gptq4-v1, tensorsmodel.llm.layers.L.mlp.experts.{w13_codes, w13_scales, w2_codes, w2_scales}), the format description iniqr_config.json, and the EXL3 build's dense shards, drafter, tokenizer and configs.config.json
(quantization_config.quant_method: iqr),checkpoint.jsonandhf_quant_config.jsondescribe the IQR experts;
the serving code does not read these fields and takes the expert format fromINKLING2_EXPERTS=iqr4. Size about
16 GB.
The format follows the IQR idea described by Radiance (Apache-2.0,docs/IQR.md): Hadamard rotation plus a plain integer grid, so that the kernel can use integer matrix units. The
quantiser and the kernel are an independent implementation; no Radiance code is used.
Quality
Teacher-forced full-vocabulary KL against the original NVFP4/MXFP8 experts (same uncensored dense weights), 12 x
2,048 held-out tokens, 24,564 positions of chat, code and docs:
| Experts | Mean KL | Top-1 agreement | PPL (original 6.2693) |
|---|---|---|---|
| EXL3 4bpw | 0.0406 | 95.28% | 6.2469 |
| IQR GPTQ 4-bit | 0.0407 | 95.09% | 6.2526 |
| IQR GPTQ 4-bit + int8 activations (what the kernel computes) | 0.0408 | 95.16% | - |
On the shorter logprob probe run against the live server (4K text), IQR gives top-1 96.42% / KL 0.0087 against the
original and EXL3 96.91% / 0.0065.
Gates (live server): tool call, tool-result turn and coding check pass; refusals 0 / 16; 196,608-token needle
retrieval passes; reasoning effort low/medium/high, streaming and multi-turn behave as with EXL3.
IQR vs EXL3 experts (A/B, 2026-11-23)
One B70 at its stock 230 W limit, one request at a time, FP8 KV cache, 262,144-token server profile, DSpark
speculative decoding plus n-gram copy drafting, INKLING2_PREFILL_PROFILE=optimized with a 4,096-token chunk.
Back-to-back A/B on the same server build (vLLM 0.34 port of Danmoreng's stack), two runs each:
| Workload | EXL3 4bpw | IQR 4-bit | Change |
|---|---|---|---|
| 4K prompt, prefill tok/s | 3,012 | 4,458 | +48% |
| 196,608-token prompt, prefill tok/s | 2,168 | 2,859 | +32% |
| 196,608-token prompt, decode tok/s | 73 | 107 | +46% |
| 4K prompt, decode tok/s (3 seeds) | 131 | 148 | +13% |
| Fresh sampled generation, decode tok/s | 78 | 96 | +23% |
| Copy-heavy coding edits, greedy, tok/s | 262 | 306 | +17% |
| Copy-heavy coding edits, sampled, tok/s | 252 | 320 | +27% |
On Danmoreng's current main (vLLM 0.33, his default four-slot coding profile with adaptive DSpark up to 7 proposals,
optimized prefill, no n-gram drafting), one run each: 4K prefill 3,773 -> 4,993 tok/s (+32%), sampled generation 82.1
-> 96.5 tok/s (+18%), copy-heavy greedy 159.5 -> 198.7 tok/s (+25%); tool calls and his four-client batching check
(greedy parity, abort and turnover) pass with both.
Per MoE layer the kernel takes 68 us for one decode row (EXL3 100 us), 165 us for an 8-row verify step over about
20 experts (EXL3 272 us), and 6.6 ms for a 4,096-token prefill chunk (EXL3 15.5 ms).
How to serve
Use the b70-prod branch ofdavetha/intel-b70-inkling2-mini-vllm. It is Danmoreng's stack plus our additions (IQR experts, n-gram copy drafting,
prefill and decode kernel fusions) on vLLM 0.34.0, and its README has the full steps:
git clone -b b70-prod https://github.com/davetha/intel-b70-inkling2-mini-vllm.git
cd intel-b70-inkling2-mini-vllm
bash scripts/build-images-034.sh # vLLM 0.34.0 runtime + oneAPI builder images (1-2 h)
hf download davetha/Inkling-2-Mini-Uncensored-IQR4-B70 --local-dir models/iqr4-unc
export INKLING2_RENDER_NODE=/dev/dri/by-path/pci-0000:03:00.0-render # your B70
bash scripts/build-b70-prod.sh # kernels into .work/build/
bash scripts/serve-b70-prod.sh # http://127.0.0.1:8093/v1, model inkling2-mini-exl3-b70
The served model name is inkling2-mini-exl3-b70. The chat template and reasoning_effort handling are the base
model's. The iqr-experts branch
(docs/IQR.md) describes the format, the kernel checks and how to rebuild this checkpoint from the original weights.
Settings (b70-prod profile)
scripts/serve-b70-prod.sh on the b70-prod branch sets these values, and each one can be overridden from the environment.scripts/serve-coding-agent.sh dspark and scripts/serve-vllm-exl3.sh set the rest of the profile.
| Variable | Value | Meaning |
|---|---|---|
INKLING2_MODEL_DIR |
models/iqr4-unc |
Checkpoint directory, relative to the checkout |
INKLING2_EXPERTS |
iqr4 |
Routed experts from the IQR GPTQ-4 library (exl3 for the EXL3 checkpoint) |
INKLING2_HOST / INKLING2_VLLM_PORT |
127.0.0.1 / 8093 |
API bind address and port (our server uses 0.0.0.0 / 8202) |
INKLING2_DEADLINE_EPOCH |
4102444800 |
Container stop time. The upstream default is 22:44 Europe/Berlin each day |
INKLING2_RENDER_NODE |
upstream default pci-0000:03:00.0 |
B70 render node, set it for your machine |
INKLING2_RUNTIME / INKLING2_BUILDER |
local/b70-inkling-vllm:034-runtime / local/inkling2-oneapi-034:2026.1.1 |
Images from scripts/build-images-034.sh |
INKLING2_CXX_STD |
c++20 |
C++ standard for kernel builds (the 0.34 builder needs C++20) |
INKLING2_ONEDNN_DETERMINISTIC |
1 |
Fixed oneDNN reduction order, so the same GEMM gives the same bits on every run |
INKLING2_NGRAM_DRAFT |
1 |
Copy drafts: continue the longest earlier match of the trailing n-gram. DSpark drafts otherwise |
INKLING2_NGRAM_MIN / INKLING2_NGRAM_MAX |
3 / 32 |
Shortest and longest n-gram matched |
INKLING2_NGRAM_DEPTH |
7 |
Copied draft length and vLLM num_speculative_tokens |
INKLING2_NGRAM_NOCOPY |
1 |
Pass only each draft's valid width to the scheduler, not a copy of the tokens. Output is exact |
INKLING2_DRAFT_MAX |
3 |
DSpark draft tokens per step when there is no n-gram match |
INKLING2_PREFILL_PROFILE |
optimized |
Danmoreng's accelerated prefill flag set (see serve-coding-agent.sh) |
INKLING2_VLLM_BATCH |
4096 |
Prefill chunk (--max-num-batched-tokens) |
INKLING2_LOCAL_BIAS_TILE |
64,256,8 |
Tile (rows, cols, warps) of the local relative-bias table kernel. Output is bit-identical for any tile |
INKLING2_PREFILL_GLUE |
1 |
Fused prefill glue kernels, bit-exact |
INKLING2_PREFILL_REL_BIAS |
1 |
Relative bias computed inside the 256-GRF prefill attention kernel (inkling2-rel-attention.so) |
INKLING2_PREFILL_GLOBAL_TABLE |
1 |
One-pass global-attention bias table |
INKLING2_DECODE_XMX256 |
1 |
Decode XMX attention from the 256-GRF AOT library (inkling2-decode-xmx.so), no spills |
INKLING2_DECODE_CASTS |
1 |
Cached FP32 norm weights, int32 positions once per step, BF16 q converted in the XMX kernel |
INKLING2_DECODE_XMX_LIB |
/lab/.work/build/inkling2-decode-xmx.so |
Decode attention library (path inside the container) |
Fixed by the launchers: DSpark with probabilistic drafts (top-k 20) and block verification, FP8 E4M3 KV cache
(4,311,744,512 bytes), 262,144-token context, one sequence, prefix reuse for the most recent sequence, and XPU decode graphs.
Adaptive DSpark (INKLING2_DSPARK_ADAPTIVE=1) cannot be combined with NOCOPY.
Measured on one Arc Pro B70 (b70-prod profile)
These numbers come from our tuning log, on one B70 with one request at a time and the full 262,144-token profile.
We report each value as the range over two back-to-back runs. The b70-prod column uses the current production settings (runs of 2026-11-24/25).
| Benchmark | b70-prod | Danmoreng main, same harness |
|---|---|---|
| Prefill, 4K cold prompt (tok/s) | 5,842–5,875 | 3,736–3,800 |
| Prefill, 64K cold prompt (tok/s) | 4,723–4,726 ¹ | 3,271–3,288 |
| Prefill, 192K cold prompt (tok/s) | 3,364–3,395 | 2,571–2,574 |
| Decode after 4K, greedy (tok/s) | 159.5–160.3 | 64.3–66.5 ² |
| Decode after 192K, greedy (tok/s) | 112.7–113.1 | 49.0–50.4 ² |
| Fresh generation, sampled (tok/s) | 105.3–105.4 | 82.1 ³ |
| Copy-heavy code edits, greedy (tok/s) | 327.8–328.2 | 159.5 ³ |
| Copy-heavy code edits, sampled (tok/s) | 308.6–309.3 ⁴ | not measured |
How we measured:
- Prefill and decode use
scripts/bench-sycl-baseline.py, which reports vLLM's own prompt and decode rates.
Each prompt is a cold synthetic logbook with an embedded code to retrieve, followed by 128 greedy output tokens.
4K is the median of three prompts (seeds 37-39) after one warm-up request. Individual 4K prompts decode at
157-237 tok/s, depending on how well the drafts match. 64K and 192K are single prompts. Retrieval passed in every row. - Fresh generation uses six write-new-code and explain prompts at the model's default sampling, with thinking off and a
natural stop (at most 1,024 tokens). The rate is completion tokens divided by wall time. - Copy-heavy runs paste eight 120-250 line Python files and ask for each whole file back with one small edit (thinking off).
- These two harnesses are local scripts and are not in this repo.
- Danmoreng column: his main at
92e2347on vLLM 0.33 with the EXL3 4bpw checkpoint and his default coding profile
(4 slots, adaptive DSpark up to 7 drafts,INKLING2_PREFILL_PROFILE=optimized), measured on 2026-11-24.
¹ Measured with the current prefill settings, before the two decode changes (those changes do not touch prefill).
² Per-prompt 4K decode was 63.5 / 111.9 / 66.5 tok/s. In our tests, adaptive DSpark stops proposing on two of the
three random-digit logbook prompts, so this benchmark understates his decode on ordinary text.
³ EXL3 uncensored checkpoint on his main plus our IQR PR branch code (the EXL3 path is unchanged), same 4-slot
adaptive profile, 2026-11-23. Single runs.
⁴ Last measured with INKLING2_DECODE_XMX256=1 before INKLING2_DECODE_CASTS=1 was added. Not re-measured since.
Uncensored: read this
This model answers requests that the original refuses, including harmful ones. It has no safety layer of its own.
You are responsible for how you deploy it and for what it is used to produce; add your own filtering where the use
case needs it, and follow the law where you run it.
Credits
- Thinking Machines: Inkling 2 Mini.
- OpenUncensored: the refusal-direction edit.
- Danmoreng: the vLLM and SYCL serving stack for the
Arc Pro B70 this runs on. - sybil-solutions/trellis-serve: the Trellis operators that stack
builds on. - grant-ai: the EXL3 4bpw checkpoint layout the dense,
drafter and tokenizer files come from. - Radiance: the IQR format idea (Hadamard-rotated integer weights).
Licence
Apache-2.0. The base model, the OpenUncensored edit and the EXL3 build the dense files come from are all published
under Apache-2.0. The IQR quantisation is our own work, also released under Apache-2.0.