Inkling-2-Mini NVFP4/MXFP8 1x CMP 170HX vLLM sm80 patches DSpark
00 upvotes — sign in to vote sign in to votecommunity 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.jsonDownloads
- Weights https://huggingface.co/thinkingmachines/Inkling-2-Minihf revision c9d028302cd0f035fdf8e7e91f089a4ce94d2195 (NVFP4 routed experts + MXFP8 dense under ModelOpt, ~19 GB folder)
- Drafter https://huggingface.co/thinkingmachines/Inkling-2-MiniDSpark block drafter via models/inkling2/speculator.py inside the same repo @ c9d028302cd0f035fdf8e7e91f089a4ce94d2195
- Engine image https://hub.docker.com/r/vllm/vllm-openai:inkling-2-minivllm/vllm-openai@sha256:c2dc759f5984f69c1e2418c6af7c26eb756f5ed2a8934c768ae1253645d1449e (0.1.dev25855+g7cb5dae22, published 20 Nov 2026); image unmodified - patches bind-mounted over the vllm package
- Reference git+https://github.com/snailbrainx/inkling-2-mini-sm80recipe repo @ bb08511e819f8767543646f05233174948e3f96e (tag v3): run.sh launch authority + INKLING_CONV_TAIL env default, patches/vllm 14 files (attention.py and ops/sconv.py moved at v3), site/ stand-ins, csrc/ CUDA extension
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
- 724a57d484 recipe: create inkling-2-mini-nvfp4-mxfp8-1x-cmp-170hx-vllm-sm80-patches-dspark 10 d ago
Fork
Sign in to fork this recipe — a fork is your own copy; you own it and only you can update it.