Skip to content

Add DSv3 TF32 router-gate backward override - #5395

Draft
ydwu4 wants to merge 1 commit into
gh/ydwu4/29/basefrom
gh/ydwu4/29/head
Draft

ydwu4 wants to merge 1 commit into
gh/ydwu4/29/basefrom
gh/ydwu4/29/head

Conversation

@ydwu4

@ydwu4 ydwu4 commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Fuse BF16 input conversion, TF32 GEMMs and BF16 output casts into one
CuTeDSL kernel per gradient. Preserve the pinned fbpackage gate policy,
forward and FSDP ownership. Use names distinct from the HiMidLo override.

GB300 [4096,7168] -> 256, native -> fused:
backward 179.37 -> 144.09 us; F+loss+B 216.46 -> 172.53 us;
peak allocated 310.50 -> 163.00 MiB. Bitwise and FSDP128 checks pass.
Keep default-off: 23.3% of the calibrated roofline, below the 90% gate.

One self-contained override, one CPU test file and one GPU test file.
The pinned runtime passes 39 tests; public main imports safely and
reports the missing native TF32 policy rather than substituting HiMidLo.

[ghstack-poisoned]

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant