Skip to content

train 1121042448: #3616 #3689 (CI only) - #4301

Closed
ashhart wants to merge 8 commits into
mainfrom
lead/train-1121042448
Closed

ashhart wants to merge 8 commits into
mainfrom
lead/train-1121042448

Conversation

@ashhart

@ashhart ashhart commented Nov 21, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #3616 #3689 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.

ultradaoto and others added 8 commits November 21, 2026 04:24
…e ranks or more

At three ranks or more the drafter's MLP split was switched on by TF_ROCE=1 alone. TF_GLM_DRAFT_SPLIT=1 asks for
it by itself, for 256-aligned shares, and has its own field in the rank fingerprint so every rank agrees on the
weight layout. Unset keeps today's default, and TF_ROCE=1 still splits as before.

For #3581.
… stream; replies and tokens a round, not drafts)
…x_scores (TF_GLM_DSCORES)

MiaAI-Lab's patch 0091 (attn5-0070-glm-decode-index-scores-on-glm-index-scores,
in MiaAI-Lab/GLM-5.3-Flash-DGX-Sparks-1104 0049d7c, Apache-2.0), moved onto the
decode select (TF_GLM_DSEL). A decode window under rows_from rows, of 8 rows or
more (or 4 from 2,048 64-pool blocks) on an aligned key cache, takes
tf_glm_index_scores (8 rows a CTA, each key tile staged once for the window's
rows, decodeLoop tiles a CTA) instead of tf_glm_scores (a CTA a row and block);
the kernel writes tf_glm_scores' bytes. Prompt chunks keep TF_GLM_INDEX_CUDA's
rule and one-row windows keep tf_glm_scores. glm_index's scores load unless
TF_GLM_DSCORES=0, a glm row of platform/environment.zig (a flag, default on)
with its docs/environment.md row, read as TF_GLM_DSEL is; the comments are one
line each. glm-index-check's decode section runs selectTokens with the decode
scores in the new set.
…iles, and glm-index-check counts the windows that take them

contract_glm_index.zig's index scores also run at a decode window's tiling
(glm.index.decodeLoop tiles a CTA, cuda_sparse's grid) as a replacement of
tf_glm_scores, at three served decode shapes (8 x 4,096, 16 x 51,200 and
4 x 131,072 pools: 1, 2 and 5 tiles a CTA) with up to 8,192 visible pools. Its
planted control, the same launch told one 64-pool tile fewer, goes red at the
shapes gate. Both sit in Fast beside the prompt indexer's kernels; the launch is
glm_index tf_glm_index_scores, already in the records. glm-index-check counts
the windows whose decode scores take glm_index_scores and fails when none does,
so its byte checks cannot pass by skipping them. The docs' GLM paragraph names
the decode scores.
decodeLoop chose a window's 64-pool tiles a CTA from its blocks alone (about 376 CTAs a row group). On GB10 the
fastest tiles also follow the rows: a tile a CTA up to 4 rows, 2 up to 8, then rows / 4 a 1,024 blocks (rounded
up), at most score_tiles and never under 32 CTAs a row group. The rule is fit to a sweep of glm_index_scores by
rows and blocks; it changes speed only. The contract's served decode shapes keep 2, 4 and 1 tiles a CTA.
On GB10 glm_index_scores at a decode window's tiles is slower than tf_glm_scores for 8 and 16 rows up to 8K tokens
(0.02 to 0.045 ms a pass of 11 layers, in a one-GPU bench of the two kernels), level at 16K (64 blocks) and faster
from 64K (0.10 ms a pass at 8 rows, 0.31 ms at 16). A window of 8 or more rows takes it from 64 64-pool blocks
(16K tokens); 4 to 7 rows keep 2,048 blocks. Speed only: both kernels write the same scores. The contract's served
decode shapes still take it (8 rows over 4,096 pools is 64 blocks), and glm-index-check counts its windows by
selectTokens' blocks (the visible pools) instead of the bucket's.
@ashhart

ashhart commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

Landed: #3616 #3689 as main 6c3bd29. This PR only carried their CI.

@ashhart ashhart closed this Nov 21, 2026
@ashhart
ashhart deleted the lead/train-1121042448 branch November 21, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants