All cells up to the trainer cell work, but that gives the following error (running on colab):
ImportError: Using the `Trainer` with `PyTorch` requires `accelerate>=0.20.1`: Please run `pip install transformers[torch]` or `pip install accelerate -U
I tried the hint form the error message and installed accelerate, but the Trainer still gave the same error:
I also tried !pip install transformers[torch]
as suggested, but all the requirements were already satisfied.