Primary competition visual

Intron AfriSpeech-200 Automatic Speech Recognition Challenge

$5 000 USD
Challenge completed over 2 years ago
Automatic Speech Recognition
430 joined
41 active
Starti
Feb 17, 23
Closei
May 28, 23
Reveali
May 28, 23
User avatar
Siwar_NASRI
Incompatiblety
Help · 27 Apr 2023, 15:06 · 2

I was doing fine with huggingface-hub-0.13.4/transformers-4.28.0.dev0

But now I have an incompatibility problem between huggingface-hub-0.14.1/transformers-4.29.0.dev0 package with the accelerate package:

RuntimeError : Failed to import transformers.pipelines because of the following error (look up to see its traceback) :
cannot import name 'PartialState' from 'accelerate'


RuntimeError: Failed to import transformers.training_args_seq2seq because of the following error (look up to see its traceback):
cannot import name 'PartialState' from 'accelerate'

So, if you have any idea how to downgrade from huggingface/transformers-4.29 to huggingface/transformers-4.28, could you help me?

Discussion 2 answers
User avatar
Siwar_NASRI

Downgrading huggingface-hub and/or updating the accelerate packages didn't solve this problem. If you encounter this error, simply import the partialstate class from the accelerate.state module

29 Apr 2023, 09:02
Upvotes 0

Hi @Siwar_NASRI,

Another fix is to downgrade the transformers package. I used the 4.27.4 version instead and it worked just fine. The dev version is installed because of the installation command (in the notebook's third code cell) :

pip install git+https//github.com/huggingface/transformers 

that (obviously) looks for the latest available version.