GLM-5.3-Flash EXL3 on 2x DGX Spark with TensorFold
Python
merge main (CHANGELOG/CREDITS: keep both entries)
plotarmordevdc64181e2f6e
diff --cc CHANGELOG.mdindex 5894100,34cd131..6c3be17--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -5,17 -5,13 +5,24 @@@ Every change to this recipe, newest fir## Unreleased+- **No stall at a long request's start** (patch `0099-glm-tokenize-nogil`, by [BadAd84](https://github.com/BadAd84)):+ the server tokenized each prompt with the tokenizer's `encode`, which holds Python's GIL for the whole text (~1.2+ us a token), so while a long prompt was being tokenized the engine loop, and every other stream with it, stopped:+ ~270 ms at 226k tokens and 725-768 ms at a ~619k-token agent turn (a second stream's longest gap, three Sparks).+ Every tokenizer call in the server now goes through one helper that uses `encode_batch_fast` on the one text:+ the same ids (`tools/tokenize_check.py`: real code and prose files, filler, every added token, random Unicode,+ edge cases, both `add_special_tokens` values, and no `encode` call left in `server.py`), the GIL released (a+ counting thread keeps 93-99% of its rate, against ~1% under `encode`) and ~30% faster (689k tokens: 799-825 ms+ -> 559-593 ms). Requests with pictures or clips (`GlmVision.prepare`) tokenize the same way: the same ids, picture+ positions and content hash (`tools/vision_tokenize_check.py`), and a counting thread's longest gap at ~784k tokens+ 749 -> 8 ms.+ - **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