After colab crashes with 12GB ram, not asking for 25GB ram.Simply restarting

Hey all,
Usually, colab allocates us 25GB ram when we crash 12GB ram. But in my case, it is not asking or allocating 25GB ram.

a = []

while (1):


I ran this program to crash. It is crashing but it says, “colab crashed after using all ram, see runtime logs” and then restarts.

what might be the problem here?

This seems to be a Colab issue and maybe this “hack” of running OOM to get more RAM doesn’t work anymore?

Yeah, sometimes it works but not every time.
One hack we can do is we can change the backend config of colab


Here “hm” represents ‘high memory’. So we can add machine_shape field to get high ram

1 Like