TONYD2WILD / GLM-5.3-FLASH-NVFP4-1M-KV-4X-DGX-SPARK·vLLM·FP8 e4m3 (or NVFP4)
GLM-5.3-Flash TP4
GLM-5.3-Flash served on four DGX Spark GB10 nodes, with the model split across them (tensor parallel, TP4). It writes about 90 output tokens per second (tok/s), and one request may hold up to 393,216 tokens.
4× DGX Spark GB10 (121GB each) · FP8 e4m3 (or NVFP4) · vLLM · source tonyd2wild / GLM-5.3-Flash-NVFP4-1M-KV-4x-DGX-Spark
- GLM-5.3-Flash
- vLLM
- multi-node
- TP4
- DGX Spark
- FP8
- MoE
- linear attention
4× DGX Spark GB10Hardware
FP8 e4m3 / NVFP4Precision
vLLM (SM90-NoPE + FA2 route)Runtime
393,216 tokensMax context
01Overview
- Decode speed (writing the answer) stays flat: 91 to 96 tok/s from 800 to 93K tokens of context.
- The DFlash2 draft model (k=7) gives one request roughly 65% more decode speed than no speculation.
- Set reasoning_effort to 'low' or 'high'. Any other value, or none, means Max.
Setup in short
- Download the weights: hf download unsloth/GLM-5.3-Flash-FP8 (8-bit FP8, 328 GB), or LibertAIDAI/GLM-5.3-Flash-NVFP4 (4-bit NVFP4, 194 GB, about 31% more throughput). Download the drafter incoai/GLM-5.3-Flash-DFlash2 and set $DRAFT_PATH to its path.
- Pull the image on all four nodes: docker pull aidendle94/sparkrun-vllm-glm53-gb10:production-1.2
- Flush the cached files on every node before every start: sync && echo 3 > /proc/sys/vm/drop_caches
- Start ranks 1 to 3 (the workers) first, then rank 0. The first start takes about 10 to 15 minutes.
- Check readiness with /health, not /v1/models (it returns HTTP 200 even when the engine has stopped).
02The recipe
docker run -d --name glm53flash \
--network host --ipc host --shm-size 32g --gpus all \
--cap-add IPC_LOCK --ulimit memlock=-1:-1 \
--memory 112g --memory-swap 112g \
--device /dev/infiniband:/dev/infiniband \
-v $HOME/.cache/huggingface:/cache/huggingface \
-e HF_HOME=/cache/huggingface \
-e NCCL_IB_HCA=$HCA0,$HCA1 \
-e NCCL_SOCKET_IFNAME=$NIC -e GLOO_SOCKET_IFNAME=$NIC \
-e VLLM_HOST_IP=$NODE_IP \
-e NCCL_IB_ROCE_VERSION_NUM=2 -e NCCL_IB_ADDR_FAMILY=AF_INET \
-e NCCL_IB_ADDR_RANGE=10.0.0.0/24 \
-e NCCL_NET=IB -e NCCL_IB_DISABLE=0 \
-e NCCL_ALGO=Ring -e NCCL_PROTO=LL,LL128,Simple \
-e NCCL_SKIP_TREE_CONNECT=1 \
-e NCCL_IB_SUBNET_AWARE_ROUTING=1 -e NCCL_IB_SUBNET_PREFIX_LEN=24 \
-e NCCL_IB_MERGE_NICS=0 -e NCCL_P2P_LEVEL=SYS -e NCCL_NET_PLUGIN=none \
-e NCCL_MAX_NCHANNELS=4 -e NCCL_MIN_NCHANNELS=4 \
-e NCCL_CROSS_NIC=1 -e NCCL_CUMEM_ENABLE=0 -e NCCL_IGNORE_CPU_AFFINITY=1 \
-e TORCH_USE_RTLD_GLOBAL=1 -e TORCHINDUCTOR_COMPILE_THREADS=1 \
-e CUTE_DSL_ARCH=sm_121a -e TORCH_CUDA_ARCH_LIST=12.1a \
-e PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True \
-e VLLM_ENGINE_READY_TIMEOUT_S=3600 -e VLLM_ALLOW_LONG_MAX_MODEL_LEN=1 \
aidendle94/sparkrun-vllm-glm53-gb10:production-1.2 \
bash -lc 'unset VLLM_PREFIX_CACHE_RETENTION_INTERVAL; exec vllm serve $MODEL_PATH \
--served-model-name glm-5.3-flash --host 0.0.0.0 --port 8210 \
--trust-remote-code \
--reasoning-parser glm45 \
--tool-call-parser glm47 --enable-auto-tool-choice \
--chat-template $TEMPLATE_PATH \
--default-chat-template-kwargs "{\"enable_thinking\": true, \"reasoning_effort\": \"high\"}" \
--kv-cache-dtype fp8_e4m3 \
--block-size 2304 \
--moe-backend marlin \
--tensor-parallel-size 4 \
--max-model-len 393216 --max-num-batched-tokens 8192 --max-num-seqs 16 \
--enable-chunked-prefill \
--gpu-memory-utilization 0.85 \
--kv-cache-memory-bytes 12884901888 \
--speculative-config "{\"method\":\"dflash\",\"model\":\"$DRAFT_PATH\",\"num_speculative_tokens\":7}" \
--distributed-timeout-seconds 240 \
--cpu-distributed-timeout-seconds 3600 \
--disable-custom-all-reduce \
--distributed-executor-backend mp \
--nnodes 4 --node-rank $RANK --master-addr $HEAD_IP \
--master-port 29513'03Technical details
- Use a multimodal chat template, or requests with images return HTTP 500.
04Reported results
No results reported yet.