Making The Most of Your Colab Subscription - Colab
Making The Most of Your Colab Subscription - Colab
The free of charge version of Colab grants access to Nvidia's T4 GPUs subject to quota restrictions and availability.
You can see what GPU you've been assigned at any time by executing the following cell. If the execution result of running the code cell below
is "Not connected to a GPU", you can change the runtime by going to Runtime > Change runtime type in the menu to enable a GPU
accelerator, and then re-execute the code cell.
gpu_info = !nvidia-smi
gpu_info = '\n'.join(gpu_info)
if gpu_info.find('failed') >= 0:
print('Not connected to a GPU')
else:
print(gpu_info)
In order to use a GPU with your notebook, select the Runtime > Change runtime type menu, and then set the hardware accelerator to the
desired option.
You can see how much memory you have available at any time by running the following code cell. If the execution result of running the code
cell below is "Not using a high-RAM runtime", then you can enable a high-RAM runtime via Runtime > Change runtime type in the menu.
Then select High-RAM in the Runtime shape toggle button. After, re-execute the code cell.
Longer runtimes
All Colab runtimes are reset after some period of time (which is faster if the runtime isn't executing code). Colab Pro and Pro+ users have
access to longer runtimes than those who use Colab free of charge.
Background execution
Colab Pro+ users have access to background execution, where notebooks will continue executing even after you've closed a browser tab.
This is always enabled in Pro+ runtimes as long as you have compute units available.
Your resources are not unlimited in Colab. To make the most of Colab, avoid using resources when you don't need them. For example, only
use a GPU when required and close Colab tabs when finished.
If you encounter limitations, you can relax those limitations by purchasing more compute units via Pay As You Go. Anyone can purchase
compute units via Pay As You Go; no subscription is required.
https://colab.research.google.com/notebooks/pro.ipynb#scrollTo=BJW8Qi-pPpep&printMode=true 1/3
3/20/25, 12:14 PM Making the Most of your Colab Subscription - Colab
Send us feedback!
If you have any feedback for us, please let us know. The best way to send feedback is by using the Help > 'Send feedback...' menu. If you
encounter usage limits in Colab Pro consider subscribing to Pro+.
If you encounter errors or other issues with billing (payments) for Colab Pro, Pro+, or Pay As You Go, please email [email protected].
More Resources
To see end-to-end examples of the interactive machine learning analyses that Colab makes possible, check out these tutorials using models
from TensorFlow Hub.
Retraining an Image Classifier: Build a Keras model on top of a pre-trained image classifier to distinguish flowers.
Text Classification: Classify IMDB movie reviews as either positive or negative.
Style Transfer: Use deep learning to transfer style between images.
Multilingual Universal Sentence Encoder Q&A: Use a machine learning model to answer questions from the SQuAD dataset.
Video Interpolation: Predict what happened in a video between the first and the last frame.
https://colab.research.google.com/notebooks/pro.ipynb#scrollTo=BJW8Qi-pPpep&printMode=true 2/3
3/20/25, 12:14 PM Making the Most of your Colab Subscription - Colab
https://colab.research.google.com/notebooks/pro.ipynb#scrollTo=BJW8Qi-pPpep&printMode=true 3/3