TrainingArgument does not work on colab

I’m getting the same error in the colab notebook for the NLP Course: Lesson 3 - Fine-tuning model with the Trainer API. In order to get around it you can:

  1. Run pip install accelerate -U in a cell
  2. In the top menu click RuntimeRestart Runtime
  3. Do not rerun any cells with !pip install in them
  4. Rerun all the other code cells and you should be good to go!

On a side note, be sure to turn on a GPU for this notebook by clicking EditNotebook SettingsGPU type - from the top menu. This was the next thing that got me : )

17 Likes