GLM-5.3-Flash EXL3 on 2x DGX Spark with TensorFold
Python
merge main (CHANGELOG/CREDITS: keep both entries)
plotarmordev3412bbfda856
diff --cc CHANGELOG.mdindex c81802b,34cd131..60bf003--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -5,17 -5,13 +5,24 @@@ Every change to this recipe, newest fir## Unreleased+- **A prompt chunk's sparse attention in CUDA at three Sparks** (patch `0106-glm-sparse-onepass-cuda`, by+ [BadAd84](https://github.com/BadAd84)): `sparse_onepass.cu` computes every output of `_sparse_onepass` with the Triton kernel's own+ instruction sequence, read from its PTX (the mma chains and their K order, the online softmax's roundings+ and `ex2.approx`, the p-sum's reduction tree, `div.full`): the same bits under Triton 3.7. Producer warps gather and convert+ the FP8 rows two tiles ahead, q stays in registers, the softmax stays inside a warp, and 384 mma a tile+ instead of 768. FP8 caches with 17-24 heads a rank (22 / 21 at TP=3); 32 heads (TP=2) keep Triton. A+ 2,048-row chunk at 113k on one GB10: 7.98 -> 3.51 ms with recent selections, 8.72 -> 7.30 ms with+ spread ones. Live on three Sparks, cold prefill at 226k 103.58 -> 98.65 s (the first version), then+ 99.61 -> 98.53 s (the balanced warps). 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_ONEPASS_CUDA=0`: Triton. Applies after `0105`. GPU check: `tools/sparse_onepass_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 raildiff --cc CREDITS.mdindex 10fb7b4,187fb08..914ca26--- a/CREDITS.md+++ b/CREDITS.md@@@ -199,3 -199,3 +199,5 @@@ checkpoint's ShapleyMcg attribution an128 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.++- `0106-glm-sparse-onepass-cuda` (a prompt chunk's sparse attention in CUDA, Triton's instruction order):++ by [BadAd84](https://github.com/BadAd84).