Inkling-2-Mini-Gate5

Inkling-2-Mini-Gate5 is a zero-added-parameter post-training of thinkingmachines/Inkling-2-Mini that delivers substantial accuracy gains across both public reasoning/coding/instruction-following benchmarks (+7.72 pp micro / +7.50 pp macro across 803 zero-shot items) and sealed engineering suites (+21.67 pp across 120 tasks) while cutting median output length by 35%–48% (2.13×–2.22× intelligence density per token).

Architecture & Zero-Added-Parameter Design

Inkling-2-Mini-Gate5 preserves the exact native checkpoint format, tensor count (1,244 tensors), shapes, dtypes, and serving footprint of thinkingmachines/Inkling-2-Mini with 0 added inference parameters:

  • Base architecture unchanged: 26.4B total parameters, 3.4B unique active parameters, 5.4B effective active parameters per token (24-layer sparse MoE with 8-of-128 experts and 3-pass looped middle core layers 6..17).
  • Quantized weights & speculative head untouched: All NVFP4 (L0..19) and MXFP8 (L20..23) MoE weights, vision tower weights, tokenizer/chat template, and the bundled DSpark speculative decoding head (mtp.safetensors) are bit-identical to the official base checkpoint.
  • Exactly 314 native tensors updated (all LoRA updates merged cleanly back into native BF16 weights before export):
    • 194 Loop Control Core tensors: 144 loop message/forget/down controller weights (layers.6..17.controllers.{attn,k,v,mlp}.*) + 50 cross-pass / residual attention queries (attn_res.* and middle_cycle_cross_pass_*).
    • 120 BF16 Attention & Gate tensors: wq_du, wk_dv, wv_dv, wo_ud, and gate_attn across all 24 layers.
  • Drop-in compatibility: Works out of the box with vllm serve (including DSpark speculative decoding and the native inkling reasoning & tool-call parsers) and transformers.

Post-Training Recipe

Inkling-2-Mini-Gate5 was produced via a multi-stage, strictly KL-anchored post-training pipeline using zero training data from any external public benchmark:

  1. Context-Distilled SFT + DPO with Top-32 Base Logit-KL (Gate 2 & Gate 3):
    • Trained complementary checkpoints targeting concise, verified engineering execution and formal reasoning while anchoring token distributions to the base model via Top-32 logit-KL regularization.
  2. Linear Weight Soup (Soup50):
    • Linearly interpolated Gate 2 and Gate 3 weight deltas into a balanced Soup50 anchor checkpoint.
  3. 2 Iterations of Anchored On-Policy Clipped GRPO (Gate 5a → Gate 5):
    • On-policy rollouts scored exclusively with verifiable compiler, unit-test, and proof-checker rewards across three internal domains: Coding, Search-Conflict Resolution, and Lean 4.36.
    • DAPO Clip-Higher: asymmetric PPO/GRPO clipping [0.20, 0.28] with kl_coef = 0.02 (Top-32 logit-KL anchored directly to Soup50).
    • Iteration 1 (Soup50 → Gate 5a): 207 active trajectories (125 positive / 82 negative), lr_core = 1e-5, lr_lora = 3e-5, 2 epochs (52 optimizer steps, final anchor KL 0.00349).
    • Iteration 2 (Gate 5a → Gate 5): 212 active trajectories (125 positive / 87 negative), lr_core = 8e-6, lr_lora = 2.5e-5, 2 epochs (54 optimizer steps, final anchor KL 0.00410).
    • All LoRA adapters (13.37M params) were merged directly into native BF16 attention weights alongside the 28.55M Loop Control Core parameters (0 added inference parameters).

Verified Benchmark Results

1. External Public Benchmarks — Zero-Shot Transfer (803 Items, max_tokens=4096)

All 803 items are evaluated strictly zero-shot with zero external benchmark data in training. Statistical significance is reported via exact two-sided McNemar's test on paired item outcomes.

Benchmark N Base (Inkling-2-Mini) Gate 5 (Inkling-2-Mini-Gate5) Delta Paired (+ / -) McNemar p Median Tokens (Base → Gate 5)
AIME 2025 30 36.67% (11/30) 46.67% (14/30) +10.00% +3 / -0 0.2500 4096 → 4096
GPQA Diamond 198 38.89% (77/198) 50.51% (100/198) +11.62% +28 / -5 0.0001 4096 → 3060
MATH-500 (slice) 100 83.00% (83/100) 86.00% (86/100) +3.00% +5 / -2 0.4531 499.5 → 435.5
IFBench (Strict) 300 44.67% (134/300) 53.00% (159/300) +8.33% +47 / -22 0.0035 3027 → 1569.5
IFBench (Loose) 300 46.33% (139/300) 55.67% (167/300) +9.33% +48 / -20 0.0009 —
LiveCodeBench v6 175 37.14% (65/175) 41.71% (73/175) +4.57% +13 / -5 0.0963 4096 → 4096
All 803 (Micro) 803 46.08% (370/803) 53.80% (432/803) +7.72% +96 / -34 < 0.0001 3534 → 1856 (-47.5%)
5-Bench Macro 5 48.07% 55.58% +7.50% — — 2.22× density/token

2. Sealed Engineering Tasks (120 Tasks, RAW Mode, No System Prompt, max_tokens=1400)

Evaluated across three sealed suites (gate0_40, ood_v1_40, ood_v2_40) with strict automated verifiers (unit test suites, deterministic conflict checks, and Lean 4.36 typechecking):

Domain / Split N Base (Inkling-2-Mini) Gate 5 (Inkling-2-Mini-Gate5) Delta Paired (+ / -) McNemar p Median Tokens (Base → Gate 5)
Coding 60 46.67% (28/60) 75.00% (45/60) +28.33% +18 / -1 0.0001 1509 → 1562.5
Search-Conflict 36 91.67% (33/36) 97.22% (35/36) +5.56% +2 / -0 0.5000 452 → 351
Lean 4.36 24 33.33% (8/24) 62.50% (15/24) +29.17% +7 / -0 0.0156 1400 → 968
Overall (All 120) 120 57.50% (69/120) 79.17% (95/120) +21.67% +27 / -1 < 0.0001 1400 → 907 (-35.2%)
  • Intelligence density per token (Sealed 120): 2.13× vs base (79.17% / 907 tok vs 57.50% / 1400 tok).
  • Out-of-distribution generalization: ood_v1_40 improves 55.0% → 75.0% (+20.0%, p = 0.0215) and ood_v2_40 improves 50.0% → 82.5% (+32.5%, +13 / -0, p = 0.0002).

Serving with vLLM (DSpark Speculative Decoding + Native Parsers)

Because Inkling-2-Mini-Gate5 keeps the exact native architecture, quantization layout, and bundled mtp.safetensors DSpark head untouched, it serves directly with the proven vllm serve configuration:

vllm serve Inkling-2-Mini-Gate5 \
  --served-model-name Inkling-2-Mini-Gate5 \
  --host 127.0.0.1 --port 30000 \
  --tensor-parallel-size 1 \
  --max-model-len 16384 \
  --max-num-seqs 32 \
  --gpu-memory-utilization 0.70 \
  --disable-flashinfer-autotune \
  --reasoning-parser inkling \
  --enable-auto-tool-choice \
  --tool-call-parser inkling \
  --speculative-config '{"method":"dspark","num_speculative_tokens":7,"draft_sample_method":"probabilistic"}'

Replace Inkling-2-Mini-Gate5 with your HuggingFace repo ID (<username>/Inkling-2-Mini-Gate5) or local checkpoint directory.

License & Attribution

This model is released under the Apache License 2.0, matching the upstream license of thinkingmachines/Inkling-2-Mini.

  • Base Model: Inkling 2 Mini by Thinking Machines Lab, Inc. (licensed under Apache 2.0).
  • All original base model architecture, pre-training, NVFP4/MXFP8 quantization, vision encoder, tokenizer, and DSpark speculative head credits belong to Thinking Machines Lab, Inc.
Downloads last month
75
Safetensors
Model size
26B params
Tensor type
F32
·
BF16
·
F8_E4M3
·
U8
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for jolymmiels/Inkling-2-Mini-Gate5

Finetuned
(115)
this model