audio-transformers-course icon indicating copy to clipboard operation
audio-transformers-course copied to clipboard

Error while using TrainingArguments in Unit4

Open avipul751 opened this issue 1 year ago • 2 comments

I'm getting the following error while creating an instance of TrainingArguments in Unit-4:

ImportError: Using the Trainer with PyTorch requires accelerate>=0.21.0: Please run pip install transformers[torch] or pip install accelerate -U

I've tried doing both "pip install transformers[torch]" as well as "pip install accelerate -U" but the same error pops up still.

There is no issue in importing TrainingArguments, the error pops up while creating an instance only.

avipul751 avatar Jan 14 '24 17:01 avipul751

I have the same issue, please do update if there any fixes !

Aryan-Deshpande avatar Mar 07 '24 08:03 Aryan-Deshpande

"!pip install -U accelerate transformers" work for me

Ayoub-etoullali avatar Mar 30 '24 09:03 Ayoub-etoullali