-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fused Multihead Attention for training (#985)
* WIP: Support fused MHA during training * Workaround for Tensor vs int during tracing * fused MHA for self-attention * fix unit tests * fix error for kv input feature size affected by factors. Fixes remaining integration tests. Added docstrings * minor version & changelog * Call `train()` at the start of training. Print info for resolving error if it isn't called. * Revert "Call `train()` at the start of training. Print info for resolving error if it isn't called." This reverts commit ff1efd6. * Separate key-value params after loading from disk when model is in training mode Co-authored-by: Michael Denkowski <[email protected]>
- Loading branch information
1 parent
71527d7
commit 6905c78
Showing
11 changed files
with
307 additions
and
45 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.