-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Gradient Clipping (clamp) in RNNT Numba loss (#3550)
* Implement LogSoftmaxGradModification function Signed-off-by: smajumdar <[email protected]> * Implement clamp in cuda kernels Signed-off-by: smajumdar <[email protected]> * Update code for clamp support in numpy and pytorch Signed-off-by: smajumdar <[email protected]> * Add basic gradient test Signed-off-by: smajumdar <[email protected]> * Add basic gradient test Signed-off-by: smajumdar <[email protected]> * Add gradient test for fastemit and clamp Signed-off-by: smajumdar <[email protected]> * Correct test name for big tensor Signed-off-by: smajumdar <[email protected]> * Fix installation links to Numba to be for conda-forge Signed-off-by: smajumdar <[email protected]> * Increase GPU grad kernel thread size Signed-off-by: smajumdar <[email protected]> * Add newline Signed-off-by: smajumdar <[email protected]> * Add support for clamp in loss numba Signed-off-by: smajumdar <[email protected]> * Update configs Signed-off-by: smajumdar <[email protected]> * Update test name Signed-off-by: smajumdar <[email protected]> * Fix issue with conda forge install numba Signed-off-by: smajumdar <[email protected]> * Revert inplace mul, we dont need double backprop yet (todo: investigate memory cost with and without it for future) Signed-off-by: smajumdar <[email protected]> * Address comment about docstring Signed-off-by: smajumdar <[email protected]>
- Loading branch information
Showing
20 changed files
with
548 additions
and
26 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
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
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
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.