open-ce / transformers-feedstock

Apache License 2.0
0 stars 10 forks source link

test failures #21

Closed cdeepali closed 3 years ago

cdeepali commented 3 years ago

Observed following test failures on CI build:

=========================== short test summary info ============================
FAILED tests/test_feature_extraction_speech_to_text.py::Speech2TextFeatureExtractionTest::test_attention_mask
FAILED tests/test_feature_extraction_speech_to_text.py::Speech2TextFeatureExtractionTest::test_batch_feature
FAILED tests/test_feature_extraction_speech_to_text.py::Speech2TextFeatureExtractionTest::test_batch_feature_pt
FAILED tests/test_feature_extraction_speech_to_text.py::Speech2TextFeatureExtractionTest::test_batch_feature_tf
FAILED tests/test_feature_extraction_speech_to_text.py::Speech2TextFeatureExtractionTest::test_call
FAILED tests/test_feature_extraction_speech_to_text.py::Speech2TextFeatureExtractionTest::test_cepstral_mean_and_variance_normalization
FAILED tests/test_feature_extraction_speech_to_text.py::Speech2TextFeatureExtractionTest::test_feat_extract_common_properties
FAILED tests/test_feature_extraction_speech_to_text.py::Speech2TextFeatureExtractionTest::test_feat_extract_from_and_save_pretrained
FAILED tests/test_feature_extraction_speech_to_text.py::Speech2TextFeatureExtractionTest::test_feat_extract_to_json_file
FAILED tests/test_feature_extraction_speech_to_text.py::Speech2TextFeatureExtractionTest::test_feat_extract_to_json_string
FAILED tests/test_feature_extraction_speech_to_text.py::Speech2TextFeatureExtractionTest::test_init_without_params
FAILED tests/test_feature_extraction_speech_to_text.py::Speech2TextFeatureExtractionTest::test_padding_accepts_tensors_pt
FAILED tests/test_feature_extraction_speech_to_text.py::Speech2TextFeatureExtractionTest::test_padding_accepts_tensors_tf
FAILED tests/test_feature_extraction_speech_to_text.py::Speech2TextFeatureExtractionTest::test_padding_from_array
FAILED tests/test_feature_extraction_speech_to_text.py::Speech2TextFeatureExtractionTest::test_padding_from_list
= 15 failed, 3006 passed, 942 skipped, 3183 deselected, 1077 warnings in 3240.17s (0:54:00) =

The error reported is:

        if not is_torchaudio_available():
>           raise ImportError("`Speech2TextFeatureExtractor` requires torchaudio: `pip install torchaudio`.")
E           ImportError: `Speech2TextFeatureExtractor` requires torchaudio: `pip install torchaudio`.

src/transformers/models/speech_to_text/feature_extraction_speech_to_text.py:79: ImportError
cdeepali commented 3 years ago

torchaudio is not available on PPC:

$ pip install torchaudio
ERROR: Could not find a version that satisfies the requirement torchaudio (from versions: none)
ERROR: No matching distribution found for torchaudio
cdeepali commented 3 years ago

I observed the following other tests to fail too locally:

FAILED tests/test_modeling_ctrl.py::CTRLModelTest::test_multi_gpu_data_parallel_forward
FAILED tests/test_modeling_funnel.py::FunnelModelTest::test_multi_gpu_data_parallel_forward
FAILED tests/test_modeling_xlnet.py::XLNetModelTest::test_multi_gpu_data_parallel_forward