Instructions to use StillDeadcode/inkling-2-mini-iq4r-v4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Trellis
How to use StillDeadcode/inkling-2-mini-iq4r-v4 with Trellis:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Inkling 2 Mini IQ4R-V4 + DFlash2 β radiance container
thinkingmachines/Inkling-2-Mini 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.
| File | inkling-2-mini-iq4r-v4.rad β 14.43 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 model itself (538K tokens of code, tool calls, reasoning, web text and German / multilingual documents). The release ships layers 0β19 in NVFP4 and 20β23 in MXFP8; both are dequantised exactly first, so GPTQ fits the release's own weights. 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 |
| Vision | the 23-block vision tower, bf16: images in chat requests |
| Needs | radiance 2.3.0 or later |
Quality
Against the release's weights (its NVFP4 experts as stored, the four MXFP8 layers' experts at rotated int8, the trunk bf16), radiance's KL mode over 97 documents of English, German and code (115,522 positions, the reference's 512 most likely tokens and the tail):
| mean KL | median | p99 | top-1 agreement | perplexity (reference 2.884) | |
|---|---|---|---|---|---|
| this container | 0.0066 | 0.00083 | 0.073 | 97.6 % | 2.896 |
| all-int8 experts (26.1 GiB) | 0.0042 | 0.00037 | 0.052 | 98.2 % | 2.893 |
Speed
2Γ Radeon AI PRO R9700 (gfx1201), tp: 2, int8 KV cache, 200K context, greedy, 400 tokens a
request, drafter at depth 7 with draft-window: adaptive, tok/s (tokens a step in brackets),
medians of two interleaved rounds against the same target with the release's own DSpark drafter:
| prompts | streams | this container (DFlash2) | same target, DSpark |
|---|---|---|---|
| essays | 1 | 190 (2.59) | 152 (1.92) |
| 4 | 427 (9.43) | 344 (7.09) | |
| 8 | 658 (19.1) | 512 (14.6) | |
| code | 1 | 240 (3.50) | 203 (2.80) |
| 4 | 550 (13.5) | 419 (10.1) | |
| 8 | 790 (25.7) | 629 (20.3) | |
| step-by-step arithmetic | 1 | 358 (5.39) | 253 (3.73) |
| 4 | 811 (20.7) | 589 (14.4) | |
| 8 | 1116 (39.9) | 803 (26.8) |
A step costs the same with either drafter (13.5β14.6 ms at one stream); DFlash2 is ahead by accepting more of its drafts. The all-int8 container decodes 124 / 263 / 386 tok/s on the essays.
Serve
# radiance.yaml
server:
host: 0.0.0.0
port: 8000
models:
inkling-2-mini:
model: inkling-2-mini-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. The same configuration with tp: 1 serves it on
one 32 GB card.
How this file was made
# 1. Hessians, recorded by serving an Inkling container with a calibration corpus
# (this file's were recorded from the all-int8-expert container; radiance 2.3.0 records them
# from the bf16 container that data/recipes/inkling2-mini-bf16.recipe writes)
radiance --config cal.yaml # calib-corpus: corpus.jsonl, calib-dir: calib/
# 2. the container, then its vision tower
CALIB=calib rad-convert Inkling-2-Mini --recipe inkling2-mini-iq4r-v4.recipe \
--draft-model Inkling-2-Mini-DFlash2 --max-ctx 200000 -o inkling-2-mini-iq4r-v4-text.rad
rad-convert Inkling-2-Mini --add-vision inkling-2-mini-iq4r-v4-text.rad -o inkling-2-mini-iq4r-v4.rad
The recipe is inkling2-mini-iq4r-v4.recipe in this repository; everything it does not name is the
checkpoint's own.
License
Apache 2.0, as the base model and the DFlash2 drafter; see LICENSE. The base model's
acceptable use policy applies. The
drafter is incoai's (DFlash 2, built on
DFlash).
- Downloads last month
- -
Model tree for StillDeadcode/inkling-2-mini-iq4r-v4
Base model
thinkingmachines/Inkling-2-Mini