-
Notifications
You must be signed in to change notification settings - Fork 3.2k
add CTC batched beam search #13337
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
Merged
Merged
add CTC batched beam search #13337
Changes from 91 commits
Commits
Show all changes
95 commits
Select commit
Hold shift + click to select a range
8ead3f3
add ctc beam decoding
lilithgrigoryan 8f8be47
add utils
lilithgrigoryan 91e48c2
first working
lilithgrigoryan df1ac04
working cuda graphs
lilithgrigoryan f2ee3dc
fix bugs with cudagraohs
lilithgrigoryan 83ecc97
Merge branch 'main' of https://github.com/NVIDIA/NeMo into lgrigoryan…
lilithgrigoryan f50390e
working
lilithgrigoryan 70cc5ca
small fix
lilithgrigoryan 636c219
minor fix
lilithgrigoryan 1733050
add logging
lilithgrigoryan 9a4248f
add print
lilithgrigoryan 9103945
to log sum exp
lilithgrigoryan 9094e56
back to max score
lilithgrigoryan 5b6bdac
fix bug in cudagraphs, save before refactor
lilithgrigoryan 5339d82
Merge branch 'main' of https://github.com/NVIDIA/NeMo into lgrigoryan…
lilithgrigoryan f944930
rm log10
lilithgrigoryan 939d105
rm prints
lilithgrigoryan 1de07f2
add reallocation
lilithgrigoryan af1277f
rm logprobs from state
lilithgrigoryan 1b5a223
rm nexts from state
lilithgrigoryan 6ded71a
rm prev lm states
lilithgrigoryan 44c1ca6
small clean up
lilithgrigoryan 963a257
clean up cuda graphs
lilithgrigoryan 9df22a1
cudagraph working
lilithgrigoryan 676913b
clean up torch working
lilithgrigoryan 7071328
Apply isort and black reformatting
lilithgrigoryan 1183403
rm files
lilithgrigoryan 781c9d2
Merge branch 'lgrigoryan/ctc_beam_search_pr' of https://github.com/NV…
lilithgrigoryan d72f6f3
save
lilithgrigoryan 457806d
add flatten
lilithgrigoryan 83acec6
Merge branch 'main' of https://github.com/NVIDIA/NeMo into lgrigoryan…
lilithgrigoryan d047c1f
Apply isort and black reformatting
lilithgrigoryan 4a87def
clean up
lilithgrigoryan b01a08b
Merge branch 'lgrigoryan/ctc_beam_search_pr' of https://github.com/NV…
lilithgrigoryan b0bccdf
clean up
lilithgrigoryan 181e7e0
add timestamps
lilithgrigoryan 141430f
rm file
lilithgrigoryan cb4eef9
Merge branch 'main' of https://github.com/NVIDIA/NeMo into lgrigoryan…
lilithgrigoryan f370560
Apply isort and black reformatting
lilithgrigoryan ebeb866
rename file
lilithgrigoryan 8916e48
Merge branch 'lgrigoryan/ctc_beam_search_pr' of https://github.com/NV…
lilithgrigoryan d281a3f
add batched beam tests
lilithgrigoryan 556850f
Apply isort and black reformatting
lilithgrigoryan f007390
add tests
lilithgrigoryan 057c884
Merge branch 'lgrigoryan/ctc_beam_search_pr' of https://github.com/NV…
lilithgrigoryan 9849c1f
Apply isort and black reformatting
lilithgrigoryan 2bd7344
changed return type
lilithgrigoryan 2bba9ab
Merge branch 'lgrigoryan/ctc_beam_search_pr' of https://github.com/NV…
lilithgrigoryan 5d89c3a
clean up
lilithgrigoryan 7dcec45
Apply isort and black reformatting
lilithgrigoryan d429ada
Merge branch 'lgrigoryan/ctc_beam_search_pr' of https://github.com/NV…
lilithgrigoryan eb7c350
minor changes
lilithgrigoryan 6666816
clean up
lilithgrigoryan d3bb22d
clean up
lilithgrigoryan da40efb
Merge branch 'main' into lgrigoryan/ctc_beam_search_pr
ko3n1g f5af89f
renamed variables
lilithgrigoryan cd978f2
changed is_tdt to model_type
lilithgrigoryan c890e9c
unified batched beam hyps
lilithgrigoryan 59d295a
Merge branch 'main' of ssh://gitlab-master.nvidia.com:12051/vbataev/n…
lilithgrigoryan 3ff6a0d
Merge branch 'lgrigoryan/ctc_beam_search_pr' of https://github.com/NV…
lilithgrigoryan 8669582
Apply isort and black reformatting
lilithgrigoryan 31a82a0
clean up
lilithgrigoryan b32f63f
Merge branch 'lgrigoryan/ctc_beam_search_pr' of https://github.com/NV…
lilithgrigoryan 1c62c5a
clean up
lilithgrigoryan 971fc16
clean up
lilithgrigoryan 8c7a306
clean up
lilithgrigoryan dd155f2
clean up
lilithgrigoryan f89fd03
clean up
lilithgrigoryan 0615c25
clean up
lilithgrigoryan b5cfa6d
Update cuda_program_name
lilithgrigoryan e22541f
clean up and and commments
lilithgrigoryan 5134e8f
clean up and small fixes
lilithgrigoryan ab9a4c3
Merge branch 'lgrigoryan/ctc_beam_search_pr' of https://github.com/NV…
lilithgrigoryan 20b705c
Merge branch 'main' of https://github.com/NVIDIA/NeMo into lgrigoryan…
lilithgrigoryan e198787
Apply isort and black reformatting
lilithgrigoryan f6258ae
fix
lilithgrigoryan b6997c9
Merge branch 'main' of https://github.com/NVIDIA/NeMo into lgrigoryan…
lilithgrigoryan 86e89f1
Merge branch 'lgrigoryan/ctc_beam_search_pr' of https://github.com/NV…
lilithgrigoryan a56a7e7
fix tests
lilithgrigoryan de8eba7
added check on model type
lilithgrigoryan 70b6b82
Merge branch 'main' of https://github.com/NVIDIA/NeMo into lgrigoryan…
lilithgrigoryan 6de0b25
minor change
lilithgrigoryan f4b3983
rm repetitions LM scoring
lilithgrigoryan ed59213
add enum model type
lilithgrigoryan 66b115a
add enum model type
lilithgrigoryan 80a409e
Merge branch 'main' of https://github.com/NVIDIA/NeMo into lgrigoryan…
lilithgrigoryan a55d688
Apply isort and black reformatting
lilithgrigoryan 943fb7e
fix lm repetitions for cudahraphs
lilithgrigoryan 0642c80
Merge branch 'lgrigoryan/ctc_beam_search_pr' of https://github.com/NV…
lilithgrigoryan 763a03e
Merge branch 'main' of https://github.com/NVIDIA/NeMo into lgrigoryan…
lilithgrigoryan cf95ecb
Apply isort and black reformatting
lilithgrigoryan f7f7c68
clean up
lilithgrigoryan 7e2eb60
Merge branch 'main' of https://github.com/NVIDIA/NeMo into lgrigoryan…
lilithgrigoryan 335a90d
Merge branch 'lgrigoryan/ctc_beam_search_pr' of https://github.com/NV…
lilithgrigoryan 38e2321
clean up
lilithgrigoryan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
696 changes: 696 additions & 0 deletions
696
nemo/collections/asr/parts/submodules/ctc_batched_beam_decoding.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.