Inkling-2-Small-DERISKED-Cyber-2.55bpw, by Mia's AI Lab
Mia's AI Lab's EXL3 quantization of Blackfrost-Research/Inkling-2-Small-Derisked,
the 48-layer Inkling-2-Small MoE (Inkling2ForConditionalGeneration, 384 routed experts per layer, top-8, no shared
experts). Only the routed experts are quantized, at an average of 2.55 bits per weight with the mcg codebook.
Everything else is copied byte for byte from the Derisked release: attention, router, norms, embedding, head, the
vision tower and the MTP head.
| Size | 205.3 GB (191.2 GiB), 72 shards + mtp.safetensors, 222,602 tensors |
| Routed experts | EXL3, 2/3/4 bits per projection by layer (2.549 bpw average), mcg codebook, output scales |
| Attention, router, norms, embedding, head, vision tower | BF16 / FP32 as in the source, unchanged |
MTP head (mtp.safetensors) |
byte for byte from the source |
What is in the checkpoint
| Part | Format | Source |
|---|---|---|
| Routed experts, layers 0-47 (55,296 projections: gate, up, down) | EXL3 (trellis, suh, svh, mcg), 2-4 bits a weight, mcg codebook, output scales |
quantized from the Derisked release's NVFP4 (layers 0-39) and MXFP8 (layers 40-47) experts, dequantized exactly to fp32 first |
Everything else in model-dense-*.safetensors |
BF16 / FP32 as in the source | byte for byte from the Derisked release |
mtp.safetensors |
BF16 | byte for byte from the Derisked release |
| Tokenizer, chat template, generation and processor config | the Derisked release |
config.json carries quantization_config = {"quant_method": "exl3", "expert_bpw": 2.55, "head_bits": 16, "codebook": "mcg", "out_scales": "always"}.
2.55 bpw refers to the routed experts (the runtime reads each tensor's bit width from the tensors themselves). plan.json gives the bits per projection by layer, quantization_details.json
and quant_layers/*.json record the per-layer calibration counts, timings and errors.
The Derisked release differs from upstream thinkingmachines/Inkling-2-Small only in 18 BF16 attention-writer tensors
(attn.wo_ud, layers 20-37); its expert weights are byte-identical to upstream.
How it was made
- Converter: our exllamav3 fork (v1.4.2 with the mcg codebook), driven layer by layer by the Hugging Face Inkling-2 reference implementation (transformers 5.24.1), so there is no architecture port in the conversion path.
- Sequential: each layer's Hessians are captured on the model with all earlier layers already quantized.
- Per-expert Hessians of the gate/up and down inputs, with expert balance (alpha 0.1, floor 1,024): every expert is calibrated even when calibration routes few tokens to it. Gate and up share one input transform per layer.
- Bits by layer (gate/up/down), chosen by block tests (exact experts restored six layers at a time) and single-layer
tier swaps, measured in KL on held-out text:
- 3/3/3: layers 0, 30-35, 40, 41
- 2/2/4: layers 1-3, 5, 11, 17, 23, 29, 36-39, 42
- 2/2/3: all other layers
- Calibration: our own English hybrid set, 439 rows of up to 4,096 tokens, 785,880 tokens in total, rendered with the
Inkling chat template at
reasoning_effort="max"(SHA-256bb1f56a2...):
| Category | Tokens |
|---|---|
| Repository coding | 252,409 |
| Tool-call exchanges | 196,608 |
| Math reasoning | 65,536 |
| Algorithmic coding | 65,536 |
| Multi-turn chat | 65,536 |
| English reference text | 61,440 |
| Defensive security | 39,122 |
| Offensive security | 38,412 |
| Coding workflows | 1,281 |
Fidelity
Scored against Inkling-2-Small-Derisked itself (its NVFP4/MXFP8 experts dequantized exactly), so the numbers measure quantization error only, not the derisking's distance from stock Inkling-2-Small. Eval set: 42 held-out rows, 160,109 tokens (99,616 written by the model): math and code with thinking, tool calls, and whole multi-turn chat conversations, none of it used for calibration. Metric: full-vocabulary KL divergence (nats per token) and top-1 agreement; "model text" counts positions inside the model's own messages. 95% intervals are row bootstrap (2,000 resamples).
| Category | KL, model text | Top-1, model text | KL, all tokens |
|---|---|---|---|
| Math (thinking) | 0.0038 | 98.4% | 0.0054 |
| Code (thinking) | 0.0041 | 98.1% | 0.0116 |
| Tool calls | 0.0032 | 98.9% | 0.0204 |
| Chat (all) | 0.0116 [0.0103, 0.0129] | 96.3% | 0.0239 |
| All | 0.0088 [0.0074, 0.0103] | 97.0% | 0.0186 |
Perplexity of the eval text: 2.9288 (source) -> 2.9402 (this quant), +0.4%.
Stop decisions. At each of the 179 chat positions where a model message ends, we compare the probability of the stop token with the source's. A flip is when the two fall on different sides of 0.5; a confident flip is source > 0.9 and quant < 0.5, or the reverse. This quant: 13 flips, 4 confident, mean absolute change in P(stop) 0.066.
For scale, the same eval scores other Inkling-2-Small quantizations against their own source (stock Inkling-2-Small for the third-party builds, which differs from the Derisked model only in the 18 attention tensors above). Each number is quantization error against its own source, so this compares quantizations, not models:
| Build | Expert bpw | KL, model text, all | KL, model text, chat | Top-1, model text | Confident stop flips (chat, of 179) |
|---|---|---|---|---|---|
| This quant, EXL3 | 2.55 | 0.0088 | 0.0116 | 97.0% | 4 |
| kortexa-ai Inkling-2-Small-EXL3-2.59bpw | 2.59 | 0.0098 | 0.0125 | 96.8% | 9 |
| Evanguo12 Inkling-2-Small-EXL3-2.55bpw-2Spark | 2.55 | 0.0198 | 0.0275 | 95.5% | 8 |
| TensorFold Inkling-2-Small-TFQ-Compact (TFQ5, experts swapped into the Derisked model) | 2.54 | 0.0264 | 0.0330 | 94.6% | 16 |
KL measures closeness to the source's next-token distribution, not task accuracy. The eval reflects an English math, code, tool-use and chat workload; builds calibrated for other languages or domains may rank differently there.
License
The base model, Inkling-2-Small by Thinking Machines Lab, is released under the Apache 2.0 license. The Derisked release is distributed under its own terms (see Blackfrost-Research/Inkling-2-Small-Derisked). This quantization is distributed under the same terms; recipients are responsible for complying with the upstream terms of Thinking Machines Lab and of the Blackfrost-Research release.
Credits
- Base model: Thinking Machines Lab, Inkling-2-Small (Apache 2.0).
- Derisked release: Blackfrost-Research.
- Quantization format and converter: exllamav3 by turboderp (MIT).
- Serving engine: TensorFold.