localairecipes launch configs for local inference

Inkling-2-Mini NVFP4 MXFP8 DSpark 1x DGX Spark vLLM 262K to 1M

00 upvotes — sign in to vote sign in to vote

community Community submission — verify on your own hardware.

recipe by tonyd2wild (recipe, launchers, measurements, 69-scenario eval)↗, Thinking Machines Lab (Inkling 2 Mini checkpoint + DSpark drafter, Apache-2.0)↗, vLLM project (inkling-2-mini day-0 image + official recipe)↗, NVIDIA (DGX Spark GB10 platform)↗ · listed by localai-recipes

Initial version · updated 44 h ago · license MIT (recipe); Apache-2.0 (weights)

chat code vision dgx-spark 1m-context looped-moe mxfp8 kv-cache-fp8 inkling-2-mini dspark first-of-family gb10 nvfp4

recipe by tonyd2wild: Thinking Machines Inkling-2-Mini (26.4B looped MoE, 3.4B active per pass, NVFP4 experts layers 0-19 + MXFP8 layers 20-23, bundled 0.64 GB DSpark drafter) on one DGX Spark (GB10) with the official vLLM inkling-2-mini day-0 image. Three tiers: 262K standard (util 0.80), 1M with BF16 KV (80 GiB, 2.08M-token pool), 1M with FP8 KV (74 GiB, 3.31M-token pool) - the official recipe caps DGX Spark at 262K. Measured 2026-11-20/21 on the author's Spark: 40-73 tok/s short decode, 28.3 tok/s @200K (BF16 KV) vs 47.2 (FP8 KV), 18.4 tok/s @950K, prefill ~1,680 tok/s @200K and 598 @950K, 200K needle PASS on both max tiers and a ~950K needle PASS on FP8, eval within 1.4 pts of BF16. First 1M-context Inkling-2-Mini lane; unofficial community recipe.

Launch command

docker run -d --name inkling2mini --gpus all --ipc host --restart no -p 18120:8000 -v '~/models/Inkling-2-Mini:/models/Inkling-2-Mini:ro' vllm/vllm-openai:inkling-2-mini /models/Inkling-2-Mini --served-model-name inkling-2-mini thinkingmachines/Inkling-2-Mini --tensor-parallel-size 1 --max-model-len 262144 --gpu-memory-utilization 0.80 --reasoning-parser inkling --enable-auto-tool-choice --tool-call-parser inkling --speculative-config '{"method":"dspark","num_speculative_tokens":7,"draft_sample_method":"probabilistic"}'

runtime

env: 'NAME/PORT/MODEL_DIR/IMAGE/KV_GIB/MAX_LEN env overrides in the launchers; container 8000 -> host 18120; max launchers drop the page cache once pre-start (passwordless sudo, skipped otherwise); --restart no.'
notes: 'Three tiers over one image (deltas vs the shown standard launch): max BF16 = ./launch_maxkv.sh KV_GIB=80 -> --max-model-len 1048576 --kv-cache-memory-bytes 85899345920 (pool 2,075,828 tok, 1.98x at 1M); max FP8 = ./launch_maxkv_fp8.sh KV_GIB=74 -> same plus --kv-cache-dtype fp8 and --kv-cache-memory-bytes 79456894976 (pool 3,308,911 tok, 3.16x at 1M; FP8 E4M3 unit scales, no calibrated scales - author flags check-your-own-long-context). Standard pool 1,346,671 tok (util 0.80, extensible KV). DSpark draft k=7 fixed (checkpoint block size 8 minus 1, enforced). reasoning_effort via chat_template_kwargs (default 0.9 high). Prefix caching + chunked prefill + CUDA graphs on by default. 1M tiers leave 7.2-8.4 GiB MemAvailable after warmup on the 121.6 GiB unified GB10 - do not raise KV_GIB past 80/74; an OOM on GB10 can hang the box until a power cycle. Env overrides: NAME/PORT/MODEL_DIR/IMAGE/KV_GIB/MAX_LEN.'

Use this recipe with your agent

Paste this into any agent chat — it fetches and applies the recipe:

Fetch https://localairecipes.com/api/v1/recipes/inkling-2-mini-nvfp4-mxfp8-dspark-1x-dgx-spark-vllm-262k-to-1m.json and apply the inference recipe it describes (engine flags, model, quant, context) to my setup. Ask before overwriting any existing config.

Or fetch it directly:

curl -fsSL https://localairecipes.com/api/v1/recipes/inkling-2-mini-nvfp4-mxfp8-dspark-1x-dgx-spark-vllm-262k-to-1m.json

Engine

Install note: docker pull vllm/vllm-openai:inkling-2-mini (or @sha256:c2dc759f5984f69c1e2418c6af7c26eb756f5ed2a8934c768ae1253645d1449e, built 2026-11-20, 27.1 GB; vLLM inside 0.1.dev25855+g7cb5dae22 pre-0.35, torch 2.14.0+cu130, Python 3.14). Weights: hf download thinkingmachines/Inkling-2-Mini (~20 GB incl. mtp.safetensors 0.64 GB DSpark drafter - required for spec decode) mounted ro at /models/Inkling-2-Mini. Launchers in the recipe repo @ 300942d: launch_standard.sh / launch_maxkv.sh (KV_GIB=80) / launch_maxkv_fp8.sh (KV_GIB=74, --kv-cache-dtype fp8); same container name inkling2mini and host port 18120 across tiers; ./stop.sh; watch_start.sh memory watch (kills under 3 GiB MemAvailable). --served-model-name inkling-2-mini; TP1; DSpark 7-token draft; sanity.py chat / sanity.py needle --tokens N checks included.

Model

Context

  • max context: 1M tokens

KV pool

  • 3,308,911 tokens across concurrent requests

Performance

Speed by context

ContextConc.PrefillDecodeTTFT
4,0961—40 tok/s—reported
200,000—1680 tok/s——reported
200,0001—28.3 tok/s—reported
210,2401—47.2 tok/s—reported
220,480—1693 tok/s——reported
949,953—598 tok/s——reported
949,9531—18.4 tok/s—reported

prefill = prompt processing · decode = generation. All decode/prefill figures are shown as reported.

reported

notesclaimed_by=submitter T0 - all numbers author-measured on the author's own DGX Spark 2026-11-20/21 (README section 9 + results/ scorecards @ pin 300942d). Decode rows come from short answers (77-149 tokens) and depend on DSpark draft acceptance - treat as rough; short-chat decode roughly 35-75 tok/s on all tiers. context_len markers: 4096 = short-chat battery; 210240 = 200000+10240 marks the FP8-KV 200K decode row (BF16 200K decode keeps the real 200000); 220480 = 200000+20480 marks the FP8-KV 200K prefill row (prefill rows omit concurrency). 950K rows use the real 949,953-token prompt. Prefill derived from measured TTFT (119.1/118.2 s @200K; 1,588 s @950K). Needles: 200K PASS both max tiers; ~950K needle PASS FP8 only. 69-scenario eval (2Wild-Model-Eval): quality 88.4 BF16 / 87.0 FP8, decode 47.7 / 47.3 tok/s, 68 of 69 scenarios the same. KV pools 1,346,671 / 2,075,828 / 3,308,911.

Install requirements

NVIDIA driver floor: unknown - check the image tag

Source: NVIDIA CUDA Toolkit Release Notes - driver compatibility tables (https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/, fetched 2026-10-03).

Map the placeholders to your rig

Downloads

Revision notes

Initial version.

Revision history

Initial version.

Fork

Sign in to fork this recipe — a fork is your own copy; you own it and only you can update it.

Export

recipe.yaml (raw)