colab中出现Using the Trainer
with PyTorch
requires accelerate>=0.21.0
出现 :Using the Trainer with PyTorch requires accelerate>=0.21.0: Please run pip install transformers[torch] or pip install accelerate -U`
参考
解决方式:
! pip install -U accelerate
! pip install -U transformers
安装后重新启动会话。