Repository navigation
[graph_trainer][perf] Fuse WGrad accumulation across add chains - #5119
Merged
Merged
Conversation
IvanKobzarev
changed the base branch from
main
to
ivan/mtp-single-stage-schedules-20261006
October 7, 2026 14:04
IvanKobzarev
force-pushed
the
ivan/graph-trainer-pp-wgrad-fusion-20261007
branch
from
October 7, 2026 14:21
ca82840 to
9a1eb64
Compare
IvanKobzarev
force-pushed
the
ivan/graph-trainer-pp-wgrad-fusion-20261007
branch
from
October 7, 2026 14:26
9a1eb64 to
06d81b5
Compare
IvanKobzarev
force-pushed
the
ivan/graph-trainer-pp-wgrad-fusion-20261007
branch
from
October 7, 2026 14:45
06d81b5 to
f56103d
Compare
IvanKobzarev
force-pushed
the
ivan/graph-trainer-pp-wgrad-fusion-20261007
branch
from
October 7, 2026 14:53
f56103d to
f6ab2fa
Compare
IvanKobzarev
force-pushed
the
ivan/graph-trainer-pp-wgrad-fusion-20261007
branch
from
October 7, 2026 15:18
f6ab2fa to
66e5a4f
Compare
IvanKobzarev
force-pushed
the
ivan/graph-trainer-pp-wgrad-fusion-20261007
branch
from
October 7, 2026 15:23
66e5a4f to
7f05d75
Compare
IvanKobzarev
force-pushed
the
ivan/graph-trainer-pp-wgrad-fusion-20261007
branch
from
October 7, 2026 15:29
7f05d75 to
5320189
Compare
IvanKobzarev
force-pushed
the
ivan/graph-trainer-pp-wgrad-fusion-20261007
branch
from
October 7, 2026 15:30
5320189 to
56bc2cb
Compare
IvanKobzarev
force-pushed
the
ivan/graph-trainer-pp-wgrad-fusion-20261007
branch
from
October 7, 2026 15:32
56bc2cb to
1e02525
Compare
IvanKobzarev
force-pushed
the
ivan/graph-trainer-pp-wgrad-fusion-20261007
branch
5 times, most recently
from
October 7, 2026 16:34
c52f42e to
85ea74f
Compare
IvanKobzarev
requested review from
sanketpurandare and
tianyu-l
as code owners
October 7, 2026 20:12
IvanKobzarev
force-pushed
the
ivan/graph-trainer-pp-wgrad-fusion-20261007
branch
from
October 8, 2026 11:31
7b00249 to
4505c51
Compare
IvanKobzarev
force-pushed
the
ivan/graph-trainer-pp-wgrad-fusion-20261007
branch
from
October 8, 2026 11:40
4505c51 to
bc02025
Compare
IvanKobzarev
force-pushed
the
ivan/graph-trainer-pp-wgrad-fusion-20261007
branch
from
October 8, 2026 11:49
bc02025 to
fa3a516
Compare
IvanKobzarev
force-pushed
the
ivan/graph-trainer-pp-wgrad-fusion-20261007
branch
from
October 8, 2026 11:52
fa3a516 to
6602934
Compare
IvanKobzarev
force-pushed
the
ivan/graph-trainer-pp-wgrad-fusion-20261007
branch
from
October 8, 2026 11:54
6602934 to
4c2103e
Compare
IvanKobzarev
force-pushed
the
ivan/graph-trainer-pp-wgrad-fusion-20261007
branch
from
October 8, 2026 12:22
4c2103e to
e39ab05
Compare
IvanKobzarev
force-pushed
the
ivan/graph-trainer-pp-wgrad-fusion-20261007
branch
2 times, most recently
from
October 8, 2026 14:36
e3e8712 to
aae1a99
Compare
IvanKobzarev
force-pushed
the
ivan/graph-trainer-pp-wgrad-fusion-20261007
branch
from
October 8, 2026 14:41
aae1a99 to
d494779
Compare
IvanKobzarev
force-pushed
the
ivan/graph-trainer-pp-wgrad-fusion-20261007
branch
from
October 8, 2026 16:11
d494779 to
1896fd7
Compare
SherlockNoMad
approved these changes
Oct 8, 2026
Some WGrad outputs reach the accumulation buffer through a functional add chain, especially repeated native and MXFP8 contributions. Validate the complete left-linear chain before rewriting it, fuse its supported producers in eager BF16 order, and leave unsupported chains unchanged.
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.
Some WGrad outputs reach the accumulation buffer through a functional add chain, especially repeated native and MXFP8 contributions.
Validate the complete left-linear chain before rewriting it, fuse supported producers in eager BF16 leaf order, and leave unsupported chains unchanged.
The PP gradient-accumulation hookup follows in #5208.
Validation: 24 WGrad tests passed.