transformers
Sum the MoE experts' top-k outputs without a float32 copy of all rows
#51491
Merged
Go
Login via GitHub
Home
FAQ
Install
Login
via GitHub
Overview
Commits
10
Changes
View On
GitHub
Commits
Sum the MoE experts' top-k outputs without a float32 copy of all rows
eilamc14
committed
3 days ago
Leave the expert-parallel sentinel comment as it was
eilamc14
committed
3 days ago
Cast each chunk's sum to the rows' dtype, and use one expression when compiling
eilamc14
committed
3 days ago
Restore the experts order with index_copy_ when gradients are needed
eilamc14
committed
3 days ago
Move the reshape+sum explanation into _weighted_sum's docstring
eilamc14
committed
2 days ago
Chunk the weighted sum only when gradients are needed
eilamc14
committed
2 days ago
Check compiling and no-grad before computing the chunk size
eilamc14
committed
2 days ago
Weighted sum: is_torchdynamo_compiling and a grad-enabled training check, one chunked path
IlyasMoutawwakil
committed
1 day ago
Move the unsort into _unsort, inline the single-use training check
IlyasMoutawwakil
committed
1 day ago
_unsort: index_copy_ when compiling too, keep the single-chunk path of _weighted_sum
IlyasMoutawwakil
committed
1 day ago
Loading