Harness the power of GPU and TPU
Using Google Colab
2 min readOct 9, 2018
What is Google Colab?
Colaboratory is a free Jupyter notebook environment that requires no setup and runs entirely in the cloud. It provides GPU and TPU totally free! Now, we can develop deep learning applications on this free GPU/TPU.
Why to use?
- Colaboratory supports Python 2.7 and Python 3.6,
- Free GPU and TPU,
- Built on top of Jupyter notebook,
- Many pre-installed libraries like TensorFlow, Pandas, OpenCV, PyTorch, Matplotlib, Numpy, and many more.
- Supports Bash commands,
For more information read : Google Colab FAQ
Create a Colab Notebook :
Method 1 -
- Open this link https://colab.research.google.com.
- Once you sign in your account, you will be asked to grant permission to Colab to access your Google Drive. Go ahead and do that since you can store datasets in it to make the most out of that empty free space in your drive.
- You can view Example notebooks and also open previous notebooks saved in your Google Drive.
- To create a new notebook click on New Python Notebook in the bottom right corner and select the version.
(OR)
Method 2 -
- Open Google Drive
- Create new folder
- Click on New -> More -> Colaboratory.
How to use GPU/ TPU?
Google Colab provides free GPU and TPU, but the default run-time type is CPU. To set it to GPU/TPU follow this steps:-
- Click on Runtime from the top menu.
- Select the Change Runtime option. It will open a small window like this -
- Select your preferred Runtime type and click on Save.
Congratulations, you have created your first Colaboratory Notebook. I will be uploading new blogs regularly regarding how to use Colaboratory.
Stay Tuned! Feel free to ask questions!