localairecipes launch configs for local inference

Kimi K3.1 Pro 6x CMP 170HX 2x RTX PRO 6000 Blackwell TP2xPP4

00 upvotes — sign in to vote sign in to vote

community Community submission — verify on your own hardware.

recipe by darkmaniac7↗, moeadham (Kimi-K3.1-Pro-abliterated base)↗, Inferact / Red Hat AI Speculators (DSpark drafter)↗, Morrowmake (vllm-cmp170hx sm_80 + EXL3 foundation)↗, amoghmunikote (cmpunlocker 170HX unlock)↗ · listed by localai-recipes

revision r3 · commit ee0a59defe · updated 45 h ago · license MIT (repo) + Apache-2.0 (patch); model Kimi K3.1-Pro License

chat code abliterated vq k31q modded-hardware multi-node dspark exl3 speculative-decoding

Kimi-K3.1-Pro-abliterated-k31q (k31q v1: 1.625-bit vq_d2_b3 VQ MoE + 6-bit EXL3 dense, 1.72 bpw effective, 558.6 GiB, 93 layers) on a patched vLLM TP2xPP4 two-host (partition 28,22,22,21): stage 0: 2x RTX PRO 6000 Blackwell 96 GB; stages 1-3: 6x CMP 170HX over 100 GbE RoCE, PCIe P2P + custom allreduce. MODDED CARDS REQUIRED: every 170HX unlocked 64->80 GB via fb-geometry-80g.patch (darkmaniac7/cmp170hx-8gb-vfi-tools); unpatched 64 GB cards cannot run this layout. DSpark 6-bit EXL3 K6 drafter. Decode (author-reported, temp 0): 105.0/77.9/55.8 tok/s structured/code/prose (overall 75.0); no-spec 28.4-29.3. Context 131,072/req, KV pool 399,384. r2: +multimodal vision (8 img/prompt), prefix caching + 64 GiB host-RAM KV offload (~952K warm prefix, ~1.35M pool), allocator caps, alt co-resident layout (~1.09M pool).

Launch command

docker run -d --name k31-prod-n0 --hostname k31-prod-n0 --init --gpus '"device=0,1"' --network host --ipc host --shm-size 32g --pids-limit 8192 --memory 200g --device /dev/infiniband --cap-add IPC_LOCK --ulimit memlock=-1:-1 -e 'VLLM_HOST_IP=$MY_IP' -e 'NCCL_SOCKET_IFNAME=$IFNAME' -e 'GLOO_SOCKET_IFNAME=$IFNAME' -e VLLM_PP_LAYER_PARTITION=28,22,22,21 -e NCCL_DEBUG=WARN -e HF_HUB_OFFLINE=1 -e TRANSFORMERS_OFFLINE=1 -e PYTHONPATH=/srv/k31-runtime/vllm-k31 -e PYTHONDONTWRITEBYTECODE=1 -e CUDA_HOME=/srv/k31-runtime/env/cuda13 -e 'HOME=$CACHE/home' -e 'VLLM_CACHE_ROOT=$CACHE/vllm' -e 'TRITON_CACHE_DIR=$CACHE/triton' -e 'TORCHINDUCTOR_CACHE_DIR=$CACHE/inductor' -e 'CUDA_CACHE_PATH=$CACHE/cuda-jit' -e CUDA_CACHE_MAXSIZE=4294967296 -e NCCL_P2P_DISABLE=0 -e NCCL_P2P_LEVEL=SYS -e NCCL_IB_DISABLE=0 -e NCCL_IB_HCA=mlx5_0 -e NCCL_NET_GDR_LEVEL=SYS -e NCCL_PROTO=LL,LL128,Simple -e CUDA_DEVICE_ORDER=PCI_BUS_ID -e PYTORCH_CUDA_ALLOC_CONF=garbage_collection_threshold:0.8 -e VLLM_K31Q_DENSE_BACKEND=k31 -e VLLM_DSPARK_EXL3_K6=1 -e VLLM_K31Q_SHARD_ROUTED_UP=1 -e VLLM_K31Q_MLA_FUSE_G_PROJ=1 -e VLLM_K31_GLUE_ALL=1 -e VLLM_K31_GLUE_FUSED_ROUTER=0 -e VLLM_K31_GLUE_KDA_SPEC=1 -e VLLM_K31_GLUE_KDA_RECORDS=0 -e VLLM_K31_P2P_ALLREDUCE=0 -e VLLM_CUSTOM_ALLREDUCE_PCIE_P2P=1 -e VLLM_CUSTOM_ALLREDUCE_FLAGS=1 -e VLLM_SM80_TARGET_SHARD_ARGMAX=1 -e VLLM_SM80_TARGET_SHARD_ARGMAX_DIRECT=1 -e VLLM_K31_FP32_HEAD=1 -e VLLM_DSPARK_SHARD_ARGMAX=1 -e VLLM_DSPARK_MARKOV_SHORTLIST=32 -e VLLM_DSPARK_PER_K_WIDTH=0 -e VLLM_INDEXER_DECODE_RAW_K=1 -e VLLM_DSPARK_SUFFIX_HYBRID=1 -e VLLM_DSPARK_SUFFIX_MIN_MATCH_LEN=5 -e VLLM_PP_PACKED_HOP=1 -e VLLM_PP_HOP_NO_METADATA=1 -e VLLM_PP_HOP_CAT_PACK=1 -e VLLM_PP_SPLIT_DRAFT_EVENT=1 -e VLLM_PP_TRANSPORT=nccl -e VLLM_K31_STAGE_TIMING=64 -e VLLM_K31_PIPESPEC=1 -e VLLM_K31_PIPESPEC_BANK_FLIP=1 -e VLLM_K31_PIPESPEC_DYNAMIC=1 -e VLLM_K31_PIPESPEC_BONUS_CONF=1 -e VLLM_K31_PIPESPEC_CKS=3,4,5 -e VLLM_K31_PIPESPEC_MIN_CONF=0.28 -e VLLM_K31_PIPESPEC_LOG=64 -e 'VLLM_K31_STEP_COSTS={"1":38.5,"2":40.3,"3":42.9,"4":45.5,"5":48.2,"6":49.9,"7":51.7,"8":53.5,"9":55.4,"10":57.2,"11":59.0,"ps_hit_extra":10.0,"ps_miss_extra":4.2}' -v /srv/k31-runtime/vllm-k31:/srv/k31-runtime/vllm-k31:ro -v /srv/k31-runtime/env:/srv/k31-runtime/env:ro -v /srv/views:/srv/views:ro -v /srv/models:/srv/models:ro -v '$CACHE:$CACHE' -v '$LOGS:$LOGS' --entrypoint bash vllm/vllm-openai:nightly-647a76866b4559a74e27d1c6b55fbffe85c07ce4 -c 'export VIRTUAL_ENV='\''/srv/k31-runtime/env/venv-gpu'\'' PATH='\''/srv/k31-runtime/env/venv-gpu/bin:/srv/k31-runtime/env/cuda13/bin'\'':"$PATH"; exec '\''/srv/k31-runtime/env/venv-gpu/bin/python'\'' -m vllm.entrypoints.cli.main serve "$@"' k31 /srv/views/k31p28-s0 --served-model-name kimi-k3.1 --load-format k31q --quantization k31q --kv-cache-dtype bfloat16 --attention-backend CUSTOM --limit-mm-per-prompt '{"image":8}' --trust-remote-code --tensor-parallel-size 2 --pipeline-parallel-size 4 --distributed-executor-backend mp --nnodes 4 --node-rank 0 --master-addr '$MASTER_IP' --master-port 29541 --max-model-len 131072 --gpu-memory-utilization 0.95 --kv-cache-memory-bytes 8482560409 --max-num-seqs 4 --max-num-batched-tokens 2048 --enable-prefix-caching --kv-offloading-size 64 --compilation-config '{"cudagraph_capture_sizes":[1,2,3,4,5,6,8,10,12,16]}' --host 127.0.0.1 --port 8041 --speculative-config '{"method":"dspark","model":"/srv/models/Kimi-K3.1-Pro-DSpark-EXL3-K6","kv_cache_dtype":"bfloat16","num_speculative_tokens":11,"adaptive_k":{"tiers":[1,2,3,4,5,7,9],"confidence":{"thresholds":[0.60,1.15,1.70,2.25,2.95,3.75],"hysteresis":0.12,"accept_weight":0.12,"max_age":2},"log_interval":64}}' --no-enable-flashinfer-autotune --additional-config '{"kda_prefill_backend":"triton"}' --reasoning-parser kimi_k3 --enable-auto-tool-choice --tool-call-parser kimi_k3

runtime

env: 'TP=2|PP=4|PART=28,22,22,21|KV_DTYPE=bfloat16|KVGIB_LIST=7.90,7.20,7.20,7.60|UTIL_STAGE0=0.95|UTIL_TAIL=0.97|MEM_STAGE0=200g|MEM_TAIL=120g|MAX_LEN=131072|MAX_SEQS=4|MAX_BATCHED_TOKENS=2048|PREFIX_CACHING=1|KV_OFFLOAD_GIB=64|VISION=1|VISION_MAX_IMAGES=8|CG_SIZES=1,2,3,4,5,6,8,10,12,16|SPEC=dspark|SPEC_NUM_TOKENS=11|TAG=prod|VTAG=k31p28'
notes: 'multinode/up.sh multinode/layouts/tp2_pp4_2bw_6cmp.env starts 4 ranks via multinode/node.sh: rank 0 (shown in launch) on the RTX PRO 6000 host GPUs 0,1 (stage 0, layers 0-27, API 127.0.0.1:8041); ranks 1-3 on the CMP 170HX host (GPU pairs 6,7 / 0,2 / 1,4, socket-local TP2 pairs, NUMA-1 pair first for the 100 GbE NIC) launch the same command headless with UTIL 0.97, MEM 120g, views k31p28-s1/s2/s3 and kv-cache-memory-bytes 7730941132/7730941132/8160437862 (KVGIB 7.20/7.20/7.60). host.env sets MASTER_IP/MASTER_PORT 29541, IMG, NODES placement per multinode/host.env.example. Co-resident variant (r1 text, superseded by the Layouts r2 paragraph below): KVGIB_LIST=2.80,2.70,2.60,2.75 gave 143,408-token KV pool leaving 4.5-6.6 GiB free per GPU. fp8_ds_mla KV reader exists for SPEC=none only (DSpark shares the BF16 BLHNC pool). Layouts r2 (recipe repo HEAD ec1e753): multinode/up.sh multinode/layouts/tp2_pp4_2bw_6cmp.env is the DEDICATED production layout - 399,384 GPU HBM tokens + ~952K warm host-RAM prefix tokens via --enable-prefix-caching --kv-offloading-size 64 (OffloadingConnector, 8.56 GB/rank mmap in /dev/shm, ~17.2 GB stage 0 + ~51.4 GB CMP host), VISION=1 --limit-mm-per-prompt {"image":8}, PYTORCH_CUDA_ALLOC_CONF=garbage_collection_threshold:0.8, allocator caps 0 by default. ALTERNATE co-resident layout multinode/layouts/tp2_pp4_2bw_6cmp_coresident.env (NEW r2): KVGIB_LIST=2.60,2.70,2.60,2.75 = ~135.5K HBM + ~952K host = ~1.09M pool, MAX_BATCHED_TOKENS=1024, post-capture caps VLLM_CUDA_MEMORY_FRACTION_STAGE0=0.955 / VLLM_CUDA_MEMORY_FRACTION_CMP=0.925 applied after CUDA-graph capture, holding 3.9-5.5 GiB free per GPU across 90K+ prefills; expandable_segments:True rejected by OffloadingConnector. Author-measured: async GPU_to_CPU DMA 18.1 GB/s (1.68 GB in 92.7 ms, <1 s paging); turn-2 cached TTFT 22.72 s -> 5.82 s warm (14.3K prompt) and 128.4 s -> 5.03 s warm on 90,163 tokens (~25x).'

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/kimi-k3-1-pro-6x-cmp-170hx-2x-rtx-pro-6000-blackwell-tp2xpp4.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/kimi-k3-1-pro-6x-cmp-170hx-2x-rtx-pro-6000-blackwell-tp2xpp4.json

Engine

Install note: Not installable as written: both hosts run the pinned vllm/vllm-openai nightly image with a read-only engine tree built by engine/build-engine.sh from vllm-project/vllm@ef687f6179b752c028767e610addbda67ed36d03 + engine/vllm-k31-sm80.patch (re-peel authority = that upstream commit, recorded in engine/UPSTREAM_COMMIT at recipe HEAD ec1e753eea62718421b5ee068808b126e89f5b64), sm_80 + sm_120 fatbins, plus five standalone CUDA extension builders (_k31_vq_C, _k31_dense_C, _k31_glue_C, _k31_p2p_C, _exl3_C). Copy ./runtime/ to the second host so both mount the identical tree. Prereq: each CMP 170HX unlocked 64->80 GB via fb-geometry-80g.patch (darkmaniac7/cmp170hx-8gb-vfi-tools) and trained to PCIe Gen4 x16; TP2 pairs socket-local with TRAP31 PCIe P2P. Recipe HEAD r2 ec1e753: adds multimodal vision (+0.85 GiB stage 0), 64 GiB host-RAM KV offload (--kv-offloading-size 64; expandable_segments rejected) and post-capture allocator caps after CUDA-graph capture; engine build unchanged.

Model

Context

  • max context: 128K tokens

KV pool

  • 399,384 tokens across concurrent requests

Performance

Speed by context

ContextConc.PrefillDecodeTTFT
58,746—717 tok/s——reported
131,0721—75 tok/s—reported
131,0731—105 tok/s—reported
131,0741—77.9 tok/s—reported
131,0751—55.8 tok/s—reported
131,0761—28.9 tok/s—reported
131,0771——5030 msreported

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

reported

notesAuthor-reported (darkmaniac7): README + docs/outcomes.md at pinned commits 28c0c811 (measured 2026-11-25) and ec1e753 (measured 2026-11-26) and Discord cmpunlocker #development-general 2026-11-26 @Darkmaniac7 ('80tok/s on Code, 55 on prose, 1.72bpw effective'). Own 18-prompt harness tools/bench_multi.py + tools/prompts_decode_multi.jsonl (6 structured / 6 code / 6 prose), single-stream, temperature 0, max_tokens 512; never reproduced by localairecipes or any third party - T0 claim, not site-measured. Headline tok_s = code bucket median 77.93. All points WITH DSpark speculation unless noted; context_len values are tuple markers 131072+offset (see per-point notes). r2 offload/prefix-caching rows author-reported at ec1e753.

Downloads

Revision notes

Filed from lar-scout digest 2026-11-27 (Discord cmpunlocker guild #development-general 2026-11-26T04:17:43Z, @Darkmaniac7; author-reported perf, not site-measured). Engine re-peel authority: vllm-project/vllm@ef687f6179b752c028767e610addbda67ed36d03 per engine/UPSTREAM_COMMIT at recipe-repo HEAD r1 28c0c811f85a685c847ca406c4cd636230856e1e (patch engine/vllm-k31-sm80.patch applies over it; image vllm/vllm-openai:nightly-647a76866b4559a74e27d1c6b55fbffe85c07ce4 digest sha256:7a46a81f0539b4a1b407fe2c29abbe0b130eeee4e4597f4ed357863af9e36086; precompiled wheel wheels.vllm.ai/ef687f6179b752c028767e610addbda67ed36d03). HF revisions pinned (API-verified): target c31d148e9ecbb50bb2ed15bf38e8f2bf58dc11a4, drafter ec77cbc15fd1b4de438ac4641d5f728197c2febf (Inferact base 50f5a10c9385fb9a225c534dda8f7a1f5ae87110). MODDED HARDWARE: 6x CMP 170HX unlocked 64->80 GB via fb-geometry-80g.patch (darkmaniac7/cmp170hx-8gb-vfi-tools) is a hard prerequisite; hardware row reuses the cmp-170hx-x6 class profile (stock 64 GB) - the 80 GB figure is post-unlock only (owner decision t_7b650a59, precedent: DUFRelic 74-SM modded 2x170HX recipe). License: GitHub auto-detect is NOASSERTION on the author repo (dual LICENSE files); recorded from the README's own statement (MIT for launchers/tools/docs, Apache-2.0 for the vLLM patch) - not defaulted; checkpoints carry the Kimi K3.1-Pro License per HF cards. Drafting facts re-read at pinned HEAD, not the scout snapshot. Revision history r2 (2026-11-28): recipe repo drift r1 28c0c811 -> ec1e753 (1 commit, 2026-11-27T01:05-06:00, in the 2026-11-27 ingest window); ec1e753 adds multimodal vision, 64 GiB host-RAM KV offload, post-capture allocator caps, and the co-resident layout file; engine build unchanged (vllm@ef687f617 + image nightly-647a76866b digest sha256:7a46a81f..., engine/UPSTREAM_COMMIT zero diff at r1 and r2), so this is a launch-surface revision, not an engine-build bump. Published as revision r2 of this slug (owner decision: Option A - same-slug revision, coresident documented as the alternate layout; gated card t_f99fe5f7).

Revision history

History unavailable.

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)