jupyter notebook 中的 Tensorflow 2.0 beta GPU 运行,但 google colab 中没有
Tensorflow 2.0 beta GPU running in jupyter notebook, but not in google colab
我正在使用 tensorflow 2.0 beta,虽然我通过一些 youtube 教程设法让我的 GPU 在 anaconda 上工作,但我无法在 google colab 中获得我的 gpu 运行ning。我知道 google 可以选择从他们的其中一台服务器启用 gpu,但我的 GTX 1070 速度要快得多,我需要 运行 关闭 colab 而不仅仅是 Jupyter。
所以我读 the documentation 时像个好孩子,我认为我唯一可能做错的是我的路径设置,下面有截图。
我忠实地遵循了几个不同的 youtube 教程,直到最后一个 here 给了我一种将它安装到 jupyter 的方法。这很好,但我也需要它 运行 on google colab。
我从星期五开始就一直在尝试这个,现在是星期二,我为此失去了理智。帮助我计算器,你是我唯一的希望。
如果您可以在自己的 Jupyter 服务器上 运行 获取它,那么您可以将 colab 指向该本地服务器。
这里有完整的说明:https://research.google.com/colaboratory/local-runtimes.html 但经过编辑的亮点是:
- 安装jupyter_http_over_ws:
pip install jupyter_http_over_ws
jupyter serverextension enable --py jupyter_http_over_ws
- 启动允许 colab 域的本地服务器:
jupyter notebook \
--NotebookApp.allow_origin='https://colab.research.google.com' \
--port=8888 \
--NotebookApp.port_retries=0
- 在 colab 中单击 'connect to local runtime'
我正在使用 tensorflow 2.0 beta,虽然我通过一些 youtube 教程设法让我的 GPU 在 anaconda 上工作,但我无法在 google colab 中获得我的 gpu 运行ning。我知道 google 可以选择从他们的其中一台服务器启用 gpu,但我的 GTX 1070 速度要快得多,我需要 运行 关闭 colab 而不仅仅是 Jupyter。
所以我读 the documentation 时像个好孩子,我认为我唯一可能做错的是我的路径设置,下面有截图。
我忠实地遵循了几个不同的 youtube 教程,直到最后一个 here 给了我一种将它安装到 jupyter 的方法。这很好,但我也需要它 运行 on google colab。
我从星期五开始就一直在尝试这个,现在是星期二,我为此失去了理智。帮助我计算器,你是我唯一的希望。
如果您可以在自己的 Jupyter 服务器上 运行 获取它,那么您可以将 colab 指向该本地服务器。
这里有完整的说明:https://research.google.com/colaboratory/local-runtimes.html 但经过编辑的亮点是:
- 安装jupyter_http_over_ws:
pip install jupyter_http_over_ws
jupyter serverextension enable --py jupyter_http_over_ws
- 启动允许 colab 域的本地服务器:
jupyter notebook \
--NotebookApp.allow_origin='https://colab.research.google.com' \
--port=8888 \
--NotebookApp.port_retries=0
- 在 colab 中单击 'connect to local runtime'