Skip to content

GLM-5.3-Flash EXL3 on 2x DGX Spark with TensorFold

Python

merge main (CHANGELOG/CREDITS: keep both entries)

plotarmordev1f892a0a06a1
diff --cc CHANGELOG.md
index 3df9970,34cd131..6a74be0
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -5,16 -5,13 +5,23 @@@ Every change to this recipe, newest fir
## Unreleased
+- **Decode matmuls without clusters where they cost more than they save** (patch
+ `0103-glm-qmm-decode-noclusters`, by [BadAd84](https://github.com/BadAd84)): the decode 4-bit matmuls reduce their K slices through
+ the partials buffer and `reduce_kernel` instead of a thread-block cluster when the window has at most 64
+ rows and the weight holds fewer than 28 Mi values: the same slice-ordered fp32 sums, so the same bits. On
+ a GB10 the cluster's launch and syncs cost 20-60% on those latency-bound matrices (a shared expert's
+ gate/up at one row 29.3 -> 18.4 us), at the shapes of two, three and four Sparks; from 32 Mi the clusters
+ mostly win, and no shape sits between. Live on three Sparks: real code 89.5 / 88.6 -> 90.6 / 90.0 tok/s,
+ prose 64.7 / 64.5 -> 66.4 / 66.6. `TF_GLM_QMM_CLUSTERS=1`: the clusters as before. The extension is renamed
+ `tensorfold_qmm_v5`, so a kernel folder with v4's build does not serve it. GPU check:
+ `tools/qmm_noclusters_check.py`.
+ - **kindling spark-os: the server starts** (patch `0098-glm-mmap-uploads`, by [BadAd84](https://github.com/BadAd84)):
+ on kindling's 64 KiB-page kernel a pageable copy to the GPU straight from a safetensors mmap hangs in the driver
+ (`cuMemcpyHtoDAsync`) once the process holds GPU memory, and the DFlash2 drafter and the GLM vision tower load
+ after the main weights. v1.10 on three Sparks with kindling spark-os 0.9.5 stopped after the drafter timings (no
+ vision line for 15 minutes, every rank spinning); with the patch it serves in 145 s. Both loaders now copy each
+ tensor out of the mmap first (`.clone()`): the same bytes, one host copy a tensor at start; the main weights use
+ direct reads and never had the problem. CPU check: `tools/mmap_upload_check.py` (fails on the unpatched loaders).
## v1.10 (2026-10-08): the effort line at the tail (opt-in), a kept-state share, and a checked second rail
diff --cc CREDITS.md
index 2535cc1,187fb08..448efbc
--- a/CREDITS.md
+++ b/CREDITS.md
@@@ -199,3 -199,3 +199,4 @@@ checkpoint's ShapleyMcg attribution an
128 GB unified memory), two of them linked by their ConnectX-7 ports: every number in the README was measured there.
If you believe something here is missing or credited wrongly, please open an issue.
++- `0103-glm-qmm-decode-noclusters` (decode matmuls reduce through the partials buffer at few rows): by