-
Notifications
You must be signed in to change notification settings - Fork 657
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 unit tests for PyTorch Lightning modules of emformer_rnnt recipes #2240
Conversation
test/torchaudio_unittest/example/emformer_rnnt/test_tedlium3_lightning.py
Show resolved
Hide resolved
test/torchaudio_unittest/example/emformer_rnnt/test_mustc_lightning.py
Outdated
Show resolved
Hide resolved
test/torchaudio_unittest/example/emformer_rnnt/test_librispeech_lightning.py
Outdated
Show resolved
Hide resolved
can you also try out mocking the dataloader to bypass multiprocessing to see whether that mitigates the mac python 3.7 test hanging issue? |
@hwangjeff The hanging issue seems to be resolved by mocking the dataloader. |
great, thanks! |
@@ -388,7 +388,7 @@ def get_token_processor(self) -> TokenProcessor: | |||
|
|||
The underlying model is constructed by :py:func:`torchaudio.models.emformer_rnnt_base` | |||
and utilizes weights trained on LibriSpeech using training script ``train.py`` | |||
`here <https://github.com/pytorch/audio/tree/main/examples/asr/librispeech_emformer_rnnt>`__ with default arguments. | |||
`here <https://github.com/pytorch/audio/tree/main/examples/asr/emformer_rnnt>`__ with default arguments. |
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.
thanks for fixing these
@nateanl has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
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.
What I originally meant was that test code was identical across librispeech/tedlium cases, but It seems parameterizing within the same dataset is also a good option.
I think this is worth reporting somewhere in the core. |
No known DataLoader updates |
…pytorch#2240) Summary: - Refactor the current `LibriSpeechRNNTModule`'s unit test. - Add unit tests for `TEDLIUM3RNNTModule` and `MuSTCRNNTModule` - Replace the lambda with partial in `TEDLIUM3RNNTModule` to pass the lightning unit test. Pull Request resolved: pytorch#2240 Reviewed By: mthrok Differential Revision: D34285195 Pulled By: nateanl fbshipit-source-id: 4f20749c85ddd25cbb0eafc1733c64212542338f
LibriSpeechRNNTModule
's unit test.TEDLIUM3RNNTModule
andMuSTCRNNTModule
TEDLIUM3RNNTModule
to pass the lightning unit test.