existentialbirds/Inkling-2-Mini-mlx-vlm-4bit

Mixed-precision mlx-vlm checkpoint of thinkingmachines/Inkling-2-Mini (c9d028302cd0f035fdf8e7e91f089a4ce94d2195, 26.4B total parameters, 48 looped layer visits per token). Benchmarked in Peregrine. Companion drafter: existentialbirds/Inkling-2-Mini-DSpark-mlx-vlm-4bit.

Quick Start

uv tool install "git+https://github.com/existential-birds/mlx-vlm.git@perf/inkling2-serving" --force

mlx_vlm.server \
  --model existentialbirds/Inkling-2-Mini-mlx-vlm-4bit \
  --prefill-step-size 512 \
  --cache-limit 4294967296 \
  --max-num-seqs 4 \
  --port 8080

Notes:

  • --prefill-step-size 512 caps global relative-position attention mask allocations at 6.1 GiB (down from 24.3 GiB at 2048) for 131K context.
  • Chat template thinking level is set via reasoning_effort ("none", "low", "medium", "high"; default 0.9), not enable_thinking.
  • Optional speculative decoding for code generation (54.3 tok/s at T=0.6; leave off for sampled prose or c4 batches):
    --draft-model existentialbirds/Inkling-2-Mini-DSpark-mlx-vlm-4bit --draft-kind dflash --draft-block-size 5
    

Precision (17.27 GB / 16.08 GiB, 5.24 bpw)

Converted with mlx_vlm.convert -q --q-bits 4 --mtp into mlx-vlm layout (language_model.*, vision_tower.*, processor_config.json, tiktoken/tokenizer.model). Routed MoE experts stay in their source formats so inkling2_grouped_expert_qmv runs without re-quantizing experts:

Component Precision
Routed MoE experts, layers 0..19 Original nvfp4 (group_size=16)
Routed MoE experts, layers 20..23 Original mxfp8 (group_size=32)
Dense text layers (attention + embed_tokens + lm_head) Affine 4-bit (group_size=64; decode read 6.30 -> 3.03 GB/tok)
Vision tower (inkling2_vision) & router/loop state Original BF16 / FP32

Benchmarks (Apple M4 Max 40c GPU, 48 GB, macOS 26.6.1)

Measured on AC power (mlx 0.32.5, existential-birds/mlx-vlm@f871d0b7, T=0.6, reasoning_effort="none"). Full logs in existential-birds/peregrine:

Metric Base NVFP4 Stock mlx-vlm + 4-bit perf/inkling2-serving + Flags
c1 decode (median of 6) 33.1 tok/s 44.1 tok/s 46.5 tok/s
c4 aggregate decode 16.2-34.7 tok/s (swap) 79.4 tok/s 93.3 tok/s
Cold prefill (3.3K / 25.6K) 333 / 307 tok/s 551 / 524 tok/s 591 / 547 tok/s
Short TTFT / Startup 245 ms / 9.2 s 198 ms / 7.3 s 196 ms / 5.3 s
Peak memory (<= 33K ctx) 34.3 GiB 29.9 GiB 23.9 GiB

Validation (T=0):

  • vs base NVFP4: first-token logit cosine 0.9986-0.9996, softmax KL = 0.00000 nats.
  • Needle retrieval: 3/3 exact at 33.2K (23.9 GiB) and 3/3 exact at 132.8K (22.7 tok/s decode, 30.1 GiB).
  • Concurrent soak: 6/6 exact across 2 x 67.3K streams (25.2 GiB). Modalities checked: chat, reasoning, inkling tool calls, and vision (image_url).

License & Attribution

Downloads last month
51
Safetensors
Model size
26B params
Tensor type
U32
路
F32
路
BF16
路
MLX
Hardware compatibility
Log In to add your hardware

4-bit

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

Model tree for existentialbirds/Inkling-2-Mini-mlx-vlm-4bit

Quantized
(352)
this model