Skip to content

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

Python

merge main (CHANGELOG/CREDITS: keep both entries)

plotarmordev6ac6ae1c5286
diff --cc CHANGELOG.md
index f71aa08,34cd131..bcbed83
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -5,17 -5,13 +5,24 @@@ Every change to this recipe, newest fir
## Unreleased
+- **The next draft pass starts at a round's end** (patch `0100-glm-draft-prelaunch`, by
+ [BadAd84](https://github.com/BadAd84)): a decode round asked for its DFlash2 drafts only after rank 0 had emitted
+ the last round's tokens, planned the next round and sent its message, so the GPU sat idle meanwhile (an nsys
+ trace on three Sparks: 0.47 ms a round between the taps update and the message gather, 0.74 ms at 4 streams). Now
+ every rank launches the next round's block pass at the end of the round, from state every rank holds (never
+ rank 0's own stop decisions), and the next round waits for it when its streams, pending tokens and contexts
+ match (a context's every change bumps its generation), else runs its own pass. The same inputs give the same
+ candidates: every digest equal, drafted and serial alike. Three Sparks, `PARALLEL=4`: one stream's prose
+ 66.8-67.0 -> 67.9-68.2 tok/s (38.0 -> 37.3 ms a round), code 88.8-91.1 -> 89.2-92.3 (overlapping), four at 596k
+ 133.7-133.9 -> 134.7-134.9; `0092`'s check and retry is kept. `TF_GLM_DRAFT_PRELAUNCH=0` turns it off. GPU check:
+ `tools/draft_prelaunch_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