Inkling-2-Mini-Uncensored-MLX-3bit

MLX mixed-precision 3-bit conversion of OpenUncensored/Inkling-2-Mini-Uncensored — the abliterated (refusal-removed) build of Thinking Machines Lab's Inkling 2 Mini — for Apple Silicon. Sibling formats:

Converted straight from the uncensored checkpoint as shipped (NVFP4/MXFP8 experts, BF16 elsewhere) — no BF16 copy on disk, no GGUF in the chain.

Abliterated / uncensored. This model has had refusal behavior removed by its authors. It will comply with requests the original Inkling 2 Mini would refuse. Use responsibly and in accordance with your local laws and the model's license. No additional content filtering is applied beyond what is in the checkpoint.

Why this release exists

OpenUncensored's build keeps Inkling 2 Mini's full architecture — 26.4B total / 3.4B active MoE, looped core, vision, DSpark drafter — in the same ~20 GB NVFP4/MXFP8 format as the official release. This repo applies the recipe that won our search on the official model, with GPTQ calibrated anew on the uncensored weights:

  • the 12 loop-core layers (6-17) run three times per token, so their expert gate/up projections get 4 bits
  • expert down projections in layers 0-19 stay in the original NVFP4, byte for byte
  • attention stays at 8 bits; embedding 5-bit, output head 6-bit
  • every ≤4-bit expert matrix is quantized with GPTQ + act-order on a chat / code / Turkish / general calibration mix

Result: 14.65 GB, statistically tied with its 20 GB source on standard benchmarks.

Quality benchmarks

Measured with lm-evaluation-harness 0.4.13 task definitions: 0-shot, loglikelihood (multiple-choice), chat template OFF. MMLU first 50 questions per subject (2,847), ARC-Challenge full (1,172), Winogrande full (1,267), HellaSwag first 1,000. Every model sees exactly the same questions, so the delta column is the meaningful signal.

Task Metric Source (20 GB) this repo (14.65 GB) Delta ± stderr
mmlu acc 0.7856 0.7891 +0.0035 0.0073
arc_challenge acc_norm 0.6911 0.6954 +0.0043 0.0134
winogrande acc 0.7127 0.7103 -0.0024 0.0127
hellaswag acc_norm 0.6480 0.6420 -0.0060 0.0152
average 0.7094 0.7092 -0.0002

Every delta sits inside one standard error — the 3-bit conversion is invisible on these benchmarks. For reference, the official (non-abliterated) Inkling 2 Mini averages 0.7200 on the same protocol.

Fidelity vs the source

Teacher forcing: the same tokens through both models, KL divergence of the next-token distributions (reference = the uncensored checkpoint as shipped). 24,576 raw-text tokens (wikitext-2 + Python) and 12 chat-template conversations (UltraChat test_gen, 12,288 tokens).

Metric Value
Mean KL divergence, raw text (prose + code) 0.0130
Mean KL divergence, chat-template conversations 0.0686
Top-1 agreement, raw text / chat 96.19% / 91.37%
Perplexity, source / this repo 3.642 / 3.664
Needle retrieval, 7,931-token prompt 3/3
Needle retrieval, 31,543-token prompt 3/3

Essentially the same fidelity as the official build (0.0125 / 0.0729).

Speed on Apple Silicon

Apple M5 Pro, 24 GB unified memory, macOS 27.2.1, other apps closed; mlx 0.32.4 + mlx-lm PR #2086, greedy decoding, --prefill-step-size 512.

Prompt Prompt tokens New tokens Generation tok/s
Python function (code) 37 256 37.8
Why the sky is blue (explanation) 25 256 38.4
Turkish question 39 256 38.3
JavaScript tips (list) 29 256 38.5
mean 38.3
Long prompt — prefill 957 tok/s 3,779 64 36.8

Loads in 3 s; 14.6 GB after load, 14.8 GB peak on short prompts, 16.6 GB with the 3,779-token prompt — the same as the official build. On 24 GB Macs keep --prefill-step-size 512: with mlx-lm's default of 2048 a prompt of this length ran out of Metal memory in our test.

Recipe

Part Format
Expert gate/up projections, layers 0-5 and 18-23 3-bit, group 64, GPTQ act-order
Expert gate/up projections, loop core 6-17 4-bit, group 128, GPTQ act-order
Expert down projections, layers 0-19 original NVFP4, untouched
Expert down projections, layers 20-23 4-bit, group 64, GPTQ
Attention projections (q, k, v, r, gate, o, sink) and short-conv projections 8-bit, group 64
Token embedding / output head 5-bit / 6-bit, group 64
Vision tower, routers, loop controllers, norms source precision

Average 4.26 bits per quantized weight.

Conversion notes

  • Source: OpenUncensored/Inkling-2-Mini-Uncensored @ 4e5f06d72b5a, loaded as shipped; experts dequantized one at a time in memory, never written as BF16
  • GPTQ: 28 expert matrices, act-order with static groups, damp 0.01, 256 × 2048 calibration tokens — UltraChat chat-template 50%, Python stdlib 20%, Turkish Wikipedia 15%, mlx-lm calibration_v5 15%; Hessians collected on the uncensored weights
  • Tooling: mlx 0.32.4 (cuda12) · mlx-lm from ml-explore/mlx-lm#2086 @ 0c4c9919 · lm-eval 0.4.13
  • Environment: Google Colab A100 80GB, MLX CUDA backend, 22 November 2026
  • Output: 3 safetensors shards, vision tower inside the weights, tokenizer + chat template + processor config

Quick start

Inkling 2 Mini support in mlx-lm is not merged yet — install the PR branch:

# install (mlx-lm with Inkling 2 support, PR #2086)
pip install -U 'mlx-lm @ git+https://github.com/jundot/mlx-lm.git@0c4c99192230f1943dd468d297f0b8a64ae7b7c2'

# text-only chat
python -m mlx_lm.generate \
  --model barozp/Inkling-2-Mini-Uncensored-MLX-3bit \
  --prompt "Write a short story about a robot learning to paint." \
  --max-tokens 512 \
  --prefill-step-size 512

# OpenAI-compatible local server
python -m mlx_lm.server \
  --model barozp/Inkling-2-Mini-Uncensored-MLX-3bit \
  --prefill-step-size 512

At 14.65 GB it fits 24 GB unified-memory Macs with room left for context; --prefill-step-size 512 keeps long-prompt prefill inside that budget.

Where it runs

Checked on 23 November 2026. Inkling 2 Mini support is not in a mlx-lm release yet, and the apps that already run Inkling ship their own model code with their own weight layout:

Runtime Loads this repo Notes
mlx-lm with PR #2086 (generate, chat, server) yes every number on this card was measured here
LM Studio, MLX runtime 1.14.0 no Model type inkling2_loop not supported
oMLX 0.8.3 no expects its own Inkling 2 layout; it can build one from the source with its oQ quantizer
MTPLX 2.13 no expects the MTPLX layout; use barozp/Inkling-2-Mini-Uncensored-MTPLX-3bit

Apps built on mlx-lm should be able to load it once PR #2086 is merged and they update. If the merged version changes the weight layout, a re-conversion will be needed.

Local chat server

mlx_lm.server gives an OpenAI-compatible API. The settings we use on a 24 GB Mac:

python -m mlx_lm.server \
  --model barozp/Inkling-2-Mini-Uncensored-MLX-3bit \
  --prefill-step-size 512 \
  --decode-concurrency 1 --prompt-concurrency 1 \
  --prompt-cache-size 2 --prompt-cache-bytes 2GB \
  --max-tokens 4096 --temp 1.0
curl http://127.0.0.1:8080/v1/chat/completions -H "Content-Type: application/json" -d '{
  "messages": [{"role": "user", "content": "Write a short story about a robot learning to paint."}],
  "max_tokens": 1024,
  "chat_template_kwargs": {"reasoning_effort": "low"}
}'
  • Thinking level: the chat template reads reasoning_effort: none, minimal, low, medium, high (the default) or xhigh. Pass it per request in chat_template_kwargs. Even at none the model writes a short thinking block.
  • Output format: the server streams Inkling's message tokens as plain text: <|message_model|><|content_thinking|>…<|end_message|><|message_model|><|content_text|>…<|end_message|>. A chat front end has to split the thinking part from the answer and send only the answer back in the conversation history.

Memory and context

  • KV cache: 20 of the 24 layers attend over a 1,024-token sliding window. The 4 global-attention layers keep every token, and two of them sit in the loop core, so they run three times per token. By the architecture that is about 32 KB per token plus at most ~170 MB for the sliding windows: ~1.2 GB at 32K tokens, ~2.3 GB at 64K.
  • Context limit: mlx-lm sets no cap, and the model supports up to 1M tokens. On a 24 GB Mac the weights leave about 3 GB under macOS's default GPU working-set limit (17.8 GB) for the KV cache and prefill, so ~32K tokens is the comfortable range. Retrieval at 31.5K tokens was verified on CUDA; the longest prompt we ran on the Mac was 3.8K tokens.
  • Other apps: close memory-heavy apps before loading. With a browser and other apps holding about 10 GB, loading this model pushed about 8 GB of their memory into swap, and generation dropped from 38 to 25-29 tok/s.

MTP note

The source ships a DSpark draft head (mtp.safetensors, 0.64 GB). mlx-lm does not use it, so it is not in this repo. For speculative decoding use barozp/Inkling-2-Mini-Uncensored-MTPLX-3bit — same quantized weights plus the draft head, for MTPLX 2.13+.

On the same M5 Pro the MTPLX pack averaged 33.3 tok/s with DSpark on (36.2 on code, 25.5 with drafting off) against 38.3 here, so on a Mac this repo is the faster way to run the uncensored model.

About the source model

  • Base: thinkingmachines/Inkling-2-Mini — 26.4B total / 3.4B active MoE, 128 experts top-8, 24 layers with a 12-layer loop (6-17) run three times per token, native image input, Apache 2.0
  • Post-training: abliteration (refusal removal) by OpenUncensored, shipped in the official NVFP4/MXFP8 format
  • License: Apache 2.0 (inherited)

Source chain

thinkingmachines/Inkling-2-Mini (official release) → OpenUncensored/Inkling-2-Mini-Uncensored (abliterated) → this repo (MLX mixed 3-bit, GPTQ)

Related repos:

Downloads last month
221
Safetensors
Model size
21B params
Tensor type
U32
·
F32
·
BF16
·
U8
·
MLX
Hardware compatibility
Log In to add your hardware

3-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for barozp/Inkling-2-Mini-Uncensored-MLX-3bit