Configuration Parsing Warning:In config.json: "quantization_config.bits" must be an int

Inkling-2-Mini-EXL3-3.33bpw

EXL3 quantization of thinkingmachines/Inkling-2-Mini (revision ed40e7da625f594fc9c4990f5f66be24873c22d7) for MLXL3, packaged for Apple silicon. The routed experts were requantized to EXL3 MCG trellis codes: 3 bits for the gate and up projections and 4 bits for the down projection of every expert in all 24 layers, 3.33 bits per weight on average over the expert projections (not a whole-checkpoint bitrate).

This revision is the slim packaging of that quantization (R3) with its vision encoder restored: 13.10 GB of language-model weights instead of 14.75 GB, plus 0.64 GB for the vision encoder in a file of its own. Only the 8-bit embedding table changes the outputs, by an amount within the measurement noise (see below).

  • The vision encoder is included again, in model-vision.safetensors: the 422 BF16 tensors model.visual.* (636,512,256 bytes of data), byte for byte those of revision 0a4558409fc77d6491979505c0668e7469f7b3f7. The four language-model shards and the drafter are the same files as the previous revision dde31cd0aea4ca0f61eaa5649559ef01e5baf25a, so an existing download only adds this file. Image input works in MLXL3 engine 2.0.29 or later (Desktop 2.0.21); older engines read text only and leave these tensors unused.
  • The output head is stored as the MLX affine 8-bit copy (group 64, the 200,058 real vocabulary rows) that MLXL3 computes from the BF16 head at load by default. In the previous revision the engine made exactly this copy itself.
  • The DSpark/MTP drafter (mtp.safetensors) stores its projections in MLX affine 8 bits, the precision MLXL3 runs them at by default. It also stores the fold of its Markov head, precomputed in FP32 from the BF16 head and rounded to FP16, because that fold cannot be recomputed from the 8-bit head.
  • The token embedding table is stored as an MLX affine 8-bit copy (group 64, all 201,024 rows); MLXL3 dequantizes the rows it looks up. This is the only lossy step of the packaging; its cost is measured below.
  • Experts, attention and dense projections, routers, norms and tokenizer are the same bytes as before.

Weights: 12,608,348,568 bytes for the language model, 636,563,512 bytes for the vision encoder and 493,122,668 bytes for the drafter.

hf download 0xzknw/Inkling-2-Mini-EXL3-3.33bpw --local-dir ./Inkling-2-Mini-EXL3-3.33bpw

Runtime

This revision needs MLXL3 engine 2.0.23 or later, and 2.0.29 or later for image input. Older engines stop at load ("expected floating-point weights"). Its language model and drafter are the files of revision dde31cd0aea4ca0f61eaa5649559ef01e5baf25a.

Engine Use the revision
2.0.29 or later (Desktop 2.0.21) this one: text and images
2.0.23 to 2.0.28 (Desktop 2.0.14 to 2.0.20) this one (text only), or any revision below
2.0.23 or later (Desktop 2.0.14) dde31cd0aea4ca0f61eaa5649559ef01e5baf25a: the same files without the vision encoder
2.0.22 (Desktop 2.0.13) a5763a01f6e34c84bdf1a5812c890ff3978d5d75: same packaging with a BF16 embedding table, outputs identical to R3
2.0.21 (Desktop 2.0.12) 0a4558409fc77d6491979505c0668e7469f7b3f7: R3 with BF16 head, drafter and embeddings, vision encoder included
2.0.20 (Desktop 2.0.11) d1248f8abc322dbaf82cd571f6e7eaca9f7d6dee: the earlier R2 quantization

Each Desktop version pins its revision and keeps working.

hf download 0xzknw/Inkling-2-Mini-EXL3-3.33bpw --revision a5763a01f6e34c84bdf1a5812c890ff3978d5d75

Text generation, image input (engine 2.0.29 or later) and the DSpark drafter are supported in MLXL3. These files are not a stock ExLlamaV3 checkpoint: the head and drafter use MLX's affine layout.

8-bit embedding table

Measured in MLXL3 on an Apple M5 against an exact local reference of the source model (experts dequantized exactly, BF16 head), on 12 held-out rows (6,144 positions; the same rows as the H100 evaluation, every 4th position). The first column is R3 (BF16 embeddings), the second the same model with 8-bit embeddings. Paired differences, with 95% bootstrap intervals:

Rows Positions KL, BF16 embeddings KL, 8-bit embeddings Difference [95% CI]
Prose (English, French, code) 4,608 0.01374 0.01393 +0.00019 [-0.00023, +0.00063]
English 1,536 0.01029 0.01017 -0.00012 [-0.00050, +0.00020]
French 1,536 0.01945 0.01994 +0.00049 [-0.00023, +0.00126]
Code 1,536 0.01147 0.01166 +0.00019 [-0.00077, +0.00114]
Agentic chat transcript 1,536 0.0996 0.1014 +0.0018 [-0.01535, +0.01866]
All 6,144 0.0352 0.0358 +0.0006 [-0.00381, +0.00500]

Top-1 agreement: 94.68% and 94.76% overall, 95.07% and 95.31% on prose. No difference is significant; the acceptance criterion fixed before the measurement (prose difference at most +0.0007 nats, upper bound at most +0.0014) was met.

Slim packaging check

Checked in MLXL3 on an Apple M5, default settings (8-bit head, 8-bit drafter projections), on revision dde31cd0aea4ca0f61eaa5649559ef01e5baf25a, whose language-model and drafter files this revision keeps unchanged:

  • that revision gives the same results bit for bit as revision a5763a01f6e34c84bdf1a5812c890ff3978d5d75 with its embedding table rounded to 8 bits at load (MLXL3_INKLING_EMBED_BITS=8, the setting measured above): fingerprint of all logits over 128 greedy decoding steps, a DSpark block's drafter states and proposals, DSpark generation at widths 2 and 3, and the KL on two held-out rows;
  • revision a5763a01f6e34c84bdf1a5812c890ff3978d5d75 gives the same results bit for bit as R3 (0a4558409fc77d6491979505c0668e7469f7b3f7);
  • every other tensor was copied byte for byte, checked by SHA-256 of its content. slim_report.json lists every copied, removed and replaced tensor and the hash of every file.

Vision encoder

The encoder described by vision_config in config.json: a 23-layer vision transformer (width 1024, 16 heads, MLP ratio 4, 32 × 32 learned position grid) on 20-pixel patches, merged 2 × 2 and projected (hidden size 4096, no bias) to one 2304-wide language-model token. processor_config.json describes the input: one image token (<|unused_200054|>) per 40 × 40-pixel tile, pixels scaled to [-1, 1].

Restoring it changes no other tensor. Checked statically, without loading the model:

  • the 422 tensors of model-vision.safetensors have the dtype, shape and bytes of revision 0a4558409fc77d6491979505c0668e7469f7b3f7 (model-00001-of-00004.safetensors, SHA-256 6ecfe49df1cd3e3fce123a00627185839559f4b8998810f31e95d0579efe17ab); vision_report.json lists the SHA-256 of every tensor's content;
  • model.safetensors.index.json maps them to model-vision.safetensors and leaves every other entry unchanged; quantization_config.json gets back the 235 model.visual.* storage entries of that revision, every other entry unchanged; config.json only changes its mlxl3_slim note;
  • the files follow the layout rules MLXL3 checks when it opens a checkpoint (contiguous tensors without gaps, every indexed tensor in its shard, every stored tensor present with its shape).

Checked in MLXL3 engine 2.0.29 on an Apple M5 against Hugging Face Transformers 5.24.0.dev0 (Inkling2ImageProcessor, Inkling2VisionModel with these tensors, on the CPU), on a 210 x 130 test picture (24 image tokens):

  • pixel values identical to the bit, and prompt tokens identical (chat template with one placeholder per image token);
  • with exact FP32 matrix products, the engine's image features differ from the FP32 reference by 5e-6 (relative L2);
  • MLXL3 runs the encoder with FP32 activations from the BF16 weights: its features are 0.40 % from the FP32 reference, while the reference itself run in BF16 is 1.9 % away;
  • in the language model, the image features change the logits as expected, and a prefill cut inside the image gives the same result; text-only prompts give the same logits as before, to the bit;
  • end to end, the model reads the text of a picture exactly and describes the shapes, colours and positions of another, greedy and sampled, with and without the DSpark drafter.

MLXL3 reads a picture at its native resolution, one image token per 40 x 40 pixels, up to 1920 x 1080 by default (MLXL3_INKLING_IMAGE_MAX_PIXELS); a larger picture is scaled down, keeping its aspect ratio.

Fidelity

KL(reference ‖ quantized), nats/token, on held-out rows of 2,048 tokens that share no 64-token span with the calibration data. Reference: the source model with its experts dequantized exactly, run in BF16 with Hugging Face Transformers on an H100. Quantized: the decoded EXL3 weights in the same pipeline. Top-1 is argmax agreement.

Held-out set KL, R1 3.0 bpw KL, R2 (previous version) KL, this version Top-1, R2 Top-1, this version
All (24,564 positions) 0.0381 0.0336 0.0280 94.22% 94.66%
English prose 0.0150 0.0117 0.0106 94.77% 95.41%
French prose 0.0284 0.0247 0.0202 91.97% 92.56%
Rust code 0.0138 0.0133 0.0125 97.23% 97.15%
Agentic chat transcript 0.0954 0.0845 0.0689 92.88% 93.52%

All three conversions use the same source, versions, calibration and evaluation, so the columns are directly comparable. This version has exactly the same size as the previous one (R2) and lowers the mean KL by 17% overall and in every domain.

The chat transcript mixes text the model writes with prompt text it never generates (system prompt, JSON tool schemas, tool outputs). On the 1,649 positions whose next token the model writes, this version has KL 0.0126 and top-1 96.79%; on the 4,492 positions of prompt text, KL 0.0895.

MLXL3 engine check on this checkpoint (Apple M5, MLX 0.32.2, FP16 Metal against the CUDA BF16 oracle of the same quantized weights): on a 1,200-token row (sliding window crossed, last 64 positions) the median relative RMSE of centered logits is 2.1% (maximum 7.2%), argmax agreement 96.9%, and KL(oracle || engine) 0.0009 nats/token; on two short chat prompts (26 and 33 tokens) argmax agreement is 96-100%. Against an independent exact reference of the source model run locally in the same engine (9 held-out prose rows, 4,608 positions), this version has KL 0.0137 and top-1 95.07%, against 0.0156 and 94.60% for the previous version. With engine 2.0.21 on an Apple M5 (24 GB, AC power), greedy decoding with the DSpark drafter runs at about 25-31 tokens/s on short answers (plain decoding: about 19.6), and sampled long-form text at about 17-18 tokens/s, close to plain decoding (about 18.4); single runs. No bit-exact parity with the CUDA oracle is expected or claimed.

Limits

  • Mean KL and top-1 only; no task benchmarks (MMLU, coding suites, ...) were run.
  • Isolated positions can still diverge strongly (maximum per-position KL 12.9 overall, mostly on prompt text of the chat transcript).
  • The chat domain is a single agentic transcript.
  • Image input was checked against the reference encoder and on two synthetic pictures only; no visual benchmark was run.
  • Long contexts beyond the evaluated rows and sampling quality were not validated.

Recipe

  • ExLlamaV3 1.6.7+cu128.torch2.10.0 quantizer (quantize_exl3_batch), codebook MCG, scaled Hessian, refit, automatic output scales from the real activation slopes, sigma regularization 0.025.
  • Per-expert Hessians weighted by router affinity (eps 0.01); sequential stages of 3 layers, each layer calibrated on all three passes of the looped block (layers 6–17).
  • Calibration: 283 rows × 2048 tokens (579,584 tokens): 250 rows of ExLlamaV3's default calibration mix and 33 rows of chat transcripts from ExLlamaV3's evaluation prompts, rendered with the model's chat template.
  • Bit allocation: chosen from a local study against an exact reference of the source model (restoring groups of layers and projections to the reference, and real 3/4-bit hybrids): per byte, a bit spent on the down projection lowered the KL about 3 times more than on gate/up, and the previous version had put most of its 4-bit layers where restoring them helped least (layers 0, 2, 4), while layers 18–23, all at 3 bits, cost the most. Down therefore gets 4 bits in every layer, gate and up 3 bits; the previous version gave 4 bits to all three projections of 8 layers. The whole model was requantized from scratch.
  • Hardware: one NVIDIA H100 80GB, 4,167 s, peak 68.92 GiB. Torch 2.10.0+cu128, Transformers 5.24.0.dev0.

quantization_report.json (per-module recipe, statistics and file hashes) and quantization_config.json (tensor layout read by MLXL3) are included.

  • Slim packaging, done after quantization:

    • drop the vision encoder (restored in this revision, in model-vision.safetensors);
    • store the 8-bit head copy and the 8-bit drafter projections exactly as MLXL3 computes them at load;
    • store the drafter fold;
    • store the 8-bit embedding table.

    quantization_report.json describes the EXL3 conversion; its file hashes are those of revision 0a4558409fc77d6491979505c0668e7469f7b3f7.

Files

File Bytes SHA-256
model-00001-of-00004.safetensors 2,787,052,300 b1ca6d03f5ba821fad16bea104f282743d5899fb43527228cba3da31854ef0d6
model-00002-of-00004.safetensors 4,296,105,484 58acbcbac2d7aa5fb821589a3b4e346432dd8ed254fa17801b9000147c08f3d6
model-00003-of-00004.safetensors 4,296,119,260 3ecde06961828acdc78db09ecca64b35d6e39771a219df966d67157390bfa0b3
model-00004-of-00004.safetensors 1,229,071,524 4c6216189d62a554469a0d0199796d8ba9c460085312a069bdf368f714c02072
model-vision.safetensors 636,563,512 2d1341e9933ac4821c9b1665892f8f7bf55acde532e5704dc5dd0f5f804e9027
mtp.safetensors 493,122,668 4e4254a98dca313ac718b8c9ce6554a92c20fbd98abda6d7e40d1a259cb108d8

License and credits

Apache 2.0, as the source model; see NOTICE for the modifications. The Thinking Machines Lab model acceptable use policy applies to the source model.

Downloads last month
203
Safetensors
Model size
6B params
Tensor type
F32
·
BF16
·
F16
·
I16
·
U32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for 0xzknw/Inkling-2-Mini-EXL3-3.33bpw

Quantized
(364)
this model

Collection including 0xzknw/Inkling-2-Mini-EXL3-3.33bpw