Commit ·
be70d30
1
Parent(s): b287bfc
Update model card: NFS-served TP4 lane (validated 2026-09-09), supersedes all-local-NVMe lane
Browse files123456789101112131415161718192021222324252619 unmodified lines4647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192---license: otherbase_model: zai-org/GLM-5.3-BF16tags: [glm-5.3, quantization, int4, int8, mixed-precision, compressed-tensors, dgx-spark, quanttrio]pipeline_tag: text-generation---# GLM-5.3-Int4-Int8MixThe first Int4/Int8Mix quantization of big **GLM-5.3 (743B)** — produced with theQuantTrio recipe, verified structurally and numerically, and served at TP4 on fourNVIDIA DGX Spark (GB10 / sm121).- **Base:** `zai-org/GLM-5.3-BF16` (1507 GB, genuine BF16 — chosen over the fp8 repo so the router, DSA indexer, lm_head and layer 0 stay true BF16)- **Size:** 377.4 GiB, 282 shards, `compressed-tensors` / `pack-quantized`- **Per-rank at TP4:** 94.6 GiB## Quantization recipeConfig groups transferred verbatim from `QuantTrio/GLM-5.2-Int4-Int8Mix` — GLM-5.2 andGLM-5.3 are structurally identical (78 layers, hidden 6144, kv_lora_rank 512, 256 routedexperts, first_k_dense_replace 3). Data-free RTN: no calibration, static, symmetric,weight-only, group size 128.| group | targets | bits | strategy | modules ||---|---|---|---|---|19 unmodified linesW4-g128 nrmse ≈ 0.111 (exactly theoretical for data-free absmax RTN), W8-g128 ≈ 0.0072,W8-channelwise MTP ≈ 0.009. Packing convention proven by discrimination(wrong unpack scores cos ≈ −0.58).- **Integrity:** full 282-entry sha256 manifest; distributed to 4 cluster nodes withper-target verification, 282/282 OK each.## Serving (TP4 on 4× DGX Spark)vLLM fork stack with the sm12x sparse-MLA kernel overlays (`probe-modded` image lineage),native multi-node (`--nnodes/--node-rank`, workers headless), local NVMe weights per node.Sweep-optimized config (autoresearch over k, max-seqs, NCCL channels, Marlin atomic-add,cudagraph capture sizes):```--speculative-config '{"method":"mtp","num_speculative_tokens":3,"draft_tensor_parallel_size":1,"attention_backend":"FLASHMLA_SPARSE"}'--tensor-parallel-size 4 --max-model-len 200000 --max-num-seqs 8 --max-num-batched-tokens 8192--gpu-memory-utilization 0.91 --kv-cache-memory-bytes 10950000000 --kv-cache-dtype fp8_ds_mla--distributed-executor-backend mp --compilation-config '{"cudagraph_mode":"FULL"}'```Plus: cache-flushers (unconditional drop_caches during boot — page cache eatsCUDA-visible memory 1:1 on GB10 unified memory), `vm.swappiness=10`, NCCL pinned to theRoCE fabric with `NCCL_IB_GID_INDEX` omitted (reboot-volatile GID tables).### Measured (e2e wall-clock, 256-token prose, temp 0)| concurrency | tok/s ||---|---|| C1 | 27.2 || C4 | 59.1 || C8 | 86.9 |TTFT ≈ 0.6 s at ~780-token prompt. KV pool 200,064 tokens. MTP mean acceptance length2.3–3.1/3. Beats the prior GLM-5.2 QuantTrio TP4 reference at every concurrency level.### Quality (10-sample battery, temp 0)GSM8K 80% · HumanEval 100% · MBPP 100% · IFEval 90% · MMLU-STEM 90% · ARC-C 90% ·HellaSwag 90% → **91.4% average** — no meaningful loss vs the BF16-served baseline class.## ProvenanceQuantized, verified, and benchmarked on a fleet of DGX Spark nodes over a RoCE fabric byan agent-assisted pipeline. Companion repo with the full quantization script, verificationgates, launch recipe, autoresearch sweep and raw results: see the repo README / linkedGitHub repository.12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310419 unmodified lines124125126127128129130131132133134135136137138139140---license: otherbase_model: zai-org/GLM-5.3-BF16tags: [glm-5.3, quantization, int4, int8, mixed-precision, compressed-tensors, dgx-spark, quanttrio, vllm, mtp, speculative-decoding, nfs, rdma]pipeline_tag: text-generation---# GLM-5.3-Int4-Int8MixThe first Int4/Int8Mix quantization of big **GLM-5.3 (743B)** — produced with theQuantTrio recipe, verified with fail-closed structural + numerical gates, and served atTP4 on four NVIDIA DGX Spark (GB10 / sm121) nodes over a RoCE fabric.- **Base:** `zai-org/GLM-5.3-BF16` (1507 GB, genuine BF16 — chosen over the fp8 repo so the router, DSA indexer, lm_head and layer 0 stay true BF16)- **Size:** 377.4 GiB, 282 shards, `compressed-tensors` / `pack-quantized`- **Per-rank at TP4:** 94.6 GiB- **Companion repo (scripts + raw results):** https://github.com/chishiki37/glm-5.3-int4-int8mix-4x-dgx-spark## Serving (TP4 on 4× DGX Spark, NFS-served weights)**Status:** validated 2026-09-09 · **Nodes:** 4 (gx10-141d head + 3 NFSoRDMA workers) ·**Context:** 200K (1M in config, KV-pinned pool 200,064 tok)Weights live in **one copy** on the head node (gx10-141d, 200G IB) and areNFSoRDMA-exported to the three workers — no per-node NVMe copies. This topology**supersedes the all-local-NVMe lane** (27.2/59.1/86.9 on 1d49+3b24+cb98+04af,2026-08-30): it matches-or-beats it while keeping 3× ~405 GB of NVMe copies off theworkers. Head reads weights locally (the NFS server never mounts its own export);workers mount the same path over RDMA (proto=rdma, vers=3, port 20049), so one uniformlauncher runs on all ranks. Measured NFS: single-stream O_DIRECT 507 MB/s, 4-streamaggregate 3.6 GB/s; weight-load phase ≈ 7 min for 3 concurrent NFS ranks + 1 local rank.Sweep-optimized winner config (autoresearch over spec k, max-seqs, NCCL channels,Marlin atomic-add, cudagraph mode, rail count — full table in the companion repo):```--speculative-config '{"method":"mtp","num_speculative_tokens":3,"draft_tensor_parallel_size":1,"attention_backend":"FLASHMLA_SPARSE"}'--tensor-parallel-size 4 --nnodes 4 --master-port 29552 --max-model-len 200000--max-num-seqs 16 --max-num-batched-tokens 8192--gpu-memory-utilization 0.91 --kv-cache-memory-bytes 10950000000 --kv-cache-dtype fp8_ds_mla--compilation-config '{"cudagraph_mode":"FULL"}' --enable-prefix-caching --async-scheduling--reasoning-parser glm45 --tool-call-parser glm47 --enable-auto-tool-choice --trust-remote-code```The three winning knobs vs the local-weights lane: **dual-rail NCCL**(`NCCL_IB_HCA=rocep1s0f0,roceP2p1s0f0`, GID index omitted), **Marlin atomic-add**(`VLLM_MARLIN_USE_ATOMIC_ADD=1`), and **max-num-seqs 16** (was 6/8). Doctrine unchanged:NCCL_MAX/MIN_NCHANNELS=4, HF_HUB_OFFLINE=1, pinned KV (never unpinned), swappiness=10,threshold-flushers only (drop iff MemAvailable<8 GiB). Boot ≈ 17–20 min.### Measured (e2e wall-clock, 256-token prose, temp 0, warm engine)| concurrency | tok/s (2-run mean) | best run ||---|---|---|| C1 | **26.3** | 27.6 || C4 | **56.1** | 56.7 || C8 | **89.2** | 92.9 |Winner = dual-rail + Marlin atomic-add + seqs16 (Σ 171.6). vs the all-local lane:C1 −3%/+1.6% (run-dependent), C4 −5%, C8 +3–7% — NFS parity at C1/C8 with 1.2 TB ofworker NVMe freed. TTFT ≈ 0.6 s at ~780-token prompt · KV pool 200,064 tokens · MTP meanacceptance length 2.3–3.1 of 3.*Variance note: single-shot batteries swing ±10% on C1/C8 at identical config(24.94–27.64 C1). Marlin's C4 edge was the only consistently reproducible gain (3/3 runs≥55.6). Run ≥2 batteries per arm before believing C1/C8 deltas under ~10%.*### Integrity probes (NFS-lane health)- **Corruption probe:** PASS — ~6K-char generations × 3 passes each in ko/en/tr, 0 badtokens across ~54K chars.- **Long-context needle:** PASS — 34,996-token prompt, all 3 keys (begin/middle/end)retrieved verbatim; prefill ≈550 tok/s, 63.7 s e2e.### Benchmarks (gx10:8000, single stream)- **GSM8K 98%** (49/50, canonical set — 1 arithmetic slip)- **HumanEval-chat 92% pass@1** (46/50)### Quality (10 samples/task, temp 0, served via vLLM chat endpoint)| task | local i4mix | hosted GLM-5.2 ||---|---|---|| GSM8K | 90% | 80% || HumanEval | 100% | 100% || MBPP | 80% | 80% || IFEval | 70% | 90% || MMLU-STEM | 100% | 100% || ARC-C | 100% | 100% || HellaSwag | 100% | 100% |Ties-or-better on 6/7 vs the hosted GLM-5.2 reference (a cross-generation point, not thesame model); the IFEval deficit is 2 questions at n=10 — noise-level, not a quant signal.Decode during the battery: 22–29 tok/s single-stream mixed content.## Quantization recipeConfig groups transferred verbatim from `QuantTrio/GLM-5.2-Int4-Int8Mix` — GLM-5.2 andGLM-5.3 are structurally identical (78 layers, hidden 6144, kv_lora_rank 512, 256 routedexperts, first_k_dense_replace 3). Data-free RTN: no calibration, static, symmetric,weight-only.| group | targets | bits | strategy | modules ||---|---|---|---|---|19 unmodified linesW4-g128 nrmse ≈ 0.111 (exactly theoretical for data-free absmax RTN), W8-g128 ≈ 0.0072,W8-channelwise MTP ≈ 0.009. Packing convention proven by discrimination(wrong unpack scores cos ≈ −0.58).- **Integrity:** full 282-entry sha256 manifest (`.sha256` per shard in this repo);distributed to 4 cluster nodes with per-target verification, 282/282 OK each.## ProvenanceQuantized, verified, and benchmarked on a fleet of DGX Spark nodes over a RoCE fabric byan agent-assisted pipeline (Aug 29–30 2026; NFS serving lane validated Sep 9 2026).Companion repo with the verification gate script, launch recipe, autoresearch sweeporchestrator, quality battery, and all raw JSONs:https://github.com/chishiki37/glm-5.3-int4-int8mix-4x-dgx-spark*Note: the one-off streaming quantizer driver was ad-hoc and is not preserved; theverifier encodes the full recipe invariants (group census, sacred-module allowlist,packing convention) needed to reproduce or validate a re-quantization.*
README.md+92-44