ImportError: Using the Trainer with PyTorch: Seq2SeqTrainingArguments
Trying to implement Whisper fine tuning on colab:Google ColabWhen trying the step: training_args = Seq2SeqTrainingArguments(…) got the following error message:ImportError: Using theTrainerwithPyTorchrequiresaccelerate>=0.19.0: Please runpip install transformers[torch]orpip install accelerate -UI tried bothpip install transformers[torch]orpip install accelerate -Uwith no success. Any help is appreciated.
2023-05-30T13:19:49Z
same, did you find any solution?
2023-05-30T16:20:57Z
One option is “!pip install accelerate -U” at the very beginning, then restart the runtime and it should work.Another option may be to downgrade pytorch to 1.3.1 version.I hope it helps
2023-06-09T06:04:31Z
Restaring the Runtime in Colab solved this issue for me
2023-06-17T13:23:18Z
Shirali:“!pip install accelerate -U” at the very beginning, then restart the runtime and it should work.This fixed the issue for me