GPU in Google colab

In the menu bar at the top there is an sub-menu called runtime. Inside this there is the option to change the runtime. You can switch to GPUs there.