Hi, I run my code in G colab. When I use TrainingArguments, it shows
“ImportError: Using the
Trainer
withPyTorch
requiresaccelerate>=0.21.0
: Please runpip install transformers[torch]
orpip install accelerate -U
”.
After installation, I tried to import them using syntax below
import transformers[torch]
import accelerate -U
The error message below popped up. Do someone know how to fix it? Thanks!