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

[亡魂溺海] 提交于 2021-01-05 09:14:34

问题


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 ?


回答1:


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



来源:https://stackoverflow.com/questions/62745386/is-it-possible-to-increase-the-ram-in-google-colab-with-another-way

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!