Train with a script | |
If you are running your training from a script, run the following command to create and save a configuration file: | |
accelerate config | |
Then launch your training with: | |
accelerate launch train.py | |
Train with a notebook | |
🤗 Accelerate can also run in a notebook if you're planning on using Colaboratory's TPUs. |