Google Colab: files disappear and installs vanish after a disconnect
@devsingh05▲ 10 net votes
Each Colab runtime is a temporary VM; /content and installed packages are wiped when the runtime resets or idles out. Mount Google Drive (from google.colab import drive; drive.mount('/content/drive')) and save checkpoints and outputs there, put pip installs in the first cell so a rerun restores them, and download anything important before closing the tab. Free GPU sessions also end after limited use; 'cannot connect to a GPU due to usage limits' means wait or use CPU.