Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is it possible to increase the ram in google colab with another way?

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 ?

like image 855
Adil chakhtouna Avatar asked Jul 05 '20 19:07

Adil chakhtouna


People also ask

How much RAM space does Google Colab give?

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?

How do I get more RAM for my Colab VM?

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.

Why is the option to double the ram on Colab runtimes not working?

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.

Is Google Colab useful in a university setting?

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.


1 Answers

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

like image 181
rchurt Avatar answered Sep 30 '22 19:09

rchurt