huggingface / audio-transformers-course

The Hugging Face Course on Transformers for Audio
Apache License 2.0
291 stars 87 forks source link

Error while using TrainingArguments in Unit4 #158

Open avipul751 opened 5 months ago

avipul751 commented 5 months ago

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.

Aryan-Deshpande commented 4 months ago

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

Ayoub-etoullali commented 3 months ago

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