Sum the MoE experts' top-k outputs without a float32 copy of all rows #51491
Sum the MoE experts' top-k outputs without a float32 copy of all rows
258c13d2
Leave the expert-parallel sentinel comment as it was
b5da6744
Cast each chunk's sum to the rows' dtype, and use one expression when…
c57d8c2a
Restore the experts order with index_copy_ when gradients are needed
d4ef7eaf
eilamc14
force pushed
from
0980c33d
to
d4ef7eaf
2 days ago
eilamc14
marked this pull request as ready for review 2 days ago
vasqu
approved these changes
on 2026-12-01
Move the reshape+sum explanation into _weighted_sum's docstring
1f8565d5
Chunk the weighted sum only when gradients are needed
183d81dd
Check compiling and no-grad before computing the chunk size
d217c8a8
Weighted sum: is_torchdynamo_compiling and a grad-enabled training ch…
d48bab87
Move the unsort into _unsort, inline the single-use training check
4fd5c66d
_unsort: index_copy_ when compiling too, keep the single-chunk path o…
18e4b87e
eilamc14
deleted the moe-combine-rows-dtype branch 19 hours ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub