First go to this link: https://colab.research.google.com/ and log in with your google account. If you see an Open notebook screen that pops up, you can close it for now.
Once you sign in, create a new notebook. This can be done by pressing file, then new notebook in drive.
Once opened, you will see a default name on the top left. You can rename this file whatever you want. Now press the Connect button at the top right of your screen and select the options highlighted in purple below. You will be using the CPU for now but this will change.
You will now see a screen that has a play button. Try typing some simple code to see if it works. You can create new code cells and only run that specfic cell if you want. This can help debug programs. Try importing torch and sklearn to see if it works.
Google Colab limits you to a certain amount of credits that you can use. To get more credits and more GPU options, use this link to get Google Colab Pro. THIS IS FREE FOR STUDENTS. Here is the link: https://colab.research.google.com/signup. Make sure you click on the options that says no cost for students and educators.
It will then ask you to confirm and continue as either a student or teacher. Click continue as student.
Now you should see a page that opens that is similar to the image shown below. Put in all the necessary information and click "Verify my student status."