Google Colab Pro+ clo 后冻结

发布于 2025-01-17 03:56:26 字数 303 浏览 1 评论 0原文

我购买了 Colab Pro+,因为我想使用后台执行选项。 我启用了后台执行和 GPU 类型并启动了我的代码。 我的代码是 Tiny ImageNet 上的简单 CNN,需要在 GPU 上进行几个小时的训练。

我关闭了浏览器,一两个小时后,我回来了,一切都冻结了!

输入图片此处描述

我该如何解决此问题?

I got a Colab Pro+ because I wanted to use the background execution option.
I enabled the background execution and GPU type and started my code.
My code is a simple CNN on Tiny ImageNet, which requires several hours of training on a GPU.

I closed the browser, and after one-two hours, I returned, and everything was frozen!

enter image description here

How can I resolve this issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

决绝 2025-01-24 03:56:26

这种情况也发生在我身上,我能想到的最佳解决方案(工作不一致,但似乎比其他方式更有帮助)是防止我的屏幕锁定。让我解释一下。

我在 Macbook 笔记本电脑上运行 Colab Pro+,省电设置通常是当笔记本电脑闲置 5 分钟时屏幕锁定,锁屏界面就会出现。我注意到,出于某种原因,如果我离开笔记本电脑,Colab 更有可能死机并断开连接,而不是我在笔记本电脑运行时工作几个小时,因此为了表面上模仿这一点,我将设置更改为从不锁定屏幕。然后我意识到,通过这些设置,Colab 冻结和断开连接的频率会大大降低,而且我可以成功地让它运行过夜并在早上检查它。 [编辑:让我澄清一下,我在关闭浏览器时没有尝试过此操作。因此,我可以证明我的方法的有效性如果您保持浏览器打开]。

但我不得不说,这对我的笔记本电脑来说很糟糕,而且尽管我们为 Colab Pro+ 支付了费用,但这是必要的,这是不可接受的。他们的产品根本不像宣传的那样有效,我们没有追索权。如果有人发现了更好的解决方案(有效),我会洗耳恭听。

This happens to me as well and the best solution I've been able to come up with (which works inconsistently, but seems to help a lot more that otherwise) is to prevent my screen from locking. Let me explain.

I run Colab Pro+ on a Macbook laptop, and the battery-saving settings are ordinarily such that the screen locks when the laptop is idle for 5 mins, the lockscreen comes up. I noticed that for some reason Colab was much more likely to freeze and disconnect if I was away from the laptop than if I were working on it for hours as it ran, so to superficially mimic this, I changed my settings to never lock the screen. And I then I realized that with these settings Colab would freeze and disconnect much less frequently, and I could successfully let it run overnight and check it in the morning. [Edit: let me clarify that I have not tried this while closing the browser. So I can attest to the efficacy of my method if you leave the browser open].

I have to say though, that it's been bad for my laptop and it's unacceptable that this is necessary despite what we pay for Colab Pro+. Their product simply does not work as advertised and we have no recourse. If anyone has discovered a better solution (that works) I'm all ears.

感情旳空白 2025-01-24 03:56:26

对我有用的另一种方法是让导航器以一定的间隔单击。您可以将以下脚本添加到控制台。它与 Colab Pro 和 Pro+ 配合良好,但请记住,如果您使用免费帐户,Colab 将在几个小时后断开您的连接。

要打开控制台,请按 F12ctrl/command+shift+i

function Clicking(){
    console.log("Clicking");
    document.querySelector("colab-connect-button").click()
}
setInterval(Clicking,50000)

An alternative that works for me is to make the navigator click with some interval. You can add the following script to the console. It works well with Colab Pro and Pro+ but remember that, if you use the free account, Colab will disconnect you after some hours.

To open the console press F12 or ctrl/command+shift+i.

function Clicking(){
    console.log("Clicking");
    document.querySelector("colab-connect-button").click()
}
setInterval(Clicking,50000)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文