localairecipes launch configs for local inference

GLM-5.3-Flash EXL3 2.60bpw PP2 on 2x CMP 170HX DFlash2 k3

00 upvotes — sign in to vote sign in to vote

community Community submission — verify on your own hardware.

recipe by AlexBrandes (cmp170hx-glm53-flash-exl3 recipe repo + vLLM CMP170HX fork + plugin + this recipe + measurements)↗, turboderp (ExLlamaV3 engine + GLM-5.3-Flash-exl3 2.60bpw checkpoint)↗, incoai (GLM-5.3-Flash-DFlash2 drafter, CC BY-NC-ND 4.0)↗, Morrowmake (sm_80 GLM-5.3 code lineage via vllm-sm80)↗, Z.ai (GLM-5.3-Flash base model + INT8 dense sidecar source weights)↗ · listed by localai-recipes

revision r5 · commit d92a6a5b8f · updated 2 d ago · license Apache-2.0

chat code vision speculative pipeline-parallel dflash2 long-context docker-build vision exl3

GLM-5.3-Flash (EXL3 2.6 bpw, Q4NX routed experts) at PP2/TP1 on two CMP 170HX 64 GB cards via AlexBrandes' standalone cmp170hx-glm53-flash-exl3 recipe - VLLM_PP_LAYER_PARTITION=23,22: 23 target layers card 1, 22 + DFlash2 drafter (3 draft tokens, 4-bit) card 2. r4 build: Q4NX checkpoint codebrandes/GLM-5.3-Flash-Q4NX-2.6bpw with in-repo INT8 dense weights, plugin ff413b2df1, published GHCR image sha256:125662d8. Decodes spread over in-flight micro-batches, never mixed with prefill; FULL_DECODE_ONLY CUDA graphs. 225,280-token context, 4 sequences, block 4608, KV pool 520,579 tokens. Measured 2026-11-17 (sparkDash 3e6d4ef, author): structured C1 175.7 / code 161.9 / prose 111.1 tok/s, aggregate C4 427.6, cold prefill 4,078-4,605 tok/s - roughly 2x the r2/r3 11-11 build; fidelity KLD 0.1511 vs 0.157 baseline. Recipe and engine by AlexBrandes; checkpoint MIT, drafter CC BY-NC-ND 4.0.

Launch command

vllm serve /model --host 0.0.0.0 --port 8000 --served-model-name glm-5.3-flash-exl3-2.60bpw --quantization exl3 --load-format exl3 --dtype bfloat16 --pipeline-parallel-size 2 --tensor-parallel-size 1 --mm-encoder-tp-mode data --max-model-len 225280 --max-num-seqs 4 --max-num-batched-tokens 2048 --prefill-chunk-with-decodes 2048 --block-size 4608 --gpu-memory-utilization 0.97 --enable-auto-tool-choice --tool-call-parser glm47 --reasoning-parser glm47 --enable-prompt-tokens-details --compilation-config '{"cudagraph_mode": "FULL_DECODE_ONLY"}' --speculative-config '{"method": "dflash", "model": "/draft", "num_speculative_tokens": 3, "quantization": null, "draft_load_config": {"load_format": "safetensors"}}' --hf-overrides '{"text_config": {"aux_hidden_state_tensor": "stream_mean"}}'

env

null

notes

null

runtime

env: "serve.sh exports (verbatim @ c6590e1): VLLM_CACHE_ROOT=/cache/vllm TRITON_CACHE_DIR=/cache/triton CUDA_CACHE_PATH=/cache/cuda PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True VLLM_PP_LAYER_PARTITION=23,22 (23 target layers on card 1, 22 + drafter on card 2) VLLM_PP_SPREAD_DECODES=1 VLLM_PP_HOMOGENEOUS_STEPS=1 (decodes spread over in-flight micro-batches; prefill and decode tokens never share a step) VLLM_SM80_KDA_PREFILL=1 VLLM_AMPERE_DECODE_KERNELS=1 VLLM_SM80_MHC_DECODE=1 VLLM_SM80_MHC_PREFILL=1 VLLM_SM80_TOPK_SORTED=1 VLLM_SM80_TOPK_CANONICAL_TIES=1 (DSA indexer top-k sorted with canonical ties: identical requests give identical results) VLLM_EXL3_MOE_PREFILL_TC=1 VLLM_EXL3_MOE_DECODE_TC=1 VLLM_EXL3_MOE_DECODE_TC_MODE=full VLLM_EXL3_Q4N_PREFILL=i8 VLLM_EXL3_Q4N_I8_GEMM=t2c4 VLLM_EXL3_Q4N_DECODE=i8 VLLM_EXL3_Q4N_DECODE_GEMM=t2c4 VLLM_EXL3_MOE_DECODE_TC_MAX_ROWS=64 VLLM_EXL3_MOE_COMBINE_WIDE=1 VLLM_EXL3_ROUTE_CHECK=0 (Q4NX routed experts: INT8 tensor-core GEMMs with per-row INT8 activations in prefill and decode, decode calls up to 64 rows, wide combine) VLLM_EXL3_DENSE_PREFILL_TC=1 VLLM_EXL3_DENSE_PREFILL_ONE_PRODUCT=float VLLM_EXL3_DENSE_DECODE_TC=1 VLLM_EXL3_DENSE_DECODE_TC_FAMILIES=all VLLM_EXL3_DENSE_DECODE_SPLITK=1 VLLM_EXL3_DECODE_VARIANT=off VLLM_EXL3_DENSE_W8=/model/int8/dense.safetensors VLLM_EXL3_DENSE_W8_DECODE=1 (dense matrices + LM head from the checkpoint's INT8 copy; Marlin W8A16 LM head; unset both to serve them from EXL3). Run: ./download.sh && ./start.sh (start.sh: docker rm -f cmp170hx-glm53-flash-exl3; docker run -d --name cmp170hx-glm53-flash-exl3 --gpus '\"'\"'device=$GPUS'\"'\"' --shm-size 16g --user $(id -u):$(id -g) -e HOME=/cache -e HF_HUB_OFFLINE=1 -p $HOST:$PORT:8000 -v $MODEL_DIR:/model:ro -v $DRAFT_DIR:/draft:ro -v $CACHE_DIR:/cache -v $PWD/config/chat_template.jinja:/model/chat_template.jinja:ro -v $PWD/docker/serve.sh:/opt/cmp170hx/serve.sh:ro ghcr.io/alexbrandes/cmp170hx-glm53-flash-exl3@sha256:125662d8...; then curl /health until 200; model glm-5.3-flash-exl3-2.60bpw on 127.0.0.1:8000)."
notes: 'serve.sh ends exec vllm serve ... "$@"; extra argv appends. The vLLM branch is upstream plus the fork''s commits; the plugin registers the CMP 170HX (sm_80) platform and carries the kernels (Q4NX INT8 tensor-core expert GEMMs, tensor-core EXL3 for layer-3 experts + non-sidecar dense matrices, chunked KDA prefill, fused decode family, mHC decode + prefill pre-norm, sorted DSA indexer top-k, PP scheduler). Tensor-core paths are selected for the measured shapes (74 SMs/card, this checkpoint). Chat template config/chat_template.jinja honours enable_thinking=false and renders image/video placeholders. The drafter (CC BY-NC-ND 4.0, non-commercial) is NOT in the image - download.sh fetches it BF16 and converts it to 4-bit in the image (tools/convert_draft.py; the converted copy is never distributed). The 11-17 published image sha256:125662d8 was equivalence-checked by the author against the measured lab deployment sha256:4884fe2d (bitwise-identical prompt and generated logprobs on 1,056/4,128/16,416-token prompts and a chat prompt, every difference 0.0, plus 7/7 image/video/text checks).'

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/glm-5-3-flash-exl3-2-60bpw-pp2-on-2x-cmp-170hx-dflash2-k3.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/glm-5-3-flash-exl3-2-60bpw-pp2-on-2x-cmp-170hx-dflash2-k3.json

Engine

Install note: docker run ghcr.io/alexbrandes/cmp170hx-glm53-flash-exl3@sha256:125662d873c809229ec85ebf18ce76f1f7b9a8a86470edd447880c116af32f8f - ./download.sh pulls checkpoint codebrandes/GLM-5.3-Flash-Q4NX-2.6bpw @ 799c91c7 (Q4NX routed experts; INT8 dense weights INCLUDED: int8/dense.safetensors sha256 bca746e7) and the BF16 drafter incoai/GLM-5.3-Flash-DFlash2 @ bf582e4e, converted to 4-bit W4A16 g128 in the image (tools/convert_draft.py, sha256 16180d0e = the measured build); ./start.sh runs the container (GPUS=0,1, shm 16g) and waits /health - the recipe leaves the power limit alone (measured at 170 W/card, set it yourself: nvidia-smi -pl 170). Settings via .env; serve.sh mounted over the image copy. Engine pins from AlexBrandes/vllm: upstream wheel a0d7356b98 (unchanged), branch ea2ef399a6 (unchanged from r2/r3), plugin ff413b2df197 (new: Q4NX codebook + INT8 expert paths). r3 pins (plugin 7129837ee1, image sha256:1112f996) remain on revision 3.

Model

Context

  • max context: 220K tokens

KV pool

  • 520,579 tokens across concurrent requests

Performance

Speed by context

ContextConc.PrefillDecodeTTFT
1,0241—175.7 tok/s—reported
1,0242—274.8 tok/s—reported
1,0244—427.6 tok/s—reported
1,0248—408.4 tok/s—reported
4,096—4078.2 tok/s——reported
4,0961—113.8 tok/s—reported
8,192—4480.4 tok/s——reported
8,1921—121.3 tok/s—reported
11,2641—161.9 tok/s—reported
11,2642—218.1 tok/s—reported
11,2644—287.2 tok/s—reported
11,2648—313.6 tok/s—reported
16,384—4568.8 tok/s——reported
16,3841—115.9 tok/s—reported
21,5041—152.2 tok/s—reported
21,5042—232.3 tok/s—reported
21,5044—349.6 tok/s—reported
21,5048—346.7 tok/s—reported
31,7441—111.1 tok/s—reported
31,7442—199.5 tok/s—reported
31,7444—282.3 tok/s—reported
31,7448—274.3 tok/s—reported
32,768—4604.6 tok/s——reported
32,7681—122.3 tok/s—reported
65,536—4604.6 tok/s——reported
65,5361—116.7 tok/s—reported
131,072—4446.2 tok/s——reported
131,0721—114.7 tok/s—reported

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

reported

notesRe-measured 2026-11-17 by the author (2x CMP 170HX, 74 SMs/card, 170 W/card, PCIe Gen2 x4, no P2P, driver 610.43.02) with the sparkDash 3e6d4ef battery (greedy, thinking off, 400 output tokens, engine-direct); aggregate table is ONE public-v1 run (the 11-11 tables were medians of 3), prefill and depth-decode rows are medians of the recorded runs (3; 2 at 65k/131k) (results/q4nx-2.6bpw.json @ c6590e1). Supersedes the 11-11 table: Q4NX checkpoint + plugin 7129837ee1 -> ff413b2df1 + image 1112f996 -> 125662d8. C1-C8 are aggregate (max-num-seqs 4, so C8 queues): structured C1 175.7 / code 161.9 / JSON 152.2 / prose 111.1 tok/s; aggregate C2 274.8, C4 427.6, C8 408.4 (structured). Cold prefill 4,078-4,605 tok/s (4k-128k). Depth-decode C1 113.8-122.3 tok/s after 4k-128k prompts. Quality (same session): GSM8K chat 1229/1319 (completion 1208/1319), IFEval 372/541 strict-prompt (638/834 instruction), fidelity-v1 KLD 0.1511 vs baseline 0.157, BF16 panel KLD 0.1525 vs turboderp sc_2.60bpw 0.1559 (paired delta -0.0034 +/- 0.0016), vision 7/7. KV pool 520,579 tokens. Not re-measured by the site; all figures are the author's T0 claims.

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

r5 (lar-scout t_3a6a1907, self-correction of r4): r4 was sent with the 2-part path 'config/runtime', which RecipeUpdate's config case FLATTENS - the new env/notes landed as yaml config.env/config.notes (applied '/config/env','/config/notes') while the jsonb config mirror kept r3's runtime block, so the detail page still rendered the 11-11 env. r5 re-sends runtime as a NESTED key of a whole-config object (applied '/config/runtime': nested env+notes replace wholesale) and nulls the stray config.env/config.notes. Engine/artifacts/performance/summary unchanged from r4 (content ece2433a); no other content moved. Same run, same card, same convergence with t_5a43c41f as recorded in r4's notes.

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)