Colab allows you to use GPU VM’s free of charge and is ideal for medium experiments. Below is a snippet to use/import data into the VM. It assumes that you have a file on your G-drive called ‘Obama.txt’. When you right-click on the file you can share it via a link. This link contains the id you need below to import it into the VM. Once the file is imported you can use the regular file-name.

To enable things GPU on colab you need to install Torch first with

To connect to G-drive use

Fetch the id via the sharing-link and add

which makes the file available with the same name in the VM.