GLM-5.3-Flash EXL3 2.60bpw PP2 on 2x CMP 170HX DFlash2 k3
00 upvotes — sign in to vote sign in to votecommunity 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
nullnotes
nullruntime
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.jsonInstall requirements
- Docker (or a compatible OCI container runtime)
- NVIDIA Container Toolkit (nvidia-container-toolkit) - exposes host GPUs to the container
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
- Hardware-bound values in this recipe (device counts, bind-mount paths, utilization, ports) describe the author's machine, not yours - map them to your own rig before launching. Keep the engine flags, model, quant, and parallelism strategy; adjust paths and ports to the hardware you actually have.
- GPU identity: list your GPUs with `nvidia-smi -L` and substitute your own GPU UUIDs/indices wherever the recipe pins the author's.
- Model directory: bind-mount paths are author-side - point them at your own mount where the model files live.
- Host port: pick a free port on your machine and publish the container there; keep the in-container port unchanged.
Downloads
- Weights https://huggingface.co/codebrandes/GLM-5.3-Flash-Q4NX-2.6bpw799c91c775f3cbd98de292329c0efee2ddc5be10 - Q4NX routed-experts checkpoint (r4 serving build): Q4NX codebook experts, 6-bit dense/attention + vision, INT8 dense weights INCLUDED (int8/ sha256 bca746e7); 116.9 GB; MIT (GLM-5.3-Flash derivative)
- Drafter https://huggingface.co/incoai/GLM-5.3-Flash-DFlash2bf582e4eacc1810f76656d1811693ff6c6737d2a - BF16 drafter, stream_mean auxiliary state, CC BY-NC-ND 4.0 (non-commercial, no redistribution); converted to 4-bit W4A16 g128 by tools/convert_draft.py (sha256 16180d0e = the measured build); unchanged from r1-r3
- Reference https://github.com/AlexBrandes/cmp170hx-glm53-flash-exl3c6590e105e0a62f033ccc6808b549af6d022eba3 - standalone recipe repo (AlexBrandes) main @ HEAD; r4 build: download.sh + start.sh + docker/serve.sh @ this pin
- Reference https://github.com/AlexBrandes/vllmea2ef399a614ea72b65b15804000342f629a850f - vLLM branch commit (unchanged from r2/r3)
- Engine image https://github.com/AlexBrandes/vllmff413b2df19718342e02d9763f161d69afce7b4a - vllm-cmp170hx plugin commit (r4: Q4NX codebook + INT8 expert paths, branch glm53/q4nx-release); published serving image sha256:125662d8
- Reference https://github.com/vllm-project/vllma0d7356b98e929c17051bac44f5a086e4117974d - upstream vLLM base commit (unchanged r1-r4); prebuilt wheel from wheels.vllm.ai (sha256 5e293d985d...)
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
- 00585ca053 recipe: update glm-5-3-flash-exl3-2-60bpw-pp2-on-2x-cmp-170hx-dflash2-k3 (r5: /summary, /engine, /config/runtime, /config/env, /config/notes, /performance, /artifacts, /storage_requirements, /kv_pool_ 16 d ago diff
- daf930ee33 recipe: update glm-5-3-flash-exl3-2-60bpw-pp2-on-2x-cmp-170hx-dflash2-k3 (r4: /summary, /engine, /config/env, /config/notes, /performance, /artifacts, /storage_requirements, /kv_pool_tokens, /provenan 16 d ago diff
- 3dbd7bc3ae recipe: update glm-5-3-flash-exl3-2-60bpw-pp2-on-2x-cmp-170hx-dflash2-k3 (r3: /provenance/source_urls, /provenance/notes) 17 d ago diff
- 7acf256909 recipe: update glm-5-3-flash-exl3-2-60bpw-pp2-on-2x-cmp-170hx-dflash2-k3 (r2: /summary, /engine, /config/launch, /config/runtime, /performance, /artifacts, /provenance/credit) 17 d ago diff
- bf9a8d56d0 recipe: create glm-5-3-flash-exl3-2-60bpw-pp2-on-2x-cmp-170hx-dflash2-k3 29 d ago
Fork
Sign in to fork this recipe — a fork is your own copy; you own it and only you can update it.