Skip to content

Fuse DSv3 MLA norm, MXFP8 and RoPE with CuTeDSL - #5265

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

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

Conversation

@ydwu4

@ydwu4 ydwu4 commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Fuse Q/KV RMSNorm with dual MXFP8 quantization, up GEMMs with RoPE/K
assembly, and backward rotation/packing with gradient quantization.
Keep native FSDP refill, gradient policy, accumulation and remat owners.

GB300, 4096 tokens / 128 heads, BF16 storage, FP32 weight gradients:
Q forward 168.54 -> 115.96 us;
Q F+loss+B 1475.96 -> 1389.80 us.
KV forward 123.32 -> 88.31 us;
KV F+loss+B 2194.45 -> 2058.26 us.
Local chain timings exclude attention and collectives. Peak allocated
memory is unchanged: Q 2186.47 MiB, KV 2558.85 MiB; reserved memory falls.

Bitwise checks pass, including compiled autograd and FakePG FSDP128.
Keep experimental/default-off: stages reach 27.1-83.2% of the independent
roof at p90, below the 90% gate. Requires CuTeDSL 4.8+ on the pinned runtime.

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

[ghstack-poisoned]
[ghstack-poisoned]
ydwu4 added a commit that referenced this pull request Oct 10, 2026
Fuse Q/KV RMSNorm with dual MXFP8 quantization, up GEMMs with RoPE/K
assembly, and backward rotation/packing with gradient quantization.
Keep native FSDP refill, gradient policy, accumulation and remat owners.

GB300, 4096 tokens / 128 heads, BF16 storage, FP32 weight gradients:
Q forward 168.54 -> 115.96 us;
Q F+loss+B 1475.96 -> 1389.80 us.
KV forward 123.32 -> 88.31 us;
KV F+loss+B 2194.45 -> 2058.26 us.
Local chain timings exclude attention and collectives. Peak allocated
memory is unchanged: Q 2186.47 MiB, KV 2558.85 MiB; reserved memory falls.

Bitwise checks pass, including compiled autograd and FakePG FSDP128.
Keep experimental/default-off: stages reach 27.1-83.2% of the independent
roof at p90, below the 90% gate. Requires CuTeDSL 4.8+ on the pinned runtime.

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


ghstack-source-id: ebe7b67
Pull-Request: #5265
ydwu4 added a commit that referenced this pull request Oct 10, 2026
Fuse Q/KV RMSNorm with dual MXFP8 quantization, up GEMMs with RoPE/K
assembly, and backward rotation/packing with gradient quantization.
Keep native FSDP refill, gradient policy, accumulation and remat owners.

GB300, 4096 tokens / 128 heads, BF16 storage, FP32 weight gradients:
Q forward 168.54 -> 115.96 us;
Q F+loss+B 1475.96 -> 1389.80 us.
KV forward 123.32 -> 88.31 us;
KV F+loss+B 2194.45 -> 2058.26 us.
Local chain timings exclude attention and collectives. Peak allocated
memory is unchanged: Q 2186.47 MiB, KV 2558.85 MiB; reserved memory falls.

Bitwise checks pass, including compiled autograd and FakePG FSDP128.
Keep experimental/default-off: stages reach 27.1-83.2% of the independent
roof at p90, below the 90% gate. Requires CuTeDSL 4.8+ on the pinned runtime.

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


ghstack-source-id: ebe7b67
Pull-Request: #5265

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