GLM-5.3-Flash NVFP4 on 2x DGX Spark - Atlas RC4.2 TP2, DFlash2, 1M
00 upvotes — sign in to vote sign in to votecommunity Community submission — verify on your own hardware.
recipe by Enntity (Jason McCartney)↗, Reiner Schmidt (GLM-5.3-Flash Atlas port)↗, Atlas-Inf contributors (upstream base)↗ · listed by localai-recipes
revision r3 · commit 653270250a · updated 25 h ago · license AGPL-3.0
chat code vision vision dflash2 long-context speculative roce agent-serving prefix-caching nvfp4 atlas deterministic-decode kv-shard
GLM-5.3-Flash NVFP4 (nvidia checkpoint) served by Enntity's Atlas engine with tensor+expert parallelism across two DGX Sparks over one ConnectX-7 cable, DFlash2 speculative decoding (incoai drafter), FP8-latent KV pool with prefix caching, up to 4 concurrent requests at per-request 1M context; opinionated ./start.sh stack (image from pinned engine commit, verified NVFP4 MTP overlay, optional display-carveout / disk prefix cache / KV shard) with RigMark benchmark receipts, bounded determinism (greedy output independent of concurrency), install + converter tests, and published cross-recipe comparison (RiNGSiDE vLLM TP2).
Launch command
serve /models/atlas-overlay --kernel-target=glm-5.3-flash --world-size=2 --tp-size=2 --max-seq-len=1048576 --gpu-memory-utilization=0.88 --ep-size=2 --max-prefill-tokens=8192 --max-batch-size=4 --max-num-seqs=4 --oom-guard-mb=4096 --kv-cache-dtype=fp8_g128 --ssm-h-dtype=f32 --ssm-rollback-mode=records --block-size=16 --ssm-cache-slots=16 --enable-prefix-caching --ssm-checkpoint-interval=0 --gpu-ordinal=0 --swap-space-gb=0 --no-auto-swap --no-tui --lm-head-dtype=bf16 --request-timeout=0 --video-allow-ffmpeg --vision-allow-remote-images --tool-call-parser=poolside_v1 --video-max-frames=32 --dflash --draft-model=/models/drafter --dflash-gamma=8 --dflash-window-size=2048 --mtp-gate=forceruntime
env: "Install layer (install/, image tag 246a3a948ab9 = git tree @ 3c7d671): profile 4x1m environment arms the full RC4.2 decode stack — NCCL Ring/Simple over the CX-7 (NCCL_IB_HCA + NCCL_SOCKET_IFNAME set per node from the detected fabric port, FABRIC_SIBLINGS=1 adds the RoCE device behind the cable's other PCIe domain), ATLAS_RDMA_ALLREDUCE=1 + ATLAS_RDMA_ONESHOT=1 + ATLAS_RDMA_ONESHOT_SM_STAGE=1 + ATLAS_RDMA_PAIR_CHAIN=1 + ATLAS_GLM_CMD_RDMA=1 for the direct RDMA all-reduce, ATLAS_GLM_KV_SHARD=1 + ATLAS_GLM_KV_SHARD_COMPACT=1 when --kv-shard, DFlash2 (ATLAS_GLM_DFLASH=1, ATLAS_DFLASH_OPTION_B=1, ATLAS_DFLASH_ADAPTIVE_WIDTH=1 with ATLAS_DFLASH_CONF_WIDTH=1 + ATLAS_DFLASH_CONF_PROBE=256, ATLAS_DFLASH2_EDGE=0.6, ATLAS_DFLASH_MULTI_DRAFT_CAP=7, ATLAS_GLM_DRAFT_TP=1 + ATLAS_GLM_DRAFT_TP_BATCH=1 + ATLAS_GLM_DRAFT_TP_CTX=1 + ATLAS_GLM_DRAFT_TP_TOPK=1, ATLAS_DFLASH_ASYNC_UPLOADS=1, ATLAS_DFLASH_MXFP8=1 + ATLAS_DFLASH_NVFP4_HEAD=1 + ATLAS_DFLASH_NVFP4_TC=1 + ATLAS_DFLASH_CONV_TWIN=nvfp4), canonical verify (ATLAS_GLM_CANONICAL_VERIFY-class ATLAS_GLM_STRICT_SPEC=1 for structured outputs, ATLAS_GLM_VERIFY_VOCAB_SPLIT=1, ATLAS_GLM_LONG_BATCH_VERIFY=1), prefix cache (ATLAS_GLM_PC_EVICT=1 + ATLAS_GLM_PC_BRANCH=1, Marconi prefill-only ATLAS_MARCONI_PREFILL_ONLY=1, ATLAS_GLM_WARM_SKIP_CACHED=1 + ATLAS_GLM_WARM_CHUNK_RUN=1), NVFP4 kernels (ATLAS_NVFP4_FUSED_SILU_QUANT=1, ATLAS_NVFP4_PREQUANT_MOE=1, ATLAS_NVFP4_VECSCALE=1, ATLAS_UNIFIED_MOE_LAYOUT=1) and the RC4 fusions (ATLAS_GLM_MOE_ROUTE_FUSE=1, ATLAS_GLM_MLA_FUSE=1, ATLAS_GLM_DENSE_TP_SPLIT=1, ATLAS_GLM_KDA_COMMIT_CTAS=96, ATLAS_GLM_MXFP8_TILED=1, ATLAS_PDL=1) — ~220 ATLAS_*/NCCL_* keys total, transcribed in full into install/profiles/4x1m.json @ 3c7d671 (values win over ambient flags: serve.py strips ATLAS_* from the container env and re-applies the profile's own). Ranks: docker run --network host --ipc host --shm-size 32g --memory 114g --gpus all --device /dev/infiniband --cap-add IPC_LOCK --cap-add SYS_NICE --ulimit memlock=-1:-1 --security-opt no-new-privileges=true (start-node.sh); --cap-add SYS_ADMIN only with DISPLAY_CARVEOUT=1. NVMe tier env (serve.py disk_prefix_cache): ATLAS_KV_NVME_DIR=/prefix-cache/kv + ATLAS_KV_NVME_GB=<half>, ATLAS_GLM_NVME_FAST=1, ATLAS_SSM_TIER=1 + ATLAS_SSM_TIER_UNIFIED=1 + ATLAS_SSM_TIER_SWAP_DIR=/prefix-cache/ssm + ATLAS_SSM_TIER_DISK_GB=<half> + ATLAS_SSM_TIER_SLOTS=2."
notes: "SparkGLM RC4.2 (Enntity/sparkglm @ 3c7d671, RC4.2 merge): GLM-5.3-Flash NVFP4 on two DGX Sparks joined by one 200G ConnectX-7 cable, served by the Atlas engine (Enntity/atlas sparkglm/atlas-20261012-rc4.2-layered @ dfb9c26a, tree 89e392a3) with tensor + expert parallelism over RDMA (RoCE v2, both PCIe domains of the cable), DFlash2 speculative decoding (gamma 8, window 2048), FP8-latent shared KV pool with prefix caching, up to 4 concurrent requests with per-request 1M context (4x1m profile), OpenAI-compatible API on 127.0.0.1:8893. ./start.sh on rank 0 drives everything: pulls/builds the image (tag = git tree of install/), downloads both pinned checkpoints once (207 GB) and mirrors them over the cable, converts the 864 NVIDIA MTP matrices to NVFP4 in a verified overlay per node (install/convert.sh, ~1 min), then starts rank 1 over ssh and rank 0 and waits for health (~2.5 min). Optional knobs (default off unless set in .env): DISPLAY_CARVEOUT=1 lends each GB10's 2 GiB display carveout to the KV pool (server drops CAP_SYS_ADMIN after export); PREFIX_CACHE_DIR(+PREFIX_CACHE_GB, 16-100 GiB per node) keeps evicted prefix-cache entries on each node's disk; KV_SHARD=1 (start-node --kv-shard) splits the MLA latent KV across the ranks (~1.8x pool); SPARKGLM_GPU_MEMORY_UTILIZATION 0.80-0.95 overrides the profile's 0.88. Decode is concurrency-invariant (canonical verify): greedy output at c4 equals c1 4/4. Rerun ./start.sh to restart; ./start.sh stop|status|logs|build|download|convert."
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-nvfp4-on-2x-dgx-spark-atlas-rc4-2-tp2-dflash2-1m.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-nvfp4-on-2x-dgx-spark-atlas-rc4-2-tp2-dflash2-1m.jsonDownloads
- Weights https://huggingface.co/nvidia/GLM-5.3-Flash-NVFP4423acf37583782c51c142d145aef733d72943d93
- Drafter https://huggingface.co/incoai/GLM-5.3-Flash-DFlash27d74cdd881ed7e32c31175984a67823127b66cfe
- Engine image https://ghcr.io/enntity/atlas-sparkglm:246a3a948ab9image tag = git tree of install/ @ 3c7d671 (246a3a948ab9)
- Reference https://github.com/Enntity/atlasdfb9c26a95c96faa9f94c44e23343b0f2b4f9db6
- Reference https://github.com/Enntity/sparkglm/tree/main/results/2026-10-12-rc4RC4.2 RESULT.md + SHA256SUMS receipts bundle
Revision notes
Submitted 2026-10-13 from lar-scout ingest card t_6e8bdfa6. Repo @ 3c7d67146929f350ed75fcdfd5e5349db843b483 (verified via git ls-remote + clone; HEAD = RC4.2 merge PR #47). ENGINE CORRECTION: the serving engine is ATLAS (Enntity/atlas fork, sparkglm/atlas-20261012-rc4.2-layered @ dfb9c26a, tree 89e392a3, install/atlas-source.json; image ghcr.io/enntity/atlas-sparkglm built from that commit + the install/ tree), NOT vLLM — the repo's vLLM lane is retired at tag vllm-final ('Atlas is now the only engine'); the RiNGSiDE vLLM TP2 column is the external reference, not this recipe. Launch argv VERBATIM from install/profiles/4x1m.json server_argv @ 3c7d671 (serve.py resolves ${model}/${drafter} and appends --rank/--master-addr/--master-port/--bind=127.0.0.1/--port=8893/--model-name=glm-5.3-flash-atlas); profile env (~220 keys) transcribed verbatim into the same file. Hardware: hw.card family stem dgx-spark + device_count 2 resolves against seed slug dgx-spark-x2 (migration 0066 pre-POST, 0064/0065 convention) — first 2-node Spark recipe on the site. Weights: nvidia/GLM-5.3-Flash-NVFP4 @ 423acf37 (start.sh pin; HF HEAD since da920bb0) + drafter incoai/GLM-5.3-Flash-DFlash2 @ 7d74cdd8 (start.sh pin; bf582e4e = drafter repo's current HEAD). Licenses: repo AGPL-3.0-only; weights MIT (HF tags); drafter CC BY-NC-ND 4.0 NON-COMMERCIAL (card said CC BY-NC — ND is the published term). Perf rows TRANSCRIBED from the repo's raw receipts results/2026-10-12-rc4/raw/ (SHA256SUMS bundle): RigMark cells per bench/RIGMARK.md on the 8x128k profile, single-stream rows on production 4x1m; RiNGSiDE comparison figures are the repo's reference numbers, not re-measured. Other repo receipts: greedy c1==c4 4/4 (rc4_on.json), logprob hash 246cd1331b41, arithmetic 491/500 + needle 24/24, strict-96-key JSON 39 s @ 59 tok/s. Drivers 580.173.02 / 580.178.04 (carveout-validated, docs/INSTALL-MANUAL.md). No dupe: zero 2-Spark recipes and zero nvidia-NVFP4 GLM lanes on the site at ingest.
Revision history
- 653270250a recipe: update glm-5-3-flash-nvfp4-on-2x-dgx-spark-atlas-rc4-2-tp2-dflash2-1m (r3: /engine) 19 h ago diff
- 62d388e8a3 recipe: update glm-5-3-flash-nvfp4-on-2x-dgx-spark-atlas-rc4-2-tp2-dflash2-1m (r4: /max_context_len) 10 d ago diff
- 42ceb2e571 recipe: update glm-5-3-flash-nvfp4-on-2x-dgx-spark-atlas-rc4-2-tp2-dflash2-1m (r3: /performance) 18 d ago diff
- f9d3fb48b2 recipe: update glm-5-3-flash-nvfp4-on-2x-dgx-spark-atlas-rc4-2-tp2-dflash2-1m (r2: /performance) 18 d ago diff
- 7ec165411f recipe: create glm-5-3-flash-nvfp4-on-2x-dgx-spark-atlas-rc4-2-tp2-dflash2-1m 18 d ago
Fork
Sign in to fork this recipe — a fork is your own copy; you own it and only you can update it.