DeepSpeedExamples
DeepSpeedExamples copied to clipboard
RuntimeError test-wav2vec2.py
I get errors when trying to run huggingface example test-wav2vec2.py. First I get missing python package errors (datasets, jiwer). After installing packages I see:
RuntimeError: Error opening '/home/mosm/.cache/huggingface/datasets/downloads/extracted/e4488bdcc5e36bb8e49ff9b437db0cde3f99b8f604fabd9bc27b267ced1c7967/6930-75918-0000.flac': System error.
File link: https://github.com/microsoft/DeepSpeedExamples/blob/50dddbfbe9d7cd8c7f9b46ae95e145c2fc358e3f/inference/huggingface/test-wav2vec2.py#L1
@awan-10 @RezaYazdaniAminabadi
Hi @molly-smith,
Please try updating your transformers to the latest and the issue will be resolved. Thanks, Reza
I have 4.21.2 installed. Is that not the latest?
Hi @molly-smith,
Can you please try the setup instruction in the automatic-speech-recogintion README and see if that fixes it?
I was able to get it to run on my end, here's my output:
WER: 0.03383673158855752
Thanks, Lev
I still see the same error soundfile.LibsndfileError: Error opening '/home/mosm/.cache/huggingface/datasets/downloads/extracted/e4488bdcc5e36bb8e49ff9b437db0cde3f99b8f604fabd9bc27b267ced1c7967/6930-75918-0000.flac': System error.
Tested again w/ latest transformers version and this example is working okay now. Closing the issue.