Skip to content

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

Python

merge main (CHANGELOG/CREDITS: keep both entries)

plotarmordev34ce2bc9eee7
diff --cc CHANGELOG.md
index dc848f7,34cd131..b488125
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -5,17 -5,13 +5,24 @@@ Every change to this recipe, newest fir
## Unreleased
+- **A decode window's indexer, twice as fast with four agents** (patch `0107-glm-decode-indexer`, by [BadAd84](https://github.com/BadAd84)):
+ the same tokens and counts in less time. (1) The Triton scoring's grid is 512 programs a segment (was
+ 256). (2) Segments of 4 or more rows are scored by `seg_scores.cu`, which stores `_seg_scores`' scores
+ with patch 0105's instruction sequence (the same bits under Triton 3.7) while a CTA converts each FP8 key tile once for up to 8 of the
+ segment's rows; fewer rows stay on Triton (memory-bound there). (3) Windows of 8 or more rows select
+ each row's pools by `_seg_select_floor`, one pass over its scores (patch 0101's method), instead of
+ `select_split`'s five. The indexer call on one GB10, 4 streams x 8 rows at 596k: 1,296 -> 647 us
+ (x11 layers a round); 1 x 16 rows 635 -> 344 us. Live on three Sparks with four agents at ~596k, every
+ stream's round -2 to -4%. Under another Triton release (`sparse.TRITON_PTX`), or when the build fails, the
+ Triton scoring serves (logged once). `TF_GLM_SEG_SCORES_CUDA=0` / `TF_GLM_SEG_SELECT_FLOOR=0`: the old scoring /
+ selection. Applies after `0101`, `0105` and `0106`. GPU check: `tools/decode_indexer_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 e7ddefe,187fb08..cc98f10
--- 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.
++- `0107-glm-decode-indexer` (a decode window's indexer: the scoring in CUDA, the selection in one pass): by