Repository navigation
GLM CUDA: name each startup phase and warn while NCCL init or the peer warm-up waits - #2354
Merged
Merged
Conversation
Owner
Author
|
GLM-5.3-Flash NVFP4 at TP=2 on two GB10s, main's merge base against this head, runs ordered base, new, new, base:
|
Owner
Author
|
The rerun on the same two GB10s, same heads, runs ordered base, new, new, base:
Tokens: 52 equal, 0 unequal, and the six-turn chat qualified on both binaries with the same The 2K cell isn't a result either way. Its first rows vary from 718 to 1,613 tok/s within one binary's runs, in both runs of this PR. It read -6.3% the first time and +5.3% now. Everything that holds still is level, and nothing in this PR runs after |
ashhart
force-pushed
the
lead/glm-startup-phases
branch
from
November 7, 2026 03:26
1a70fd4 to
cd1e41f
Compare
Observe unfinished NCCL init and peer warm-up once per minute without a phase-held lock or driver call. Report only captured transport classes, and suggest NCCL_P2P_DISABLE=1 only for an observed P2P path with two ranks. Followers say ready to follow rank 0 rather than claiming calibration has finished. Keep phase wiring and host construction in a helper so the native adapter has room for further changes. End the observer on ready, failed host startup and normal cleanup. Host checks cover blocked observation, cadence, transport-specific advice and production readiness callbacks, with runtime controls for omitted observation, unconditional advice and missing failure cleanup. No transfer, kernel or lane behavior changes. Refs #1994.
Print peer facts before warm-up while retaining capture through warm-up and leaving the optional transfer probe at its existing point. Name the capture file in startup and minute warnings, report liveness connection successes, and correlate NCCL id handoffs with the first eight SHA-256 hex digits. Wrap the same blocking communicator init with best-effort version, visible device and bus details plus elapsed completion. Keep wire operations, existing waits and warm-up postings unchanged. Host fakes cover ordered lines, capture lifetime, delayed connections, optional-probe order and failed diagnostic queries. Refs #1994.
… zig/build/cuda.zig stays at 600 lines
ashhart
force-pushed
the
lead/glm-startup-phases
branch
from
November 7, 2026 04:36
cd1e41f to
ce36087
Compare
This was referenced Nov 8, 2026
ashhart
added a commit
that referenced
this pull request
Nov 8, 2026
…nged since 18b3b69 The test stops at its first mismatch, so only contract_controls.cu. failed first Hashing every row with the test's own rules finds 16. For each, the last commit whose bytes match the pin was found in topological order (rebased commits keep older author dates). Every change since is a merged commit whose diff matches its message. The kernel ones carry their contract or SASS evidence: - contract_controls.cu: cf637be, 390ef29, 94a9a48 (controls for the LFM2 glue, the Liquid conv and the head-64 paged attention), then 6b81d9b (declares P256, IDS and PN off, which the prompt-row fragment reads since 47bd0d5 and 00dddc5). - nemotron_attention.cu, prefill_attention.cu and prefill_attention_rows.cuh: 82f3dde and 94a9a48 (head-64 paged attention, moved helpers; sassid: existing functions unchanged). - qmmf.cu, qmmf.zig: ec76abd and c3acc34 (BF16 prompt tile and K32 staging, bytes unchanged under the contract), fbf8d96 (that tile for Flash Next only), 6a1feb2 (TF_QMMF_HALF_BELOW). - aot.zig 3a7e6fa; carveout.zig 6a1feb2; kernels.zig cf637be: one export or reader each. - root.zig ffe9b36, 13d7450 and tp_watch.zig 13d7450, 7ead07c (#2354; #2512). - Flash Next cuda_batch, cuda_batch_state, cuda_lanes, cuda_mtp_ops, cuda_snap: 4f6017c (marks kept inside the pass), 4b2679b (grouped draft head's page table), fbca907 (#2391), ec76abd (reserveRows). Seven of these (root.zig, the Flash Next files and part of tp_watch.zig) changed before 18b3b69 and were already stale there. Each changed row gets a note column naming its commits, or that note appended to the existing one. Modes and paths are unchanged. pocket-serving-approved.tsv is unchanged. test-gradient-serving: 1 of 1.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #2347. A multi-rank GLM CUDA start that stops in NCCL init or the peer warm-up now says where, instead of printing nothing until it's killed.
What each rank prints
readyorready to follow rank 0. A start that fails saysstopped before ready.NCCL_P2P_DISABLE=1as one thing to try. It never applies it.What doesn't change
native/cuda.zigintonative/cuda_startup_phase.zig, which leavesnative/cuda.zigat 583 lines.A timeout that stops every rank after a stuck warm-up would be a separate change. It isn't in this PR.
Checks (host, no GPU)
Not checked yet: a real two-rank start and its served tokens. A GLM TP=2 pair runs before it lands, with tokens equal to main's.
zig/build/cuda.zigends at 599 lines here. The integrated-upload PR also adds one line there, so whichever lands second ends at 600.