From 6d160e0330e2f43df32b870fefd40f4080ac4f44 Mon Sep 17 00:00:00 2001 From: Jithun Nair Date: Thu, 8 May 2025 19:02:20 +0000 Subject: [PATCH 1/2] Add requirements-dev.txt to capture testing dependencies --- requirements-dev.txt | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 requirements-dev.txt diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000000..5123b11c8f --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,6 @@ +# Testing dependencies +typing +pytest +scipy +numpy +parameterized From 9f2e70589c3f9e06765a44af3e0e42f0c2af9695 Mon Sep 17 00:00:00 2001 From: skishore Date: Thu, 12 Jun 2025 10:54:34 +0000 Subject: [PATCH 2/2] Install additional dependencies to fix errors when running tests. Fixes the following errors: ModuleNotFoundError: No module named 'flashlight' RuntimeError: CTC Decoder suit requires flashlight-text package and optionally KenLM. Please install them. SentencePiece is not available. Please install it. DeepPhonemizer is not installed. Please install it. Fixes the following tests: test/integration_tests/ctc_decoder_integration_test.py test/integration_tests/rnnt_pipeline_test.py test/torchaudio_unittest/kaldi_io_test.py test/torchaudio_unittest/models/decoder/ctc_decoder_test.py Tested on both rocm and nvidia --- requirements-dev.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/requirements-dev.txt b/requirements-dev.txt index 5123b11c8f..9694c65a88 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -4,3 +4,10 @@ pytest scipy numpy parameterized +flashlight +flashlight-text +kenlm +sentencepiece +deep-phonemizer +librosa>=0.4.3 +scikit-learn