Skip to content

glm cuda decode: opt-in wide expert down tile for windows over 16 rows - #4565

Merged
ashhart merged 2 commits into
mainfrom
lead/glm-wide-expert-tile
Nov 24, 2026
Merged

ashhart merged 2 commits into
mainfrom
lead/glm-wide-expert-tile

Conversation

@ashhart

@ashhart ashhart commented Nov 22, 2026

Copy link
Copy Markdown
Owner

What this changes

For factored GLM decode windows wider than 16 rows (copy or tree windows), the routed experts' down projection used a narrower tile than the 64-pair gate-up plan, so experts with more than 16 rows re-read their down weights. With TF_GLM_WIDE_EXPERT_TILE=1, windows of 17 rows and more use the existing 64-pair factored down (tf_nvfp4_fact_down_f32), matching gate-up. Each output keeps the same group order and per-fragment accumulator, so bits are unchanged. 16 rows and fewer keep today's path.

Checks

  • Pre-code proof of the K order (the review's tile-size wording was corrected against the code); host tests for dispatch at rows 16, 17, 24, 32; a contract cell compares expert outputs byte for byte with NaN and Inf planted; compile-cuda-tests (host runner only); fmt, ast-check.

Still to run

GB10: the contract cell, then two-GB10 decode A/B with copy-heavy code at one stream, tokens compared (kill under +1%).

@ashhart
ashhart force-pushed the lead/glm-wide-expert-tile branch from adfc7f0 to 8e97bf6 Compare November 24, 2026 00:10
@ashhart
ashhart merged commit 9832561 into main Nov 24, 2026
2 of 12 checks passed
@ashhart
ashhart deleted the lead/glm-wide-expert-tile branch November 24, 2026 00:10
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.

1 participant