18.4. Using Google Colab
Open the notebook in Colab

We introduced in Section 18.2 and Section 18.3 for how to run this book on AWS. Another option is running on Google Colab, which provides free GPU if you have a Google account.

To run a section on Colab, you can simply click the Colab button on the right of the title Fig. 18.4.1. The first time you execute a code cell, you will receive a warning message saying it is from GitHub Fig. 18.4.2 and may steal your data. If you trust us, then click “RUN ANYWAY”, then Colab will connect you to an instance to run this notebook. In particular, if GPU is needed, such as d2l.try_gpu(), then we will request Colab to connect to a GPU instance automatically.

../_images/colab.png

Fig. 18.4.1 Open a section on Colab

../_images/colab-2.png

Fig. 18.4.2 The warning message for running a section on Colab

18.4.1. Summary

  • You can use Google Colab to run each section on GPUs freely.