如何从终端运行Google Colab? [英] How to run google colab from terminal?

查看:753
本文介绍了如何从终端运行Google Colab?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在google colab中运行深度学习模型,并且可以在colab笔记本上正常工作.问题在于,随着在Cloud Colab Notebook中进行深度学习模型的训练的进行,我自己的计算机的cpu和内存使用率也开始上升.仅colab笔记本浏览器窗口的RAM使用量就超过500 MB,并且随着培训的进行而不断攀升.

I am running a deep learning model in google colab and it works fine with colab notebook. The problem is as the training of deep learning model progresses in the cloud colab notebook, my own computers cpu and memory usage also starts to go up. The RAM usage for the colab notebook browser window alone is more than 500 MB and it keeps climbing as the training progresses.

在Google colab中,我们必须保持打开运行笔记本的状态以训练模型,否则我们将丢失所有以前的工作,并且它将停止训练.我可以从终端窗口而不是浏览器运行google colab吗?有什么方法可以迫使google colab仅在云中运行,即在不打开计算机的情况下运行笔记本?

In google colab we have to keep open our running notebooks to train the model else we will lose all our previous work and it stops training. Can I run google colab from my terminal window instead of browser? Is there any way to force google colab to run in the cloud alone, that is, to run the notebook without opening the computer?

推荐答案

此处提供了本地执行指令:

Instructions for local execution are available here:

http://research.google.com/colaboratory/local-runtimes.html

如果将它们与SSH隧道结合使用,则可以在自己的GCE VM,AWS或其他任何您喜欢的地方运行后端.

If you combine these with an SSH tunnel, you can run the backend on your own GCE VMs, AWS, or anywhere else you like.

这篇关于如何从终端运行Google Colab?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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