DeepSpeedExamples icon indicating copy to clipboard operation
DeepSpeedExamples copied to clipboard

RuntimeError test-wav2vec2.py

Open molly-smith opened this issue 3 years ago • 4 comments

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

molly-smith avatar Aug 31 '22 23:08 molly-smith

Hi @molly-smith,

Please try updating your transformers to the latest and the issue will be resolved. Thanks, Reza

RezaYazdaniAminabadi avatar Aug 31 '22 23:08 RezaYazdaniAminabadi

I have 4.21.2 installed. Is that not the latest?

molly-smith avatar Aug 31 '22 23:08 molly-smith

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

lekurile avatar Dec 02 '22 21:12 lekurile

I still see the same error soundfile.LibsndfileError: Error opening '/home/mosm/.cache/huggingface/datasets/downloads/extracted/e4488bdcc5e36bb8e49ff9b437db0cde3f99b8f604fabd9bc27b267ced1c7967/6930-75918-0000.flac': System error.

molly-smith avatar Dec 05 '22 18:12 molly-smith

Tested again w/ latest transformers version and this example is working okay now. Closing the issue.

lekurile avatar Oct 13 '23 17:10 lekurile