Repository navigation
glm cuda: a split warm-up that NCCL fails refuses split by name before the rank stops - #2868
Conversation
|
Thanks @Bizuayeu, this closes the gap your ring report found neatly. The change touches only the failure path:
|
…e the rank stops Split's start-up warm-up sends and receives 4 MiB with every other rank, and runs before Engine.init's split probe, whose refusal names the fix. On a fabric where some ranks reach only their neighbours (a ring of four without a switch) the warm-up's group ends with an NCCL error first, and check stops every rank at once, so the probe's refusal never prints. From four ranks, where a ring has ranks that are not neighbours, the warm-up now prints that refusal, naming gather, when its group end fails under split, and hands check a name that starts with it, so a rank that stops on another rank's failure names the refusal as the cause too. Fewer ranks, ring and gather warm-ups, and a warm-up that finishes, print nothing new.
aa37fe0 to
722f846
Compare
|
Thank you @Bizuayeu. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
|
Thanks @Bizuayeu! This is in TensorFold 1.2.8, out now: https://github.com/ashhart/TensorFold/releases/tag/v1.2.8
|
What this changes
With the default
TF_GLM_PREFILL_REDUCE=split, GLM's start-up warm-up sends and receives 4 MiB with every other rank (cuda_warm_peers.zig,post), andEngine.initprobes split's pairs only after it (ranks.probeStart, #899). On a fabric where some ranks reach only their neighbours, such as the switchless ring of four in the GLM CUDA recipe, the warm-up's group end fails first, andcheckstops every rank at once throughtp_watch.fatal, so the probe's refusal by name is never reached. That was the "not reached" line of my #1971 report (#1971 (comment)): each rank stopped onncclGroupEnd: unhandled system error, on another rank's stop or on a closed line, and no rank named the setting.Now, from four ranks, a rank whose split warm-up fails at its group end prints split's refusal before
checkstops it, namingTF_GLM_PREFILL_REDUCE=gatheras the recipe does, and handscheckthe nameREFUSE TF_GLM_PREFILL_REDUCE=split at ncclGroupEnd(50 bytes;tp_watchcarries up to 56 to the other ranks). Rank 0 names the refusal whichever rank fails first: the full line when its own group end fails, andrank N stopped (REFUSE TF_GLM_PREFILL_REDUCE=split at ncclGroupEnd)when another rank's fails before it.Four GB10s at TP=4 on that ring, main against this branch on the same rank settings (the recipe's NCCL lines for the ring), one start each:
rank 0: rank 2 stopped (ncclGroupEnd); this rank stops toorank 0: rank 1 stopped (REFUSE TF_GLM_PREFILL_REDUCE=split at ncclGroupEnd); this rank stops tooncclGroupEnd: unhandled system error (run with NCCL_DEBUG=INFO for details) (2); rank 1:another rank's process ended (its line closed)REFUSE TF_GLM_PREFILL_REDUCE=split at ncclGroupEnd: unhandled system error (run with NCCL_DEBUG=INFO for details) (2); ranks 2 and 3:another rank's process ended (its line closed)The full line, as rank 1 printed it:
Which ranks print the full line depends on whose group end returns before another rank's stop reaches it; it differed between runs (ranks 1, 2 and 3 on an earlier head of this branch, then ranks 1 and 3, then rank 1 alone on this change before and after a one-line comment fix). That earlier head printed the full line but handed
checkthe plainncclGroupEnd, and there rank 0 only saidrank 1 stopped (ncclGroupEnd); carrying the refusal in the name is what reaches rank 0.What else:
Below four ranks nothing changes. With two or three ranks every rank is a neighbour, so a failed split warm-up there is not the fabric this line describes, and naming gather would point the wrong way.
Ring and gather warm-ups, and every warm-up that finishes, print nothing new and hand
checkthe name they did.probeSplit(cuda_ranks.zig:416) is unchanged; on such a fabric the warm-up fails before it. Its line namesring or gather, while the recipe's "More ranks" section says ring and split don't start on that ring yet (roce_multi on a switchless ring of four: start-up warm-up and the relay #1971), so the new line names gather only.On a switched fabric of four ranks or more, the line can also follow a link fault in split's warm-up. Like the probe's line, it says what split needs and what a neighbours-only fabric needs.
Issue: n/a. roce_multi on a switchless ring of four: start-up warm-up and the relay #1971 is closed; this is the refusal its report found unreached (link above).
Stacked on: main.
atc overlap --json: at 2026-11-11T07:46Z against main3adaf7868, the 34 open pull requests it lists share onlyCHANGELOG.mdwith this one (it marks 5 of them as conflicting there, 5 as clean and 24 as unknown); at 07:08Z, before theCHANGELOG.mdcommit, it listed none. atc's coverage was incomplete (otherPullRequestsLimit,pullFilesUnavailable,timeLimit), so I also read the file lists of the 238 open pull requests (every file of the 27 with 100 or more), and again those of the 26 updated since: none touchescuda_warm_peers.zigorcuda_warm_peers_test.zig.Checks on this head
aa37fe04e, theCHANGELOG.mdline with this pull request's number, onc20675dac, the change and the receipt's binary, on main388efd945. The second commit changes no code. Main has since moved to6b739dd5ewithout touching either Zig file, and this head merges into it cleanly.python3 tools/zig/lean_check.py, on the base and on this head: 386 on main and 386 on this head, 0 new.python -I tools/pr_check.py --base origin/main --pr 2868on this head: 0 errors and 0 warnings (merge base388efd945, 3 changed files, lean 386 against 386).b78cf0056, which differs fromc20675daconly by one comment line I shortened for the lean checker:zig build test: 656/659 steps; 8,716 passed, 69 skipped, 3 failed and 1 crashed, all four in onetest-cuda-hosttest binary and all four timing tests: cortheon fuzz's linear-time check, twohealth_testHTTP exchanges that timed out after 5 s (one aborted on its 5 s quiesce) andbenchmark_cli_test's Ctrl-C test, under the full suite's load on six cores. They pass when the step runs alone (below).zig build test-golden(5/5 steps; 55/55 and 322/335 equal to the server goldens, 0 unexpected differences),test-release-version-host(2/2),check-native-cuda-host(7/7 steps) andcompile-cuda-tests(10/10 steps, native and-Dtarget=aarch64-linux-gnu): pass.zig fmt --check build.zig zig: clean.refused_rankinstead of printing). Planted: without therefuseSplitcall it fails and only it (10 passed, 1 failed); refusing from two ranks, it fails and only it (10 passed, 1 failed); on main it does not compile (refused_rank). The name handed tocheckcannot be reached by a host test, since in a test buildcheckreturns before it uses the name; the ring's rank 0 lines above are its proof.c20675dac: the lean count above,zig fmt --checkandzig ast-checkon both changed files (clean),test-glm-warm-peers-host(11/11),zig build test-cuda-host -j2alone (373/373 steps; 2,044 passed, 6 skipped, 0 failed, the binary with the four above running all 1,282 of its tests again: 1,277 passed, 5 skipped), andgit diff --check(clean).CHANGELOG.mdline toc20675dac, green: zig, zig-windows, zig-macos-dev-tools, pytest, release-paths, benchmark-clients on Ubuntu and Windows, and Zig format; host-nightly's two jobs skipped. Its first runs were canceled by the repository owner a minute in (07:57Z); closing and reopening this pull request at 10:12Z ran them again.c20675dac's runs were green on the same jobs.compile-cuda-testsbuilds the runner, above). A switched fabric and TP=2 or TP=3 on devices: under Paths below.Receipt
post) with split at four ranks or more, and only when its group end fails. Nothing a prompt pass or a decode round reads changes.388efd945and this branch'sc20675dac, Zig 0.17.0, nvcc 13.3.73 (zig build native -Dsm=121), NCCL 2.30.7, four GB10s (sm_121) at TP=4 on a switchless ring, each box's two QSFP ports cabled to its neighbours, with the recipe's NCCL settings for that ring (NCCL_CUMEM_ENABLE=1,NCCL_RUNTIME_CONNECT=1,NCCL_ALGO=Ringand a graph per rank). CheckpointBizuayeu/GLM-5.3-Flash-XSFP4at88736f916f8939607fde8a4b881dcae749f7551d.tools/bench_concurrent.py --alone --serialortoken_shaagainst"draft": false: n/a, the change reads one result at start-up and sets up nothing a pass reads.tools/bench_openai.py: n/a, start-up only.Checklist
"draft": false, a resumed prompt equals a fresh one, and concurrent equals solo (nothing a pass reads changes).--drafter, no slower than without it, greedy and sampled (start-up only).