Skip to content

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

Python

merge main (CHANGELOG/CREDITS: keep both entries)

plotarmordev4228587770f7
diff --cc CHANGELOG.md
index 4bcc6da,34cd131..6de1630
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -5,16 -5,13 +5,23 @@@ Every change to this recipe, newest fir
## Unreleased
+- **A decode window's latent attention in CUDA at three Sparks** (patch `0108-glm-seg-chunks-cuda`, by
+ [BadAd84](https://github.com/BadAd84)): `seg_chunks.cu` computes every chunk partial of `_seg_chunks` with the Triton kernel's own
+ instruction sequence (patch 0106's chains, in `_seg_chunks`' kWidth-4 dot layout and p-sum tree; key
+ tiles past a chunk's last key, which Triton runs fully masked, are skipped): the same bits under Triton 3.7, and
+ Triton's `_merge` reads them as before. FP8 arenas with 17-24 heads a rank (22 / 21 at TP=3); 32 heads
+ keep Triton. One GB10, the whole call at 4 streams x 8 rows at 596k: 242.5 -> 94.8 us a call (x11 layers a round). Live on three Sparks:
+ real code / prose rounds 46.90 / 37.40 -> 46.35 / 37.00 ms. Built when the engine starts; under another
+ Triton release (`sparse.TRITON_PTX`), or when the build fails, the Triton kernel serves (logged once).
+ `TF_GLM_SEG_CHUNKS_CUDA=0`: Triton. Applies after `0104`, `0105` and `0106`. GPU check:
+ `tools/seg_chunks_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 8b2b0d7,187fb08..fa2311e
--- a/CREDITS.md
+++ b/CREDITS.md
@@@ -198,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.
++- `0108-glm-seg-chunks-cuda` (a decode window's latent attention chunk pass in CUDA): by [BadAd84](https://github.com/BadAd84).