localairecipes launch configs for local inference

Inkling-2-Mini NVFP4/MXFP8 1x CMP 170HX vLLM sm80 patches DSpark

00 upvotes — sign in to vote sign in to vote

community Community submission — verify on your own hardware.

recipe by snailbrainx (sm_80 patches, CUDA extension, measurements)↗, localai-recipes↗, Thinking Machines Lab (Inkling 2 Mini checkpoint, Apache-2.0)↗ · listed by localai-recipes

revision r2 · commit 9d8e8f4efe · updated 44 h ago · license apache-2.0 (model + recipe); patched files keep vLLM Apache-2.0

chat code sm80 ampere looped-moe mxfp8 inkling-2-mini dspark speculative-decoding nvfp4

thinkingmachines' Inkling-2-Mini (looped MoE, NVFP4 routed experts + MXFP8 dense under ModelOpt) on a single CMP 170HX GA100 (sm_80, 64 GB, 180 W) using vLLM's own inkling-2-mini image (0.1.dev25855+g7cb5dae22) unmodified - sm_80 patch files are bind-mounted over the vllm package, plus Triton stand-ins and a repo-built CUDA extension compiled inside the image on first start. DSpark block drafter at k=4, 262,144-token window (KV pool 286,563), text lane (vision tower not enabled on sm_80). Measured by the author: 9,001/8,483/6,307/4,674 tok/s prefill at 8K/32K/128K/262K, TTFT 3.9/20.8/55.9 s, single-user decode 315/246/177 tok/s for lists/code/prose (chat 194, counting 324), 8-user totals 1,349/791/717. Recipe by snailbrainx.

Launch command

docker run --rm --name inkling2-sm80 --gpus '"device=0"' --ipc=host -p 127.0.0.1:8000:8000 -v '$MODEL:/model:ro' -v '~/.cache/inkling2-sm80:/root/.cache' -v '$HERE/site:/sm80site:ro' -v '~/.cache/inkling2-sm80/sm80ext-<sha16>:/sm80ext:ro' -v '$HERE/patches/vllm/models/inkling2/nvidia/attention.py:/usr/local/lib/python3.14/dist-packages/vllm/models/inkling2/nvidia/attention.py:ro' -v '$HERE/patches/vllm/models/inkling2/nvidia/dspark.py:/usr/local/lib/python3.14/dist-packages/vllm/models/inkling2/nvidia/dspark.py:ro' -v '$HERE/patches/vllm/models/inkling2/nvidia/loop.py:/usr/local/lib/python3.14/dist-packages/vllm/models/inkling2/nvidia/loop.py:ro' -v '$HERE/patches/vllm/models/inkling2/nvidia/model.py:/usr/local/lib/python3.14/dist-packages/vllm/models/inkling2/nvidia/model.py:ro' -v '$HERE/patches/vllm/models/inkling2/nvidia/moe.py:/usr/local/lib/python3.14/dist-packages/vllm/models/inkling2/nvidia/moe.py:ro' -v '$HERE/patches/vllm/models/inkling2/nvidia/ops/attention.py:/usr/local/lib/python3.14/dist-packages/vllm/models/inkling2/nvidia/ops/attention.py:ro' -v '$HERE/patches/vllm/models/inkling2/nvidia/ops/attention_sm90.py:/usr/local/lib/python3.14/dist-packages/vllm/models/inkling2/nvidia/ops/attention_sm90.py:ro' -v '$HERE/patches/vllm/models/inkling2/nvidia/ops/conv_mix.py:/usr/local/lib/python3.14/dist-packages/vllm/models/inkling2/nvidia/ops/conv_mix.py:ro' -v '$HERE/patches/vllm/models/inkling2/nvidia/ops/gemv.py:/usr/local/lib/python3.14/dist-packages/vllm/models/inkling2/nvidia/ops/gemv.py:ro' -v '$HERE/patches/vllm/models/inkling2/nvidia/ops/linear.py:/usr/local/lib/python3.14/dist-packages/vllm/models/inkling2/nvidia/ops/linear.py:ro' -v '$HERE/patches/vllm/models/inkling2/nvidia/ops/moe_sm90.py:/usr/local/lib/python3.14/dist-packages/vllm/models/inkling2/nvidia/ops/moe_sm90.py:ro' -v '$HERE/patches/vllm/models/inkling2/nvidia/ops/sconv.py:/usr/local/lib/python3.14/dist-packages/vllm/models/inkling2/nvidia/ops/sconv.py:ro' -v '$HERE/patches/vllm/models/inkling2/quant_config.py:/usr/local/lib/python3.14/dist-packages/vllm/models/inkling2/quant_config.py:ro' -v '$HERE/patches/vllm/models/inkling2/speculator.py:/usr/local/lib/python3.14/dist-packages/vllm/models/inkling2/speculator.py:ro' -e INKLING_SM80=1 -e INKLING_CONV_TAIL=1 -e PYTHONPATH=/sm80site:/sm80ext -e PYTORCH_CUDA_ALLOC_CONF=expandable_segments:False -e TRITON_CACHE_DIR=/root/.cache/triton -e HF_HUB_OFFLINE=1 vllm/vllm-openai@sha256:c2dc759f5984f69c1e2418c6af7c26eb756f5ed2a8934c768ae1253645d1449e /model --served-model-name inkling-2-mini --host 0.0.0.0 --port 8000 --max-model-len 262144 --gpu-memory-utilization 0.96 --language-model-only --reasoning-parser inkling --enable-auto-tool-choice --tool-call-parser inkling --max-num-batched-tokens 12288 --max-num-seqs 8 --speculative-config '{"method":"dspark","num_speculative_tokens":4,"draft_sample_method":"probabilistic"}'

runtime

env: 'MODEL required (downloaded model folder); GPU=0 default (GPU=0,1 adds --tensor-parallel-size 2 --disable-custom-all-reduce and UTIL default 0.92); PORT=8000; BIND=127.0.0.1 (no API key - bind 0.0.0.0 only on trusted networks); K=4 DSpark draft tokens (1-7, k=4 best all-rounder; k=7 fastest counting); LEN=262144; BATCH=12288; UTIL=0.96 one GPU; CONV_TAIL=1 default (v3 conv-tail KV layout, ~2.5x KV tokens) - CONV_TAIL=0 restores vLLM plain sliding-window; CACHE=~/.cache/inkling2-sm80; IMAGE/NAME overridable. run.sh computes the CUDA-extension cache dir from a sha256 of csrc sources + IMAGE.'
image: 'vllm/vllm-openai@sha256:c2dc759f5984f69c1e2418c6af7c26eb756f5ed2a8934c768ae1253645d1449e (tag inkling-2-mini, python 3.14, torch+vllm 0.1.dev25855+g7cb5dae22)'
mount: /usr/local/lib/python3.14/dist-packages/vllm
notes: 'Extra args after run.sh pass through to vllm serve (e.g. ./run.sh --max-num-seqs 16). Thinking controlled via chat_template_kwargs reasoning_effort (none = brief reasoning still per the model card). KV bf16; FP8 KV path SM12x-only.'

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-1x-cmp-170hx-vllm-sm80-patches-dspark.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-1x-cmp-170hx-vllm-sm80-patches-dspark.json

Engine

Install note: Image vllm/vllm-openai@sha256:c2dc759f5984f69c1e2418c6af7c26eb756f5ed2a8934c768ae1253645d1449e (0.1.dev25855+g7cb5dae22, published 20 Nov 2026, container python 3.14) is NOT modified: the 14 *.py files under patches/vllm of the recipe repo are bind-mounted over the same paths in /usr/local/lib/python3.14/dist-packages/vllm (see config.launch), site/ holds Triton stand-ins (sitecustomize.py neutralises Hopper-only grid-dependent-launch helpers; moe_align/reshape_and_cache/vocab_parallel replacements for ops whose kernels are sm_100-only), and csrc/inkling_sm80_cuda.cu is compiled by csrc/build.sh with nvcc -arch=sm_80 inside the same image on first start (~1 min) and cached under ~/.cache/inkling2-sm80. run.sh sets INKLING_SM80=1 and PYTHONPATH=/sm80site:/sm80ext to activate the shims. Patches target this exact build; a newer image needs them redone (patches/sm80.diff). v3 adds env INKLING_CONV_TAIL=1 by default (0 = vLLM plain sliding-window) per run.sh @ bb08511e81.

Model

Context

  • max context: 256K tokens

KV pool

  • 286,563 tokens across concurrent requests

Performance

Speed by context

ContextConc.PrefillDecodeTTFT
1,0241—150 tok/s—reported
1,0242—227 tok/s—reported
1,0244—343 tok/s—reported
1,0248—501 tok/s—reported
2,048—7962 tok/s——reported
4,0961—315 tok/s—reported
4,0968—1349 tok/s—reported
8,192—9001 tok/s——reported
14,3361—246 tok/s—reported
14,3368—791 tok/s—reported
24,5761—177 tok/s—reported
24,5768—717 tok/s—reported
32,768—8483 tok/s—3900 msreported
32,7681—140 tok/s—reported
34,8161—194 tok/s—reported
43,008—8607 tok/s——reported
45,0561—324 tok/s—reported
131,072—6307 tok/s—20800 msreported
131,0721—121 tok/s—reported
262,144—4674 tok/s—55900 msreported
262,1441—90 tok/s—reported

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

reported

notesAuthor's own bench, 24 Nov 2026 (v2 build = repo HEAD/tag v2): measured side by side with v1 on two identical CMP 170HX cards at 180 W, PCIe Gen2 x16, DSpark k=4, reasoning_effort none; throwaway pass of every test first (no kernel compiling during measurement), every measured prompt new (no prefix-cache hits). Recipe prompts = count 1-200 (lists), Python tasks (code), hash-map explanation (prose), 400 tokens at temperature 0, median of 5; with several users the figure is the total of all. Chat and random-word rows sample at temperature 0.7, which swings drafter hit rate and speed by about +/-10%; single runs otherwise vary +/-5% at one user. context_len marker rows = base + N (N x 10240) where a (ctx, concurrency) cell repeats. Two-GPU variant (GPU=0,1, TP2, --disable-custom-all-reduce, UTIL 0.92) measured once on a P2P pair: 338/263/182 tok/s one user, KV pool 418,253 - different hardware shape, not points here.

Downloads

Revision notes

Submitter localai-recipes. Recipe, patches, CUDA extension and all measurements by snailbrainx (repo inkling-2-mini-sm80 @ 8b998e0a2f6f tag v2 = the measured v2 build of 24 Nov 2026; verified live at ingest 2026-11-25). Launch verbatim from run.sh at the pin (single GPU defaults). Corrections to the scout card: the card's intended slug (inkling-2-mini-nvfp4-mxfp8-1x-cmp-170hx-vllm-sm80-patches-dspark-k4) is 67 chars and the server slugify cut is 64 - title re-worded so the slug lands exactly 64 on a token boundary; k=4 is documented in launch/runtime instead. Pins re-verified at ingest: docker-content-digest of vllm/vllm-openai:inkling-2-mini == sha256:c2dc759f5984f69c1e2418c6af7c26eb756f5ed2a8934c768ae1253645d1449e (anonymous registry probe); HF tip == c9d02830 (gated:false, 2026-11-24T18:23Z, 'Add evaluation results') - same checkpoint as the live Inkling siblings. ModelOpt NVFP4 routed experts + MXFP8 dense (README); quant string reuses the existing row shared by the 3090/DGX-Spark Inkling recipes. Caveats: first start compiles the CUDA extension (~1 min) and Triton kernels (cached); a first-ever prompt length or user count can add up to ~3 s latency once. Text lane only (--language-model-only; vision tower untried on sm_80); KV cache bf16 (FP8 KV path is SM12x-only). Author states A100 should behave the same but untested; sm_86/sm_89 untested (less shared memory). Patches bind to this exact image build; a newer image needs them redone (patches/sm80.diff).

UPDATE 2026-11-27 (kanban t_5bbed88b, owner-approved Option A) - pin 8b998e0a2f -> bb08511e81 (tag v3, merge of PR #4 'v3: 2.5x the KV cache at the same speed'). run.sh delta is purely additive: +1 env INKLING_CONV_TAIL=1 (0 restores vLLM's plain sliding-window layout) - published launch gained exactly '-e' 'INKLING_CONV_TAIL=1'; all mounts and serve flags unchanged. patches/vllm file list unchanged (14 files); exactly 2 blobs moved at v3: models/inkling2/nvidia/attention.py (new InklingConvTailManager + KVCacheManager.allocate_slots monkeypatch) and models/inkling2/nvidia/ops/sconv.py (store-mask skips null-block writes); csrc/inkling_sm80_cuda.cu got 3 null-block write guards, so the sha-keyed extension cache dir rotates and the .so rebuilds automatically on first start. Base image unchanged: still vllm/vllm-openai@sha256:c2dc759f5984f69c1e2418c6af7c26eb756f5ed2a8934c768ae1253645d1449e (0.1.dev25855+g7cb5dae22, 20 Nov) - NO image re-pin; checkpoint c9d02830 resolves gated:false. PERF ROWS HELD: all published perf figures (and kv_pool_tokens 286,563) are v2-era measurements (author bench, 24 Nov) and predate v3; v3's claimed one-GPU KV 286,563->705,878 and +0.5% geometric-mean speed are the author's figures, NOT verified on the box (CMP 170HX under a standing test hold - a re-measure needs a GPU soak). Known lineage caveat: the image's upstream base vllm-project/vllm @ 7cb5dae22 no longer resolves in the repo walk (PIN-GONE at the 2026-11-26 sweep); it names the image build, not this recipe pin.

Revision history

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)