Inkling-2-Mini Turbo

Inkling-2-Mini Turbo

OmniSpace Technologies Β· GitHub Repo (Patches, Dockerfiles & Benchmarks) Β· Base Model: thinkingmachines/Inkling-2-Mini Β· Apache-2.0

Inkling-2-Mini Turbo is a target-lossless Blackwell (sm_120 and sm_121) serving recipe for Thinking Machines Lab's Inkling-2-Mini on Hyperflare and the Helios flare runtime.

On a single NVIDIA RTX PRO 6000 Blackwell (96 GB, sm_120), it delivers up to 252.5 tok/s solo decode (+59.8% over stock Hyperflare, +23.7% over SGLang DSpark), 719.4 tok/s at 8 concurrent streams (+48.9%), 33,795 tok/s cold 16k batch prefill (2.38Γ— stock, -57.9% TTFT), and 9.0 s cold startup. On an NVIDIA DGX Spark (GB10, sm_121), it reaches 51.73 tok/s solo decode (+22.3%), 6,999 tok/s cold 16k batch prefill (2.02Γ— stock, -50.4% TTFT), 14.0 s cold startup, and 2.23M live KV tokens.

It also includes a Helios runtime patch adding native thinking_token_budget support and clean UTF-8 boundary closing for Inkling-2-Mini's TMLv0 reasoning channel (reasoning_effort="none", enable_thinking=false, and explicit token budgets), while leaving default reasoning (0.9) and minimal..max untouched.

All target weights remain the unmodified upstream Apache-2.0 thinkingmachines/Inkling-2-Mini checkpoint (ed40e7da625f594fc9c4990f5f66be24873c22d7, 18.8 GiB). All credit for the base model goes to Thinking Machines Lab, and credit for the Hyperflare runtime and base recipe goes to NVIDIA and Local Inference Lab.


Runs on

Requires an NVIDIA Blackwell GPU (sm_120 or sm_121) with native NVFP4/MXFP8 block-scaled tensor cores and β‰₯ 24 GB available memory (18.8 GiB weights + KV pool). Measurements use the frozen prompt set prompts/prompts_heldout_v1.jsonl against unmodified thinkingmachines/Inkling-2-Mini weights.

Hardware Backend Max KV Pool (C=4 / C=8 per agent) Verified Result (Stock Hyperflare β†’ Turbo Fixed d=7)
NVIDIA RTX PRO 6000 (96 GB, sm_120) CUDA / Triton / flare 3.42M tok (856k / 428k per agent) C=1: 158.0 β†’ 252.5 tok/s β€’ C=8 (adaptive): 483.1 β†’ 719.4 tok/s β€’ Cold C=4 16k/agent TTFT: 4.61s β†’ 1.94s (33,795 tok/s prefill) β€’ 9.0s boot
NVIDIA DGX Spark (GB10, sm_121, 128 GB) CUDA / Triton / flare 2.23M tok (557k / 278k per agent) C=1: 42.30 β†’ 51.73 tok/s β€’ C=8: 109.37 β†’ 115.58 tok/s β€’ Cold C=4 16k/agent TTFT: 18.89s β†’ 9.36s (6,999 tok/s prefill, 2.02Γ—) β€’ 14.0s boot

How to run

Option A. Ready-to-run DGX Spark (GB10, sm_121) compiled core (~19.8 GB)

This repository's main branch (and --revision gb10) includes the pre-exported DGX Spark Flare core (model.safetensors, deployments/gb10-tp1/, weights/, and publisher.json β€” unmodified thinkingmachines/Inkling-2-Mini weights + precompiled sm_121 kernels and CUDA graphs). DGX Spark owners can download and boot in ~14 seconds without running ignition export:

pip install -U huggingface_hub
hf download Frosty40/Inkling-2-Mini-Turbo --local-dir ./inkling2-gb10

flare run ./inkling2-gb10 \
  --offline \
  --publisher-keys ./inkling2-gb10/publisher.json \
  --dangerously-approve-key db7fc0ef95810cab20b0fec0564939cf16adc280816db7b4856ea473a64361ca \
  --dangerously-accept-publisher local-development \
  --gpus 0 \
  --host 0.0.0.0 \
  --port 8001 \
  --served-model-name inkling-2-mini \
  --embedding-table-storage ram \
  --memory-limit=72G \
  --mtp-draft-tokens 7 \
  --no-mtp-adaptive-verification

(For an all-in-one ARM64 DGX Spark Docker image containing patched Helios flare, see docker/Dockerfile.spark_sm121 and docker/Dockerfile.spark_sm121_tmlcut.)

Option B. Build and export from source (sm_120 RTX PRO 6000 or sm_121 DGX Spark)

1. Apply both patches to the pinned upstream revisions

Clone the lightweight patches repo from GitHub (or fetch patches/* from this repo) and apply both patches to the pinned upstream revisions:

git clone https://github.com/newjordan/inkling-2-mini-turbo.git inkling2-turbo

# 1. Patch hyperflare-recipes (lossless SM120/SM121 Triton kernels)
git clone https://github.com/local-inference-lab/hyperflare-recipes.git
cd hyperflare-recipes
git checkout c79199b126302051e21cbe1467f73af2ebb805c1
git apply --whitespace=error ../inkling2-turbo/patches/frontier_v6_exact_sm12x.patch
cd ..

# 2. Patch hyperflare-inference / Helios flare (native TMLv0 thinking_token_budget + UTF-8 hygiene)
git clone https://github.com/NVIDIA/hyperflare-inference.git
cd hyperflare-inference
git checkout 84ac035cf381c831fa5a4c93e8b34010845c551e
git apply --whitespace=error ../inkling2-turbo/patches/helios_tml_thinking_budget.patch
cargo build --locked --release --manifest-path flare-cli/Cargo.toml --bin flare

(For an all-in-one ARM64 DGX Spark Docker build, see docker/Dockerfile.spark_sm121 and docker/Dockerfile.spark_sm121_tmlcut.)

2. Export a native core (once per GPU architecture)

hf download thinkingmachines/Inkling-2-Mini --local-dir ./Inkling-2-Mini

ignition export ./Inkling-2-Mini \
  --gpus 0 \
  --max-concurrency 8 \
  --prefill-chunk-size 16384 \
  --speculative-graph-budget 64 \
  --autotune-effort default \
  --mtp-only \
  --language-model-only \
  --no-compile

3. Serve with Helios flare

# RTX PRO 6000 (96 GB): --memory-limit=-4G (3.42M KV tokens)
# DGX Spark GB10 (128 GB unified): --memory-limit=72G (2.23M KV tokens)
flare run /path/to/exported/core \
  --gpus 0 \
  --host 0.0.0.0 \
  --port 8001 \
  --served-model-name inkling-2-mini \
  --embedding-table-storage ram \
  --memory-limit=-4G \
  --mtp-draft-tokens 7 \
  --no-mtp-adaptive-verification

4. Try it in one minute

With the server running on http://127.0.0.1:8001, run the included quick check to verify default reasoning, explicit thinking_token_budget, short reasoning_effort="none" (max_tokens=64), and streaming:

bash inkling2-turbo/scripts/verify_server.sh http://127.0.0.1:8001/v1

Or send a direct OpenAI-compatible request:

curl -fsS http://127.0.0.1:8001/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "inkling-2-mini",
    "messages": [{"role": "user", "content": "Compute 17 * 23 and show one line of arithmetic."}],
    "max_tokens": 128,
    "reasoning_effort": "none"
  }'

Results

All numbers below come directly from the locked JSON receipts in results/.

A. NVIDIA RTX PRO 6000 Blackwell (sm_120, 96 GB) β€” Same-Card Head-to-Head

Measured on identical hardware and identical frozen inputs (prompts/prompts_heldout_v1.jsonl) against stock hyperflare-recipes@c79199b1 and official lmsysorg/sglang:inkling-2-mini DSpark (fa4, warmed-up 16k JIT, ctx=139264, 0 errors). Rolling concurrency labels (C=4, C=6) give each agent its own full 16k β†’ 64k β†’ 130.7k β†’ 130.9k context simultaneously (up to 785.7k total live KV at C=6).

Benchmark Metric Stock Hyperflare Official SGLang DSpark Turbo (Adaptive) Turbo (Fixed d=7) Receipt
Cold server startup /health boot 15.0 s 175.2 s 10.0 s 9.0 s serve_policy_sweep_clean.json
Compiled CUDA graph binary Size 240.0 MB β€” 178.4 MB 178.4 MB serve_harden_final_clean.json
KV cache headroom (16k core) Max tokens 3,442,688 139,264 ctx 3,424,256 3,424,256 serve_harden_final_clean.json
Short interactive (C=1) agg tok/s / TTFT 158.0 / 49.7 ms 204.1 251.5 / 36.3 ms 252.5 / 36.3 ms serve_policy_sweep_clean.json
Short concurrent (C=4 / C=8) agg tok/s 382.7 / 483.1 β€” / 597.8 527.1 / 719.4 514.1 / 675.4 serve_harden_final_clean.json
Cold C=1 16k TTFT / agg tok/s 1,043 ms / 59.2 β€” 646 ms / 88.0 646 ms / 102.0 serve_policy_sweep_clean.json
Cold C=4 16k TTFT / agg tok/s 4,611 ms / 90.2 3,498 ms / 112.0 2,262 ms / 157.9 1,939 ms / 163.8 serve_policy_sweep_clean.json
Cold C=4 16k prefill rate prefill tok/s 14,213 18,735 28,967 (32k) 33,795 serve_policy_sweep_clean.json
Cold C=4 64k / 130.7k TTFT / agg tok/s 12.8s/35.8 β€’ 22.0s/21.2 β€” 8.3s/54.0 β€’ 15.8s/29.7 8.3s/54.5 β€’ 17.1s/27.9 serve_harden_final_clean.json
Cold C=6 16k / 130.7k TTFT / agg tok/s 5.97s/92.3 β€’ 41.6s/17.1 β€” β€’ 35.2s/20.7 3.69s/144.9 β€’ 29.0s/23.2 3.67s/151.0 β€’ 30.8s/22.6 serve_harden_final_clean.json
Sustained long-gen (C=4 Γ— 512) agg tok/s 371.8 476.3 493.7 (32k) β€” redteam_redteam_ood_v2.json
Cached turn t=3 (130.9k, 256 new) TTFT 355–1,412 ms 99–502 ms (RadixCache) 356–1,366 ms 341–1,356 ms rival_sglang_dspark_heldout_v2.json

RTX PRO 6000 Decode and Cold 16k Prefill

RTX PRO 6000 Multi-Agent Rolling Context 16k to 130.9k

B. NVIDIA DGX Spark (GB10, sm_121, 128 GB Unified) β€” Same-Card Head-to-Head

Benchmark (64G bench / 72G live) Stock Hyperflare Official SGLang DSpark Turbo (Adaptive) Turbo (Fixed d=7) Receipt
Cold server startup 15.02 s 682.6 s 14.01 s 14.01 s spark_bench.json
KV cache capacity 1,732,608 8,192 ctx cap 1,808,384 1,810,432 (2.23M live) spark_bench.json
Short C=1 (agg tok/s / TTFT) 42.30 / 185.8 ms 45.14 / 269.1 ms 44.97 / 167.9 ms 51.73 / 175.6 ms spark_bench.json
Short C=4 / C=8 (agg tok/s) 78.55 / 109.37 96.79 / β€” 88.96 / 114.41 94.67 / 115.58 spark_bench.json
Cold 16k C=1 (TTFT / Prefill / Agg) 5,956 ms / 2,751 / 9.23 (capped 8k) 3,611 ms / 4,537 / 11.56 3,612 ms / 4,536 / 14.66 spark_bench.json
Cold 16k C=4 (TTFT / Prefill / Agg) 18,891 ms / 3,469 / 11.28 (capped 8k) 10,732 ms / 6,107 / 20.00 9,364 ms / 6,999 / 20.82 spark_bench.json

NVIDIA DGX Spark GB10 Decode and Cold 16k Prefill

C. Verification & Real angelX Agent Workload (DGX Spark)

  • Parity & automated tests:
    • sm_120: 12/12 standard top-1 parity, 7/7 exact chunk-seam prefixes > 8k (KL=0.00000), 4/4 16.5k–120k Multi-NIAH exact match, 71/71 CUDA unit tests pass, 5/5 test_inkling2_mini.py pass (redteam_redteam_ood_v2.json).
    • sm_121: 12/12 top-1 parity (max_top1_lp_delta=0.102, mean_kl_top20=0.020), 73/73 CUDA unit tests pass, 5/5 test_inkling2_mini.py -k "not images" pass, Helios server::request:: and server::config:: Rust unit tests pass.
  • Agentic compaction & memory workload (angelX): Runs live as the Treebeard compaction backend for angelX on DGX Spark β€” passing the multi-hop tool-calling compaction smoke suite (6/6 required sections across stream, non-stream, and tool-probe with unprompted read_file tool calls, plus 5/5 concurrent short requests at max_tokens=64 in 1.94–2.70 s, darkbloom_smoke_v3.json) and completing the 40-prompt Hymem stratified dev suite at 19.32 s mean latency with 0/40 empty responses and 0/40 transition glitches (tmlcut_v3_summary.json).

What the patches change

  • patches/frontier_v6_exact_sm12x.patch (local-inference-lab/hyperflare-recipes@c79199b1, 13 files):
    • components/situ_experts.py: native SM120/SM121 tl.dot_scaled("e4m3") MXFP8 + PACK_GATE_UP fusion, zero-padded 1024+128 _activate_nvfp4_quant_1152, _quantize_fp4_2304, g2 (128,128,256) tile, single-launch _topk_reduce, and tokens > 64 MXFP8 gating on GB10 (12, 1).
    • components/causal_convolution.py & recipes/inkling2/attention.py: fused width-4 _forward_commit, fused _qrs_clip, _key_l2_clip, _stage_kv, _retain_kv, and 40-visit _local_kv_sconv_clip_norm_verify (-120 CUDA graph nodes).
    • recipes/inkling2/mini_decoder.py, loop.py, residual.py, decoder.py, bootstrap.py: 48-visit _fused_layer_commit_kernel (232 β†’ 48 launches, -184 graph nodes), zero-materialization cross-pass router & _scale_rmsnorm_2304, and single-pass 2048+256 multi-stream ResidualMix.
    • recipes/inkling2/dspark.py, components/recurrent_proposal.py, components/parallel_draft.py, recipes/inkling2/vocabulary.py: fused DSpark QKV+RoPE & KV staging (exact BF16 attention preserved), fused Markov/recurrent proposal, and fused softcap + mask.
  • patches/helios_tml_thinking_budget.patch (NVIDIA/hyperflare-inference@84ac035c, 3 files):
    • Unlocks native thinking_token_budget for ReasoningParserKind::ContentHeaders (TMLv0).
    • Trims trailing partial UTF-8 byte tokens ('\u{FFFD}') at cut boundaries in runtime.rs::park() before re-prefill.
    • Injects a short pre-close reasoning bridge inside <|content_thinking|> plus [<|message_model|>, <|content_text|>] when tools=[] && grammar=None (leaving tool-call frames valid when tools are declared).
    • Applies an automatic reasoning budget only when thinking is explicitly disabled (enable_thinking=false or reasoning_effort="none" / 0.0); default reasoning and minimal..max are untouched.

Credits & Attribution

This release builds directly on upstream open-source work β€” every upstream component and what OmniSpace Technologies authored on top is listed explicitly below:

  • Base model weights (100% unmodified): Thinking Machines Lab β€” thinkingmachines/Inkling-2-Mini (revision ed40e7da625f594fc9c4990f5f66be24873c22d7, Apache-2.0). Zero weights are quantized, pruned, or modified.
  • Inference engine & base serving recipe: NVIDIA and Local Inference Lab β€” NVIDIA/hyperflare-inference@84ac035c (Helios flare Rust server, ignition exporter/signer, TMLv0 parser) and local-inference-lab/hyperflare-recipes@c79199b1 (base Inkling-2-Mini recipe, DSpark speculative decoding, and FlashInfer/b12x integration). Upstream attributions to FlashInfer / b12x, vLLM (PR #69028 and fused_markov.py), and PyTorch are preserved in licenses/UPSTREAM_NOTICE.
  • What OmniSpace Technologies built on top (Apache-2.0):
    • patches/frontier_v6_exact_sm12x.patch (13 files, +1,724 / -197 lines): original SM120/SM121 Triton kernel fusions and GB10 tokens > 64 MXFP8 gating written against hyperflare-recipes@c79199b1.
    • patches/helios_tml_thinking_budget.patch (3 files, +167 / -26 lines): original Helios runtime patch adding ContentHeaders (TMLv0) thinking_token_budget support, UTF-8 cut-boundary hygiene, and pre-close reasoning bridge against hyperflare-inference@84ac035c.
    • docker/ & scripts/: original ARM64 DGX Spark Dockerfiles, containerized ENOSYS host-I/O fallback patches (docker/runtime-io/), frozen benchmark harness, and verification script.
  • Compute sponsorship: RTX PRO 6000 (sm_120) kernel development and verification were sponsored in part by the Modal Builders Grant.

Licence

Apache-2.0 β€” matching thinkingmachines/Inkling-2-Mini, local-inference-lab/hyperflare-recipes, and NVIDIA/hyperflare-inference. Full licence and upstream attribution notices are in licenses/.

Built by OmniSpace Technologies.

Downloads last month
27
Safetensors
Model size
57.8M params
Tensor type
U8
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Frosty40/Inkling-2-Mini-Turbo

Quantized
(359)
this model