GLM-5.3-Flash EXL3 on 2x DGX Spark with TensorFold
Python
v1.10: 96 patches, CHANGELOG entry, pin the published image v0.6.0-a1897d591f70
MiaAI-Lab684ce9bbe147
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex c54c81b..54a3f69 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -3,7 +3,15 @@Every change to this recipe, newest first. Each release names the image it serves: `scripts/prepare.sh` pulls`ghcr.io/miaai-lab/glm-5.3-flash-exl3-2x-dgx-sparks-tensorfold` by the digest pinned in `scripts/config.sh`.-## Unreleased+## v1.10 (2026-10-08): the effort line at the tail (opt-in), a kept-state share, and a checked second rail++Image: `v0.6.0-a1897d591f70` (`sha256:bc34d7d63f978cf601f42863b284bc95a567c50c10e9adb0866a635be568bf5f`), 96 patches (v1.9.1's plus `0096`, `0097`). Tested live on two+Sparks: with defaults, the rail probe keeps both rails (`roceP2p1s0f1 <-> roceP2p1s0f1 ... used`, the Link line names+2 rails), the smoke test and `tools/toolcheck.py` pass. Switching effort or thinking mid-conversation on a ~19.7k-token+history, `cached_tokens`: flag off high->low, high->off, off->high 0%, same mode 100%; `TF_GLM_EFFORT_TAIL=1` 99-100% for+every switch, `toolcheck` passes, and effort still sets the reasoning length (4 questions, low / high / max: 388 / 769 /+1,720 completion tokens, all answers correct). `TF_GLM_CACHE_SHARE_PCT=25` starts with the estimate unchanged (88.09 GiB)+and logs its count (32: each state reserves ~91 MiB of a ~7.5 GiB budget here).- **A second rail is tested before it is used (#66).** At two Sparks the launcher added the cabled port's PCIe twin by name(v1.6) without checking that it reaches the peer; a twin that is up with a GID but unaddressed, on another subnet or at anotherdiff --git a/README.md b/README.mdindex b2bcc02..2bace9c 100644--- a/README.md+++ b/README.md@@ -14,7 +14,7 @@Serve **GLM-5.3-Flash** from two NVIDIA DGX Sparks (GB10, 128 GB each, linked by their ConnectX-7 ports) through anOpenAI-compatible API, with **4 concurrent requests**, the model's full **1,048,576-token context** and **image andvideo input**. It runs [TensorFold](https://github.com/ashhart/TensorFold) v0.6.0 on both Sparks (one rank on each)-in NVIDIA's PyTorch container, plus 94 patches (65 of v1.4, 3 for 3 Sparks, experimental, 1 for up to 8 requests at once, 1 for stopping serial requests, 5 of v1.6: a shared system prompt keeps each conversation's history, the display reservation in the pool and the pool compacting before it evicts, by [ezoushen](https://github.com/ezoushen); queued requests whose client left dropped at once, by [desy0305](https://github.com/desy0305); `<|assistant|>` ending a reply; 1 of v1.7.1: a new agent run keeps its system prompt's state once the kept-state cap is full, diagnosed and the fix proposed by [meleesciony](https://github.com/meleesciony) in [issue #75](https://github.com/MiaAI-Lab/GLM-5.3-Flash-EXL3-2x-DGX-Sparks-TensorFold/issues/75); 1 fix since v1.7.1: a fresh conversation after a long one no longer runs out of memory; 5 of v1.8: pictures read once and quoted media markers, by [ThomasWadeZ](https://github.com/ThomasWadeZ), capacity refusals, by [johnwhited](https://github.com/johnwhited); and 12 of v1.9: the Anthropic Messages API, backported by [Eduardo Florencio](https://github.com/eduffd) from upstream work by [evilpsycho42](https://github.com/evilpsycho42), [ashhart](https://github.com/ashhart) and [Jordi Posthumus](https://github.com/JordiPosthumus); long-context decode and prefill and the display reservation on kindling spark-os, by [BadAd84](https://github.com/BadAd84); a spill tier for kept prompt states, by [Robert Wojciechowski](https://github.com/wojo); kept-state limits, by [Thomas Wade](https://github.com/ThomasWadeZ); the expert decode launch order, by [Lukasz Raczylo](https://github.com/lukaszraczylo); a loop guard, chunked bodies, Responses `include`, streamed admission and checked draft candidates): DFlash2 and copy drafts, 4-bit dense weights, an FP8 KV cache,+in NVIDIA's PyTorch container, plus 96 patches (65 of v1.4, 3 for 3 Sparks, experimental, 1 for up to 8 requests at once, 1 for stopping serial requests, 5 of v1.6: a shared system prompt keeps each conversation's history, the display reservation in the pool and the pool compacting before it evicts, by [ezoushen](https://github.com/ezoushen); queued requests whose client left dropped at once, by [desy0305](https://github.com/desy0305); `<|assistant|>` ending a reply; 1 of v1.7.1: a new agent run keeps its system prompt's state once the kept-state cap is full, diagnosed and the fix proposed by [meleesciony](https://github.com/meleesciony) in [issue #75](https://github.com/MiaAI-Lab/GLM-5.3-Flash-EXL3-2x-DGX-Sparks-TensorFold/issues/75); 1 fix since v1.7.1: a fresh conversation after a long one no longer runs out of memory; 5 of v1.8: pictures read once and quoted media markers, by [ThomasWadeZ](https://github.com/ThomasWadeZ), capacity refusals, by [johnwhited](https://github.com/johnwhited); and 12 of v1.9: the Anthropic Messages API, backported by [Eduardo Florencio](https://github.com/eduffd) from upstream work by [evilpsycho42](https://github.com/evilpsycho42), [ashhart](https://github.com/ashhart) and [Jordi Posthumus](https://github.com/JordiPosthumus); long-context decode and prefill and the display reservation on kindling spark-os, by [BadAd84](https://github.com/BadAd84); a spill tier for kept prompt states, by [Robert Wojciechowski](https://github.com/wojo); kept-state limits, by [Thomas Wade](https://github.com/ThomasWadeZ); the expert decode launch order, by [Lukasz Raczylo](https://github.com/lukaszraczylo); a loop guard, chunked bodies, Responses `include`, streamed admission and checked draft candidates; and 2 of v1.10: the reasoning-effort line at the prompt's tail, opt-in, reported by [jdecker76](https://github.com/jdecker76) in [issue #93](https://github.com/MiaAI-Lab/GLM-5.3-Flash-EXL3-2x-DGX-Sparks-TensorFold/issues/93); and the kept-state count as a share of the pool, diagnosed by [jdecker76](https://github.com/jdecker76) in [issue #84](https://github.com/MiaAI-Lab/GLM-5.3-Flash-EXL3-2x-DGX-Sparks-TensorFold/issues/84)): DFlash2 and copy drafts, 4-bit dense weights, an FP8 KV cache,faster prompt kernels, a one-shot RoCE all-gather between the Sparks, several requests over one shared cache pool,vision, tool calling, `/tokenize` and `/metrics`.diff --git a/scripts/config.sh b/scripts/config.shindex 7a8c6eb..68e6fd4 100644--- a/scripts/config.sh+++ b/scripts/config.sh@@ -79,8 +79,8 @@ GHCR_IMAGE="${GHCR_IMAGE:-ghcr.io/miaai-lab/glm-5.3-flash-exl3-2x-dgx-sparks-ten# cannot) while patches/*.patch and IMAGE_EXTRAS still hash to IMAGE_TAG's hash. Other patches pull# $GHCR_IMAGE:<TF_VERSION>-<hash> when one is published, else build locally. scripts/publish-image.sh prints both.# The same image serves two and three Sparks.-IMAGE_TAG="${IMAGE_TAG:-v0.6.0-ff5dffc865d3}"-IMAGE_DIGEST="${IMAGE_DIGEST:-sha256:20275b2be818635a9c711d80a177477488d2c75cad373cc644422295c4fe9f07}"+IMAGE_TAG="${IMAGE_TAG:-v0.6.0-a1897d591f70}"+IMAGE_DIGEST="${IMAGE_DIGEST:-sha256:bc34d7d63f978cf601f42863b284bc95a567c50c10e9adb0866a635be568bf5f}"# the registry reference prepare.sh pulls for these patches: the pinned digest, or the hash's tagprebuilt_image() {local tag="${TF_VERSION}-$(image_hash)"