- Access Google Colab
- Sign in with your Google account
- You can also upload your own
.ipynb
files
- Go to [Runtime] > [Change runtime type] and select T4 GPU.
- Disk Space:
- 78 GB when using a GPU.
- 107 GB when using only the CPU.
- RAM: 12.72 GB.
- GPU: T4 (15GB memory).
- Session Duration: Up to 12 hours but may disconnect earlier if idle.
- Daily Usage: Generally around 12 hours of GPU usage, depending on load.
- Idle Timeout: Disconnects after 90 minutes of inactivity.
Note: From my experience, you can use a GPU for about 3–4 hours continuously.
You can check resources in the top-right corner of the Colab notebook. For more details, click on the resource monitoring window.
- To use a dataset in your notebook:
-
Upload it to your Drive.
-
Mount your Drive to access the dataset:
from google.colab import drive drive.mount('/content/drive')
-
- Alternatively, use the Kaggle API to download datasets directly:
!pip install kaggle
!kaggle competitions download -c dataset_name
- Use the
!wget
command to download datasets directly into Colab:
!wget https://www.example.com/dataset.zip
Save outputs temporarily in Colab's workspace or permanently in Google Drive:
model.save('/content/drive/My Drive/your_folder/model.h5')