localairecipes launch configs for local inference

Qwen3.8-Flash-Next Uncensored AWQ-g32 on 3x CMP 170HX — PP3, 1M ctx, NVMe PLE, MTP-4 (givisok)

00 upvotes — sign in to vote sign in to vote

community Community submission — verify on your own hardware.

recipe by recipe, tuning notes and measurements by givisok↗, base stack and vllm-sm80 fork by clee↗, AWQ-g32 checkpoint by leoncca↗, uncensored base by orcarouter↗, cudagraph capture-size idea from mannydelrio↗, vLLM (Apache-2.0)↗, givisok @ d685848d (2026-11-03): prefix-replay-depth + cow-fix patches; gdn-61952 tried and reverted - reference only↗ · listed by localai-recipes

revision r6 · commit e4716bb43f · updated 30 h ago · license CC-BY-4.0

chat code sm80 nvme-staged-ple pipeline-parallel mtp-speculative no-p2p mamba-hybrid needle-validated long-context fp8-kv uncensored yarn-1m

Qwen3.8-Flash-Next-Uncensored-AWQ-g32 (leoncca, 137 GB) on three CMP 170HX cards (80 GiB, PP3 only - P2P broken) via givisok's vLLM jump fork on the jump-1m-fp8-ssmbf16-mtp4-ngram production lane (switched 2026-11-29): MTP-4 + n-gram speculation, FP8 KV pool 8,495,773 tokens (8.10x), YaRN x4 to 1M ctx. Production measured: solo decode code 222 / prose 166 / structured 255 tok/s, cold prefill 10.7k tok/s @13.7k (TTFT 1.27 s) and 16-17.7k across 55k-445k, 1.01M cold wall ~68.5 s, follow-up turns on cached prefix 0.08 ms/token, needle 1M 18/18. Upstream #58449 QSA side-cache fix live in production since 2026-11-30.

Launch command

IMAGE=vllm-jump-test:70b67cf8 FORK=/root/src/vllm-sm80 './run-qwen38fn-jump.sh   # mounts configs/jump-1m-fp8-ssmbf16-mtp4-ngram.yml; ./switch-stack.sh jump|old to move between stacks (3.5-4 min, fallback on failure)'

runtime

env: 'NCCL_P2P_DISABLE=1 NCCL_IB_DISABLE=1 NCCL_DEBUG=WARN (P2P hangs on these cards) | VLLM_ALLOW_LONG_MAX_MODEL_LEN=1 (1M > checkpoint native 262144) | VLLM_PP_LAYER_PARTITION=17,17,14 (1 layer off the last rank; rollback 17,16,15) | VLLM_PLE_STAGED=1 VLLM_PLE_MMAP=0 VLLM_PLE_SYNC=1 (sync closes the fp8-PLE H2D staging race) | VLLM_QWEN4_QSA_TOPK_CANONICAL=1 VLLM_QWEN_QSA_TOPK_SORTED=1 (QSA top-k tie fix) | VLLM_QWEN4_ROUTER_FP32=1 VLLM_QWEN4_MTP_PER_STREAM_NORM=0 | VLLM_QWEN4EXP_PP_INT8_HOP=1 (g4bwy 0006 port) | VLLM_MTP_DRAFT_HEAD_PATH=/models/qwen38fn-awq-g32/draft-lm-head-w4a16-g128.safetensors | VLLM_MIXED_PREFILL_CHUNK=864 (FN12 bounded prefill) | VLLM_SWA_BLOCK_CAP=432 VLLM_SWA_NO_PREFIX_CACHE=1 (dflash-lane knobs, inert on the mtp lane) | VLLM_PLE_PREFILL_CHECKPOINT=1 | QWEN4EXP_PLE_MODEL_DIR=/models/qwen38fn-awq-g32 | HF_HUB_OFFLINE=1 TRANSFORMERS_OFFLINE=1 | PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True PYTORCH_NVML_BASED_CUDA_CHECK=1 VLLM_WORKER_MULTIPROC_METHOD=spawn'
notes: 'run-qwen38fn.sh (default CONFIG=configs/awq-1m-fp8-ssmbf16-mtp4.yml, SPEC_MODE=mtp, since 2026-11-02) execs docker run -d --gpus all --ipc=host --ulimit memlock=-1 --restart unless-stopped -p 0.0.0.0:8080:8000 with /home/models ro at /models, the config yml ro at /opt/stack.yml, the fork vllm/ tree bind-mounted over the image dist-packages, --entrypoint vllm vllm-sm80:q38fn serve --config /opt/stack.yml. All serve args live in the yml: model /models/qwen38fn-awq-g32, served-model-name qwen3.8, api-key set on server, host 0.0.0.0 port 8000, distributed-executor-backend mp, tensor-parallel-size 1, pipeline-parallel-size 3, disable-custom-all-reduce true, dtype bfloat16, max-model-len 1048576, block-size 1728, max-num-seqs 16, max-num-batched-tokens 8192, long-prefill-token-threshold 2048, gpu-memory-utilization 0.95, kv-cache-dtype fp8_e4m3, enable-prefix-caching, prefix-cache-retention-interval 17280, prefix-match-unit 16, enable-chunked-prefill, mamba-cache-mode align, mamba-ssm-cache-dtype bfloat16, async-scheduling true, compilation-config cudagraph_mode FULL_AND_PIECEWISE cudagraph_capture_sizes [1,2,5,10,15,20,25,30,40,50,60,70,80], enable-flashinfer-autotune false, speculative-config {method mtp, model /models/qwen38fn-awq-g32/mtp-fp8, num_speculative_tokens 4}, chat-template /opt/chat_template.jinja (checkpoint chat_template.jinja), trust-request-chat-template, enable-auto-tool-choice, tool-call-parser qwen3_xml, reasoning-parser qwen3, default-chat-template-kwargs {enable_thinking true, preserve_thinking true, reasoning_effort xhigh (xhigh/medium/low only)}, hf-overrides text_config.layer_types [linear_attention x3, qwen_sparse_attention] x12 and rope_parameters {rope_type yarn, factor 4.0, original_max_position_embeddings 262144, rope_theta 10000000, partial_rotary_factor 0.25, mrope_interleaved true, mrope_section [11,11,10]}. CAVEAT (verbatim from the yml): the disk KV tier (kv-disk) must be wiped when swapping model checkpoints — entries are content-addressed by tokens, not weights; the kv-transfer-config tiering block itself is REMOVED (fork OffloadingConnector corrupted multi-chunk cached prefixes — word-salad, ablation 5/5 garbage vs 6/6 clean). Rollback rungs: MTP-3 CONFIG=configs/awq-1m-fp8-ssmbf16.yml; SPEC_MODE=dflash fast code lane is a full-1M lane since 06cf0cd (one drafter config.json line, max_position_embeddings 262144->1048576, rope untouched); after fix acc/draft 1.79 at 512k and 1M (was 0.01 past boundary), decode 131.8/141.7 tok/s (MTP-4 prod 134 @1M), needle 1M 18/18 PASS (runs/dflash-1m/battery-20261102.txt); shipped k-schedule [[1,2,5],[3,4,3],[5,16,3]] (k max 5, was 7), block-size 1728 (was 3456), max-num-batched-tokens 6912 (was 10368), gpu-memory-utilization 0.95 (was 0.94); prod stayed MTP-4 (same-night switch-and-revert, RU solo 124.9 vs 101.3). Host: Proxmox LXC CT101 Debian, swap 0, 3 cards passed through, memlock unlimited.'

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/qwen3-8-flash-next-uncensored-awq-g32-on-3x-cmp-170hx-pp3-1m-ctx.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/qwen3-8-flash-next-uncensored-awq-g32-on-3x-cmp-170hx-pp3-1m-ctx.json

Engine

  • vllm

Install note: NOT installable from the stock image: the stack is the jump fork (patches/jump-increment-20261129.diff publishes the 17-branch delta as one diff) + image vllm-jump-test:70b67cf8 (nightly of the base commit + test imports, docker/jump-test/Dockerfile); mounted lane configs/jump-1m-fp8-ssmbf16-mtp4-ngram.yml via scripts/run-qwen38fn-jump.sh. ./switch-stack.sh jump|old rolls between stacks in 3.5-4 min with fallback. In production since 2026-11-30 12:15 MSK: upstream vLLM #58449 (MTP drafter updates its QSA side-cache metadata in place; +5.9% solo decode on code, -4.7% per verification step, same bits). Since 2026-11-30 09:28 MSK: canonical token order as one Triton kernel (-1.7% solo decode; the argsort form was +17.5%). BF16-Q knob (v0.34.1 rebase, patch qsa-bf16-q-sm80.diff): env VLLM_QWEN4_QSA_FP8_Q=0 serves BF16 Q; default keeps FP8 Q. -dflash/-ngram variant lanes exist but the mounted production lane is jump-1m-fp8-ssmbf16-mtp4-ngram (resolved from the launcher per card ruling).

Model

Context

  • max context: 1M tokens

KV pool

  • 8,495,773 tokens across concurrent requests

Performance

Speed by context

ContextConc.PrefillDecodeTTFT
13,700110700 tok/s——reported
16,3841—222 tok/s—reported
16,3844—411 tok/s—reported
131,072116500 tok/s——reported
1,048,576114800 tok/s——reported

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

reported

notesProduction arm 2026-11-29 (runs/perf-20261129.txt; prod-jump-20261129T124815Z on the serving box an hour after the switch, PLE 100% throughout; old-base column = that morning's baseline on the same kit). Solo decode via sparkDash sd_bench (medians over six arms). std_battery solo py/rust/edit/sql 166/193/200/314; N=6 aggregate 566 (565-758), acceptance 65-68%. 4/8 parallel agent turns all served in 2.8/4.8 s at 8.2k/9.7k tok/s aggregate. Decode beside a 200k cold prefill: no stall >1 s, 25.9 s for 500 tokens. History: 2026-11-02 sparkDash rows were 195/149/241 solo and 131k cold prefill 4,179; the 1.01M wall was ~200 s (4,287 tok/s); follow-up resend 0.41 s @0.193 ms/token. The 2026-11-29 recall row is a quality GATE, not a gain.

Downloads

Revision notes

Submitted 2026-11-02 by localai-recipes (poster/listed_by per attribution rule) via lar-scout ingest cards t_a7e81981 + full-body twin t_481f538a (parent digest t_430360a8). Repo @ 91803a4a18a1d96d4d73ed1709b11937e6bd1f63 (HEAD verified via git ls-remote 2026-11-02). Launch argv + env transcribed verbatim from scripts/run-qwen38fn.sh + configs/awq-1m-fp8-ssmbf16-mtp4.yml (launcher default since 2026-11-02) at that sha; all serve args live in the yml passed as vllm serve --config /opt/stack.yml; patches/ bind-mount over the fork tree, env-gated, they do not change argv vs the yml. corrections_to_card: kv_pool_tokens submitted as the twin card's verbatim 5,280,000 (5.28M) — repo exact figure 5,282,636 / 5.04x (2026-11-02 gmu 0.95 bump) recorded in performance notes; 195/241/149 c1 = MTP-4 solo code/structured/prose medians (2026-11-02 sparkDash replica); twin card said source_type git — submission enum maps it to fork (clee/vllm-sm80 q38fn lineage); engine.git_url names the RECIPE repo per card instruction, the engine fork itself is clee/vllm-sm80 (artifacts + install_note); hardware resolves to existing profile nvidia-cmp-170hxx3 (device_count 3). All performance numbers are author-claimed, dated 2026-11-01/02, not validated on our hardware. Revision 2026-11-06 t_05a3d460 owner-approved: served argv/perf/pinned_commit unchanged. The 262,144 limit correction (06cf0cd, after the 11:20 pin) is applied to runtime.notes and the drafter pin. dflash k5/block1728/6912/0.95 shipped in-window for the non-default dflash lane only; launcher default stays MTP-4 (mtp4.yml byte-identical pin->tip); prod->dflash->MTP-4 round-trip logged 2036926..ca422c39. Engine-overlay gap: 11 .diff patches at pin vs 15 at tip 90a18b67 — four newer: hash-promote-fix (8dc61e3, blob 6d5ae831; second engine-killing partial-hash assert, incident 2026-11-04 14:58Z ~20h after CoW fix d685848, [partial-cow] never fired = independent path), prefix-replay-cow-fix, prefix-replay-depth, port-gdn-61952 (tried+reverted, 922e827). The shipped overlay predates hash-promote-fix. Pin not bumped; adoption needs an owner-gated engine card plus box verify. Correction: cited HEAD 1729536 nonexistent; real tip is 90a18b67.

Revision 2026-11-19 t_8eb869a1 owner-approved (provenance-only; served argv/config/pins/perf unchanged): repo HEAD 90a18b67 -> bf964135 (43 past pin 91803a4a, linear; runs/*.txt only) -> 743734e01f at write (45; +2 runs/ sweep logs 11-17; mtp4.yml blob 1fa76f19 byte-identical pin->HEAD; launcher CONFIG/SPEC defaults unchanged, 2 comment lines). PROD FORK MOVED: 3c367a58e5 -> f010ce5415 — tag prod-mtp4-ngram-hermes-notools-20261113 (peels 15397d51) + runs/decode-slowdown-20261114 name fork @ f010ce5415; install_note + engine_image pin + engine.version updated. notools port #67427 is BEHAVIOURAL for clients: no-tools requests stream content unchanged instead of tool_calls + null content. Patch overlay 15 @ 90a18b67 -> 21 .diff + 3 probes @ HEAD (+10: parser-hardening, partial-cow-vacated-slot, prefix-replay-cow-fix, prefix-replay-depth, port-gdn-61952, hash-promote-fix, gdn-prefill-fusion-66064, hermes-67164-port, ngram-60615-port, notools-67427-port); shipped overlay predates hash-promote-fix — adoption = owner-gated engine card + box verify. 2026-11-14: decode 'regression' retracted as SSE-chunk measurement artifact (7b4f0e4; usage-based 159-182 struct/code, 110-115 prose; the 11-01/02 battery was never the retracted one); host RAM 48->80 GB, CT 64 GiB hot, PLE 48 GiB fully resident (c4f97ce). 2026-11-16: v0.34.0 TAG exists, release object unpublished at bf96413, family wave rides to v0.35 (fdc5cc3); kit main f248264 -> d24f3a50 (== q38fn/stack); clee production-fork commits no longer resolve as public pages (lineage on deleted/renamed branches; tag text self-describes). Sidecars: HF leoncca mtp-fp8-v1 checkpoint unchanged; peer-vs-mannydelrio battery (2d38192) — their speed claim is vs their own broken stock-TP baseline.

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)