Instructions to use jolymmiels/Inkling-2-Mini-Gate5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jolymmiels/Inkling-2-Mini-Gate5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="jolymmiels/Inkling-2-Mini-Gate5") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("jolymmiels/Inkling-2-Mini-Gate5") model = AutoModelForMultimodalLM.from_pretrained("jolymmiels/Inkling-2-Mini-Gate5", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jolymmiels/Inkling-2-Mini-Gate5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jolymmiels/Inkling-2-Mini-Gate5" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jolymmiels/Inkling-2-Mini-Gate5", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/jolymmiels/Inkling-2-Mini-Gate5
- SGLang
How to use jolymmiels/Inkling-2-Mini-Gate5 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "jolymmiels/Inkling-2-Mini-Gate5" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jolymmiels/Inkling-2-Mini-Gate5", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "jolymmiels/Inkling-2-Mini-Gate5" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jolymmiels/Inkling-2-Mini-Gate5", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use jolymmiels/Inkling-2-Mini-Gate5 with Docker Model Runner:
docker model run hf.co/jolymmiels/Inkling-2-Mini-Gate5
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
314native tensors updated (all LoRA updates merged cleanly back into native BF16 weights before export):194Loop Control Core tensors:144loop message/forget/down controller weights (layers.6..17.controllers.{attn,k,v,mlp}.*) +50cross-pass / residual attention queries (attn_res.*andmiddle_cycle_cross_pass_*).120BF16 Attention & Gate tensors:wq_du,wk_dv,wv_dv,wo_ud, andgate_attnacross all 24 layers.
- Drop-in compatibility: Works out of the box with
vllm serve(including DSpark speculative decoding and the nativeinklingreasoning & tool-call parsers) andtransformers.
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:
- 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.
- Linear Weight Soup (
Soup50):- Linearly interpolated
Gate 2andGate 3weight deltas into a balancedSoup50anchor checkpoint.
- Linearly interpolated
- 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]withkl_coef = 0.02(Top-32 logit-KL anchored directly toSoup50). - Iteration 1 (
Soup50→Gate 5a): 207 active trajectories (125positive /82negative),lr_core = 1e-5,lr_lora = 3e-5, 2 epochs (52 optimizer steps, final anchor KL0.00349). - Iteration 2 (
Gate 5a→Gate 5): 212 active trajectories (125positive /87negative),lr_core = 8e-6,lr_lora = 2.5e-5, 2 epochs (54 optimizer steps, final anchor KL0.00410). - All LoRA adapters (
13.37Mparams) were merged directly into native BF16 attention weights alongside the28.55MLoop Control Core parameters (0added 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 tokvs57.50% / 1400 tok). - Out-of-distribution generalization:
ood_v1_40improves55.0% → 75.0%(+20.0%,p = 0.0215) andood_v2_40improves50.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-Gate5with 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
Model tree for jolymmiels/Inkling-2-Mini-Gate5
Base model
thinkingmachines/Inkling-2-Mini