是否有可能以另一种方式增加google colab中的ram? [英] is it possible to increase the ram in google colab with another way?

查看:207
本文介绍了是否有可能以另一种方式增加google colab中的ram?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在google colab中运行此代码时

  n = 100000000我= []而True:i.append(n * 10 ** 66) 

我无时无刻不在发生.我的数据很大.达到12.72 GB RAM后,但我没有立即进入崩溃提示,也没有选择增加RAM的选项.

我刚刚使用完所有可用的RAM后,您的会话崩溃了.查看运行时日志

有什么解决方案?还有另一种方法吗?

解决方案

您要么需要升级到Colab Pro,要么您的计算机本身的RAM大于适用于Colab的VM的RAM,则可以连接到本地运行时.>

Colab Pro将为您提供大约两倍的内存.如果这足够了,并且您愿意每月支付10美元,那可能是最简单的方法.

如果您想使用本地运行时,则可以点击右上角连接"旁边的向下箭头,然后选择连接到本地运行时"

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 ?

解决方案

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

这篇关于是否有可能以另一种方式增加google colab中的ram?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆