-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Numba CPU+CUDA support for RNNT Loss #1854
Conversation
This pull request introduces 1 alert when merging 9de7bc5 into 74a1ed8 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 8f8a275 into 74a1ed8 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging e454c4c into 74a1ed8 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 4946314 into 74a1ed8 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging ea51c3b into 74a1ed8 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging aea2b72 into 74a1ed8 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging bcb683a into 74a1ed8 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 5addd50 into 74a1ed8 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging af028e9 into 74a1ed8 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 8edd7f1 into 74a1ed8 - view on LGTM.com new alerts:
|
487e12f
to
6d28761
Compare
This pull request introduces 1 alert when merging 5bf8f3d into e8912ca - view on LGTM.com new alerts:
|
5bf8f3d
to
b3f93ae
Compare
This pull request introduces 1 alert when merging b3f93ae into aaab317 - view on LGTM.com new alerts:
|
b3f93ae
to
9cdc539
Compare
This pull request introduces 1 alert when merging 9cdc539 into d623109 - view on LGTM.com new alerts:
|
# | ||
# Copyright 2018-2019, Mingkun Huang | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it necessary to have this license here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, here its needed since the 2 functions and the class is ported from that codebase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But this is the init file which just contains the imports.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
nemo/collections/asr/parts/numba/rnnt_loss/utils/cuda_utils/gpu_rnnt_kernel.py
Show resolved
Hide resolved
9cdc539
to
19215a1
Compare
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
This pull request introduces 1 alert when merging 19215a1 into 480bbc3 - view on LGTM.com new alerts:
|
Signed-off-by: smajumdar <titu1994@gmail.com>
* Initial code merge Signed-off-by: smajumdar <titu1994@gmail.com> * Add RNNT Loss tests Signed-off-by: smajumdar <titu1994@gmail.com> * Add RNNT Loss tests Signed-off-by: smajumdar <titu1994@gmail.com> * Update reduce kernel tests Signed-off-by: smajumdar <titu1994@gmail.com> * Add tests and remove log messages Signed-off-by: smajumdar <titu1994@gmail.com> * Improve documentation Signed-off-by: smajumdar <titu1994@gmail.com> * Add alpha beta kernel tests Signed-off-by: smajumdar <titu1994@gmail.com> * Remove unused imports Signed-off-by: smajumdar <titu1994@gmail.com> * Remove unused imports Signed-off-by: smajumdar <titu1994@gmail.com> * Document warp reduce.py Signed-off-by: smajumdar <titu1994@gmail.com> * Style fixes Signed-off-by: smajumdar <titu1994@gmail.com> * Add NeMo licenses Signed-off-by: smajumdar <titu1994@gmail.com> * Add Numba to dependencies Signed-off-by: smajumdar <titu1994@gmail.com> * Add Numba to dependencies Signed-off-by: smajumdar <titu1994@gmail.com> * Add Numba to dependencies Signed-off-by: smajumdar <titu1994@gmail.com> * Use safetynet api in case numba version is too old Signed-off-by: smajumdar <titu1994@gmail.com> * Use safetynet api in case numba version is too old Signed-off-by: smajumdar <titu1994@gmail.com> * Use safetynet api in case numba version is too old Signed-off-by: smajumdar <titu1994@gmail.com> * Use safetynet api in case numba version is too old Signed-off-by: smajumdar <titu1994@gmail.com> * Force update Signed-off-by: smajumdar <titu1994@gmail.com> * Add docs for gpu rnnt kernel Signed-off-by: smajumdar <titu1994@gmail.com> * Add docs for gpu rnnt kernel gradient Signed-off-by: smajumdar <titu1994@gmail.com> * Update docs for cpu and gpu rnnt kernels + helpers Signed-off-by: smajumdar <titu1994@gmail.com> * Correct backward for numpy rnnt Signed-off-by: smajumdar <titu1994@gmail.com> * Update name of RNNT loss Signed-off-by: smajumdar <titu1994@gmail.com> * Formatting Signed-off-by: smajumdar <titu1994@gmail.com> * Add RNNT Loss License Signed-off-by: smajumdar <titu1994@gmail.com> * Add __init__.py correctly and improve rnnt loss resolution Signed-off-by: smajumdar <titu1994@gmail.com> * Address reviewer comments Signed-off-by: smajumdar <titu1994@gmail.com> * Address comments Signed-off-by: smajumdar <titu1994@gmail.com> Signed-off-by: Virginia Adams <vadams@nvidia.com>
* Initial code merge Signed-off-by: smajumdar <titu1994@gmail.com> * Add RNNT Loss tests Signed-off-by: smajumdar <titu1994@gmail.com> * Add RNNT Loss tests Signed-off-by: smajumdar <titu1994@gmail.com> * Update reduce kernel tests Signed-off-by: smajumdar <titu1994@gmail.com> * Add tests and remove log messages Signed-off-by: smajumdar <titu1994@gmail.com> * Improve documentation Signed-off-by: smajumdar <titu1994@gmail.com> * Add alpha beta kernel tests Signed-off-by: smajumdar <titu1994@gmail.com> * Remove unused imports Signed-off-by: smajumdar <titu1994@gmail.com> * Remove unused imports Signed-off-by: smajumdar <titu1994@gmail.com> * Document warp reduce.py Signed-off-by: smajumdar <titu1994@gmail.com> * Style fixes Signed-off-by: smajumdar <titu1994@gmail.com> * Add NeMo licenses Signed-off-by: smajumdar <titu1994@gmail.com> * Add Numba to dependencies Signed-off-by: smajumdar <titu1994@gmail.com> * Add Numba to dependencies Signed-off-by: smajumdar <titu1994@gmail.com> * Add Numba to dependencies Signed-off-by: smajumdar <titu1994@gmail.com> * Use safetynet api in case numba version is too old Signed-off-by: smajumdar <titu1994@gmail.com> * Use safetynet api in case numba version is too old Signed-off-by: smajumdar <titu1994@gmail.com> * Use safetynet api in case numba version is too old Signed-off-by: smajumdar <titu1994@gmail.com> * Use safetynet api in case numba version is too old Signed-off-by: smajumdar <titu1994@gmail.com> * Force update Signed-off-by: smajumdar <titu1994@gmail.com> * Add docs for gpu rnnt kernel Signed-off-by: smajumdar <titu1994@gmail.com> * Add docs for gpu rnnt kernel gradient Signed-off-by: smajumdar <titu1994@gmail.com> * Update docs for cpu and gpu rnnt kernels + helpers Signed-off-by: smajumdar <titu1994@gmail.com> * Correct backward for numpy rnnt Signed-off-by: smajumdar <titu1994@gmail.com> * Update name of RNNT loss Signed-off-by: smajumdar <titu1994@gmail.com> * Formatting Signed-off-by: smajumdar <titu1994@gmail.com> * Add RNNT Loss License Signed-off-by: smajumdar <titu1994@gmail.com> * Add __init__.py correctly and improve rnnt loss resolution Signed-off-by: smajumdar <titu1994@gmail.com> * Address reviewer comments Signed-off-by: smajumdar <titu1994@gmail.com> * Address comments Signed-off-by: smajumdar <titu1994@gmail.com> Signed-off-by: Virginia Adams <vadams@nvidia.com>
* Initial code merge Signed-off-by: smajumdar <titu1994@gmail.com> * Add RNNT Loss tests Signed-off-by: smajumdar <titu1994@gmail.com> * Add RNNT Loss tests Signed-off-by: smajumdar <titu1994@gmail.com> * Update reduce kernel tests Signed-off-by: smajumdar <titu1994@gmail.com> * Add tests and remove log messages Signed-off-by: smajumdar <titu1994@gmail.com> * Improve documentation Signed-off-by: smajumdar <titu1994@gmail.com> * Add alpha beta kernel tests Signed-off-by: smajumdar <titu1994@gmail.com> * Remove unused imports Signed-off-by: smajumdar <titu1994@gmail.com> * Remove unused imports Signed-off-by: smajumdar <titu1994@gmail.com> * Document warp reduce.py Signed-off-by: smajumdar <titu1994@gmail.com> * Style fixes Signed-off-by: smajumdar <titu1994@gmail.com> * Add NeMo licenses Signed-off-by: smajumdar <titu1994@gmail.com> * Add Numba to dependencies Signed-off-by: smajumdar <titu1994@gmail.com> * Add Numba to dependencies Signed-off-by: smajumdar <titu1994@gmail.com> * Add Numba to dependencies Signed-off-by: smajumdar <titu1994@gmail.com> * Use safetynet api in case numba version is too old Signed-off-by: smajumdar <titu1994@gmail.com> * Use safetynet api in case numba version is too old Signed-off-by: smajumdar <titu1994@gmail.com> * Use safetynet api in case numba version is too old Signed-off-by: smajumdar <titu1994@gmail.com> * Use safetynet api in case numba version is too old Signed-off-by: smajumdar <titu1994@gmail.com> * Force update Signed-off-by: smajumdar <titu1994@gmail.com> * Add docs for gpu rnnt kernel Signed-off-by: smajumdar <titu1994@gmail.com> * Add docs for gpu rnnt kernel gradient Signed-off-by: smajumdar <titu1994@gmail.com> * Update docs for cpu and gpu rnnt kernels + helpers Signed-off-by: smajumdar <titu1994@gmail.com> * Correct backward for numpy rnnt Signed-off-by: smajumdar <titu1994@gmail.com> * Update name of RNNT loss Signed-off-by: smajumdar <titu1994@gmail.com> * Formatting Signed-off-by: smajumdar <titu1994@gmail.com> * Add RNNT Loss License Signed-off-by: smajumdar <titu1994@gmail.com> * Add __init__.py correctly and improve rnnt loss resolution Signed-off-by: smajumdar <titu1994@gmail.com> * Address reviewer comments Signed-off-by: smajumdar <titu1994@gmail.com> * Address comments Signed-off-by: smajumdar <titu1994@gmail.com> Signed-off-by: Micha Livne <mlivne@nvidia.com>
* Initial code merge Signed-off-by: smajumdar <titu1994@gmail.com> * Add RNNT Loss tests Signed-off-by: smajumdar <titu1994@gmail.com> * Add RNNT Loss tests Signed-off-by: smajumdar <titu1994@gmail.com> * Update reduce kernel tests Signed-off-by: smajumdar <titu1994@gmail.com> * Add tests and remove log messages Signed-off-by: smajumdar <titu1994@gmail.com> * Improve documentation Signed-off-by: smajumdar <titu1994@gmail.com> * Add alpha beta kernel tests Signed-off-by: smajumdar <titu1994@gmail.com> * Remove unused imports Signed-off-by: smajumdar <titu1994@gmail.com> * Remove unused imports Signed-off-by: smajumdar <titu1994@gmail.com> * Document warp reduce.py Signed-off-by: smajumdar <titu1994@gmail.com> * Style fixes Signed-off-by: smajumdar <titu1994@gmail.com> * Add NeMo licenses Signed-off-by: smajumdar <titu1994@gmail.com> * Add Numba to dependencies Signed-off-by: smajumdar <titu1994@gmail.com> * Add Numba to dependencies Signed-off-by: smajumdar <titu1994@gmail.com> * Add Numba to dependencies Signed-off-by: smajumdar <titu1994@gmail.com> * Use safetynet api in case numba version is too old Signed-off-by: smajumdar <titu1994@gmail.com> * Use safetynet api in case numba version is too old Signed-off-by: smajumdar <titu1994@gmail.com> * Use safetynet api in case numba version is too old Signed-off-by: smajumdar <titu1994@gmail.com> * Use safetynet api in case numba version is too old Signed-off-by: smajumdar <titu1994@gmail.com> * Force update Signed-off-by: smajumdar <titu1994@gmail.com> * Add docs for gpu rnnt kernel Signed-off-by: smajumdar <titu1994@gmail.com> * Add docs for gpu rnnt kernel gradient Signed-off-by: smajumdar <titu1994@gmail.com> * Update docs for cpu and gpu rnnt kernels + helpers Signed-off-by: smajumdar <titu1994@gmail.com> * Correct backward for numpy rnnt Signed-off-by: smajumdar <titu1994@gmail.com> * Update name of RNNT loss Signed-off-by: smajumdar <titu1994@gmail.com> * Formatting Signed-off-by: smajumdar <titu1994@gmail.com> * Add RNNT Loss License Signed-off-by: smajumdar <titu1994@gmail.com> * Add __init__.py correctly and improve rnnt loss resolution Signed-off-by: smajumdar <titu1994@gmail.com> * Address reviewer comments Signed-off-by: smajumdar <titu1994@gmail.com> * Address comments Signed-off-by: smajumdar <titu1994@gmail.com>
Changelog
Todo:
RNNTLossNumba
(Done by resolver)warprnnt_pytorch
loss__init__.py