Colab already has most of these libraries installed. You don’t need to install PyTorch for example. The rest you can install with pip. I think all you need is transformers and simpletransformers.

pip install transformers
pip install simpletransformers

If it complains about any missing packages, you should be able to install them with pip.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store