Instructions to use hermitdave/Inkling-2-Mini-MLX-RCO-4.5bpw with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use hermitdave/Inkling-2-Mini-MLX-RCO-4.5bpw with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download hermitdave/Inkling-2-Mini-MLX-RCO-4.5bpw --local-dir Inkling-2-Mini-MLX-RCO-4.5bpw
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Inkling-2-Mini โ MLX RCO 4.5 bpw
RCO (rate-constrained optimisation) mixed-precision affine quantisation of
thinkingmachines/Inkling-2-Mini,
built with the rco-mlx pipeline on Apple Silicon.
Inkling 2 Mini is a 26.4 B-parameter looped MoE VLM: 24 physical decoder layers of which the middle 12 run three times per token (48 layer visits), 128 routed experts with top-8 routing, a 23-layer vision tower, and โ in the published checkpoint โ a DSpark MTP draft.
Metrics
Measured on an M3 Max 64 GB. Perplexity, KL and top-1 use 8 WikiText-2 rows ร
256 tokens with the native NVFP4 checkpoint as the reference โ its own PPL
on those same rows is 10.5150. Note eval_quality.py loads the reference only
to score KL/top-1 and never prints its PPL, so the delta is not readable off
that script alone. Zero-shot is 5 tasks ร 400 samples; recovery is
quant_acc / reference_acc.
| Metric | Value |
|---|---|
| Perplexity (WikiText-2, 8ร256 rows) | 10.6018 (native NVFP4 10.5150, +0.09) |
| KL vs native NVFP4 checkpoint | 0.0249 |
| Top-1 agreement vs native | 92.99 % |
| Zero-shot recovery (5 tasks, n=400) | 0.9906 mean โ TASK-LOSSLESS (arc_challenge 0.996, arc_easy 1.000, hellaswag 0.995, winogrande 0.966, mmlu 0.996) |
Decode tok/s (local mlx_lm, 128 tok) |
30.9 (native NVFP4 28.6) |
| Prompt tok/s | 309 (native 264) |
| Peak RAM | 16.87 GB (native 19.82 GB) |
Sizes
| Published checkpoint | This quant | |
|---|---|---|
| Total size | 19.53 GB | 16.57 GB (4.46 bpw on quantized weights) |
| Routed experts | 15.67 GB (NVFP4 + MXFP8) | mixed 3/4-bit affine |
| Attention + MLP gates | BF16 | mixed 6/8-bit affine |
Embeddings, lm_head, vision tower |
BF16 | BF16 (unchanged) |
Bitwidth histogram (224 quantized tensors): 8-bit ร 118, 6-bit ร 58, 4-bit ร 44, 3-bit ร 4.
What is quantised
- Routed experts: one pre-stacked tensor per (layer, projection), so each is a single RCO group. 44 at 4-bit, 4 at 3-bit.
- Attention projections (
q/k/v/r/o/gate/sink) and the full-attentionweight_proj: 58 at 6-bit, 118 at 8-bit. - Left in BF16:
embed_tokens,lm_head, every RMSNorm, the MoE router, the attention-residual / loop-message queries, the depthwiseconv1dkernels, the relative-logits table, the rank-64 message gates, and the whole vision tower.
Source provenance โ read this
The published checkpoint stores its routed experts as NVFP4 (layers 0โ19) and MXFP8 (layers 20โ23); everything else is already BF16. There is no BF16 release of Inkling-2-Mini. RCO needs float weights, so the experts were first dequantised to BF16:
NVFP4 : W = E2M1[nibble] * FP8_E4M3[block scale] * (amax / outer_scale_denominator)
MXFP8 : W = FP8_E4M3[value] * 2 ** (E8M0[scale] - 127)
This reconstruction is exact with respect to the shipped checkpoint but is not the original BF16: the NVFP4 rounding is already baked in. On the 20 NVFP4 layers the result can match native NVFP4, not beat it. The allocation is where RCO can still win โ it spends 6โ8 bit on the attention projections instead of the fixed scheme the published checkpoint uses.
Loading
Self-contained. This repo ships inkling2_loop.py, a single-file
implementation of the looped architecture, and config.json sets
"model_file": "inkling2_loop.py". That is the only hook mlx-lm has for an
architecture no release registers, so loading requires
trust_remote_code=True:
from mlx_lm.utils import load
model, tokenizer = load("hermitdave/Inkling-2-Mini-MLX-RCO-4.5bpw",
trust_remote_code=True)
Verified to load and generate on stock mlx-lm 0.32.2 with no patched tree
and no MODEL_REMAPPING entry, and on oMLX's bundled mlx-lm
(0.32.3.dev8). On the same runtime the standalone file is bit-identical to
the package build (max logit diff 0.0); across the two runtimes argmax agrees
on 100 % of positions (mean logit delta 0.09, different mlx builds).
inkling2_loop.py inlines the four mlx-lm internals the package build needed
(layers.common.splice, layers.distributed, layers.moe.SwitchLinear,
muse_spark.model.shard_experts_inplace) because a stock or oMLX mlx-lm has
no mlx_lm/layers/ package. It is generated by
rco-mlx/scripts/build_standalone_inkling2.py โ do not hand-edit.
The upstream implementation is draft PRs
#2086 (looped Mini) and
#2061. Until one lands in a
release, the model_file is what makes this artifact loadable.
The DSpark draft (mtp.safetensors, 636 MB, all BF16) is not included.
It is real and all-BF16 upstream, but the draft reads hidden states at loop
visits 5, 23, 41 and 48, so it is only usable by a runtime that implements the
loop โ and this one still has no MTP head.
oMLX
Wired into oMLX and serving correctly (verified 2026-11-21). Both load through
the shipped model_file; no patched tree is needed.
| measured | |
|---|---|
Load footprint (oMLX actual:) |
15.57 GB |
| Prefill tok/s (cold, ~4.5k ctx) | 669 |
| Decode tok/s (~4.5k ctx) | 27.4 |
Per-model settings (~/.omlx/model_settings.json):
"Inkling-2-Mini-RCO-4.5bpw": {
"trust_remote_code": true,
"model_type_override": "llm",
"mtp_enabled": false,
"ttl_seconds": 3600
}
trust_remote_code is mandatory โ the model_file is the only hook for an
architecture no release registers. model_type_override: "llm" forces the text
engine; the vision tower is present in BF16 but the image path is not wired.
Prefill numbers are cold: every request carried a unique prefix tag so oMLX's
prefix cache could not serve it.
Register it โ oMLX scans ~/llm-models exactly one level deep, then needs a
reload to pick up a new directory:
ln -sfn /path/to/Inkling-2-Mini-RCO-4.5bpw ~/llm-models/Inkling-2-Mini-RCO-4.5bpw
# add the settings entry above, then:
omlx restart # or: curl -X POST localhost:8000/admin/api/reload
curl -s localhost:8000/v1/models | grep -i inkling
Smoke test (a cold load takes ~5โ10 s, and requests return HTTP 409 until it finishes โ retry rather than concluding it is broken):
curl -s localhost:8000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model":"Inkling-2-Mini-RCO-4.5bpw","messages":[{"role":"user","content":"Say hello."}],"max_tokens":64}'
Attribution
Quantisation pipeline by Hermes Agent using rco-mlx
(hermitdave/rco-mlx). Model by
Thinking Machines Lab, Apache 2.0.
- Downloads last month
- 499
4-bit
Model tree for hermitdave/Inkling-2-Mini-MLX-RCO-4.5bpw
Base model
thinkingmachines/Inkling-2-Mini