--- language: en license: apache-2.0 library_name: mlx pipeline_tag: image-text-to-text base_model: - thinkingmachines/Inkling-2-Mini - nokeepai/Inkling-2-Mini-Prime-LoRA tags: - mlx - splash - lm-studio - inkling - vision - prime --- # Inkling-2-Mini-Prime — Splash The **Splash-ready MLX build** of Thinking Machines' [Inkling-2-Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini) (architecture `inkling2_loop`, 26B total / ~5.4B active, 1M context, vision; Splash family **Inkling-2-Mini**) with **nokeep's "Prime" add-on merged in** — the LoRA from [nokeepai/Inkling-2-Mini-Prime-LoRA](https://huggingface.co/nokeepai/Inkling-2-Mini-Prime-LoRA) (rank 32 / alpha 32, all linear layers) trained only on harmless tasks (debugging, maths, writing, everyday questions) to stop the base model's over-thinking / doom-loop behaviour. This is the stock, censored base model plus the Prime fix — for the uncensored variant see `Duckets/Inkling-2-Mini-Unbound-Splash`. Modern Splash (≥ 1.3.1) serves MLX checkpoints directly — there is no separate legacy Splash package format anymore. This repo carries the MLX 4-bit checkpoint (NVFP4, group size 16; layers 20–23 experts MXFP8, as in the source) in the layout Splash and LM Studio accept, with the family pairing recorded in `splash-prep.json`: Splash auto-pairs the matching DFlash2 draft (`incoai/Inkling-2-Mini-DFlash2`) at load. ## Merge - Base: `thinkingmachines/Inkling-2-Mini`, revision `c9d028302cd0f035fdf8e7e91f089a4ce94d2195` (main safetensors sha256 `65e60f51aa1284d4fb022584908c315270334d991828bb774af60584523539d1`, byte-verified against the repo listing before merging). - Adapter: `nokeepai/Inkling-2-Mini-Prime-LoRA`, revision `6e072bae4de3d1465ae0d868cc3489e981148649`. - Tool: the adapter author's own `merge_adapter.py` (shipped in the LoRA repo), `--parts attn_experts --rounding stochastic --seed 42 --expert-scales keep`: attention merged in BF16, experts dequantised, delta added, re-encoded on the original NVFP4 / MXFP8 scales with stochastic rounding so the sub-step deltas survive in expectation. - Merge fidelity (projected delta survival): **0.944** NVFP4 experts, **0.998** MXFP8 experts — the same figures as our Tess-4.5 Prime merge with the same recipe. The merge self-verified: 240 tensors rewritten and byte-checked, 1,004 untouched tensors identical. - Full merge report: `merged.merge_report.json`, shipped in this repo. ## Conversion - Recipe: `mlx_vlm 0.8.1 convert -q --q-mode nvfp4 --q-group-size 16` (5.236 bits per weight) — the layout with `language_model.` keys and per-expert `switch_mlp` tensors that LM Studio's MLX engine and Splash accept. - **MTP stripped**: `mtp_config` removed from `config.json` and `mtp.safetensors` not carried over — Splash pairs its own DFlash2 draft instead. - Fingerprint: 1,449 weight keys incl. 422 vision keys, 0 MTP keys — the exact key set of our `Inkling-2-Mini-Unbound-Splash` build from the same vendor layout. ## Credits - **Thinking Machines** — creators of Inkling-2-Mini. - **nokeep** — creator of the Prime anti-overthinking LoRA and the merge tooling. - **Inco AI** — creators of Splash and the DFlash2 drafters. ## Verified (M5 Max, 128 GB) - Direct `mlx_vlm generate` on the finished build: reasoning battery passes — 17 × 23 = **391**, √169 = **13**, solid-red image → "red" — each with a short, terminating thinking trace at temperature 0.6 (the Prime add-on doing its job; the unpatched base ruminates far longer on the same prompts). ## Usage - Splash CLI: `splash serve --model Duckets/Inkling-2-Mini-Prime-Splash` - LM Studio: drop the folder into your models directory and load — pick the Splash runtime in the load dialog, or the MLX engine. - Sampling: `generation_config.json` ships the family defaults (temperature 1.0 / top_p 1.0 / top_k 0). Recommended for the Prime behaviour: **temperature 0.6 / top_p 1.0**, reasoning effort 0.9, and a 4096-token thinking cap — do not run it greedy (temperature 0); this model family can loop in its thinking at 0. ## License Apache-2.0, following the source model.