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?
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
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) :
that (obviously) looks for the latest available version.