Repository navigation
Conversation
…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.
Owner
Author
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.
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.