When I run this code in google colab
n = 100000000
i = []
while True:
i.append(n * 10**66)
it happens to me all the time. My data is huge. After hitting 12.72 GB RAM, but I don't immediately get to the crash prompt and the option to increase my RAM.
I have just this Your session crashed after using all available RAM. View runtime logs
What is the solution ? Is there another way ?
Sorry, something went wrong. Google Colab gives free 25 Gb as Ram space. But for my model I need 64 Gb. How can I increase the memory space? Can I buy the rest and How?
You either need to upgrade to Colab Pro or if your computer itself has more RAM than the VM for Colab, you can connect to your local runtime instead. Colab Pro will give you about twice as much memory as you have now. If that’s enough, and you’re willing to pay $10 per month, that’s probably the easiest way.
May 20, 2020 update: A reader has reported that the option to double the RAM on the free Colab runtimes is not working anymore. Wild guess: this is related to Google’s recent launch of Colab Pro at $9.99/month, which offer double the RAM… Colab is 100% free, and so naturally it has some resource constraints.
I found it very useful in a university setting: I’ve asked students to submit their homework by sharing a link to their Google Colab Notebook. No more “my laptop crashed because it doesn’t have enough memory” excuses. May 20, 2020 update: A reader has reported that the option to double the RAM on the free Colab runtimes is not working anymore.
You either need to upgrade to Colab Pro or if your computer itself has more RAM than the VM for Colab, you can connect to your local runtime instead.
Colab Pro will give you about twice as much memory as you have now. If that’s enough, and you’re willing to pay $10 per month, that’s probably the easiest way.
If instead you want to use a local runtime, you can hit the down arrow next to “Connect” in the top right, and choose “Connect to local runtime
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With