Skip to content

Fuse DSv3 HiMidLo router-gate backward experimentally - #5264

Draft
ydwu4 wants to merge 2 commits into
gh/ydwu4/27/basefrom
gh/ydwu4/27/head
Draft

ydwu4 wants to merge 2 commits into
gh/ydwu4/27/basefrom
gh/ydwu4/27/head

Conversation

@ydwu4

@ydwu4 ydwu4 commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Fuse BF16 gradient splitting and weight repetition in one CuTeDSL kernel,
then the three dW GEMMs and FP32 sums in another. Use native forward/dX
GEMMs with FP32 weight gradients and native FSDP ownership. Backward
uses three GPU kernels.

GB300, BF16 x=[4096,7168], weight=[256,7168], native -> candidate:
Backward 101.05 -> 59.12 us; F+loss+B 131.97 -> 93.79 us (28.9% saved).
Native local_compile F+loss+B: 117.20 us. Peak allocated memory versus
native: 179.5 -> 176.0 MiB; peak reserved stays 198.0 MiB.

61 CPU/GPU tests pass, including bitwise, compile and FakePG/FSDP128.
Keep default-off: 88.2% of the calibrated roof at p90 is below 90%.
Extended tensor-operation checking remains unresolved; the same failure
reproduces in NVIDIA's reference kernel.

One self-contained override file, one CPU test file and one GPU test file.

[ghstack-poisoned]
[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