使用没有GPU的深度学习虚拟机?

huangapple go评论59阅读模式
英文:

using Deep Learning VM without GPU?

问题

我正在尝试学习如何在Google Cloud上使用ML/PyTorch。PyTorch文档建议使用Deep Learning VM,但我的GPU配额为0,即使我的配额允许,我也不想每月花费$300只是为了完成一些PyTorch教程。

我如何将此VM配置为仅使用CPU?还是有另一个类似的“点击部署”PyTorch设置,不需要GPU?

英文:

I'm trying to learn how to do ML/PyTorch on Google Cloud. The PyTorch docs recommend the Deep Learning VM, but I have a GPU quota of 0, and even if my quota allowed it, I don't really want to spend $300/month just to go through some PyTorch tutorials.

How can I configure this VM for CPU only? Or is there another, similar "click to deploy" PyTorch setup that does not require a GPU?

答案1

得分: 1

以下是翻译好的内容:

  1. 使用 Vertex AI 预配置的虚拟机
    前往工作台 - 启用 API - 新建实例 - 用户管理 - PyTorch
    它们价格便宜,并且配备了所有所需的库。您无需添加 GPU。

  2. 使用 Google Cloud Skills Boost
    您也可以支付每月 29 美元的费用,以获得使用 Vertex AI 的许多 LABs 的权限。但您需要找到 PyTorch LABs。

  3. 您可以前往 Compute Engine 并创建一个新的虚拟机,将虚拟机的映像更改为深度学习映像。您需要进行 SSH,并安装 Jupyter。

对于所有这些选项,成本将取决于您选择的核心数量。对我来说,Vertex AI 更合适,因为它已安装了 Jupyter 笔记本,无需 SSH,因为它具有 JupyterLab。

注意:N1 实例是最便宜的。

英文:

There are three ways you can accomplish your task:

  1. Use Vertex AI preconfigured VMs
    Go to Workbench - Enable API - New Instance - User Managed - PyTorch
    They are cheap and come with all libraries needed. You don't need to add GPUs.

  2. Use Google Cloud Skills Boost
    You can also pay a monthly fee of 29 USD to have access to many LABs using Vertex AI. But you will have to find PyTorch LABs.

  3. You can go to Compute Engine and create a new VM, changing the image of the VM to a Deep Learning one. You will need to SSH and also install Jupyter.

For all of them, the cost will depend upon the number of cores you choose. For me, Vertex AI is more adequate, as you already have Jupyter notebooks installed and does not need to SSH, as it has JupyterLab.

Note: N1 instances are the cheapest.

答案2

得分: 0

Google Cloud提供了一个名为深度学习VM镜像的操作系统(图像指的是Google Cloud操作系统的概念)。
此操作系统预先安装了TensorFlow、Pytorch等。

您可以根据需要创建具有所需机器类型、GPU、磁盘或网络配置的VM,这与您选择的操作系统无关。

您混淆了硬件和软件概念。

您可以使用Google Cloud Compute API创建一个深度学习VM,也可以使用(Vertex)使用Notebooks API创建一个VM。两者使用相同的底层操作系统。

https://cloud.google.com/deep-learning-vm/docs/

英文:

Google Cloud provide an Operating System which is called Deep Learning VM images (An image refers to the Google Cloud concept of an Operating system).
This Operating system pre-installs TensorFlow, Pytorch, etc.

You create a VM with your desired machine type, GPU, disks or network configuration you need, this is independent of the OS you select.

You are mixing up Hardware and Software concepts.

You can create a Deep Learning VM using Google Cloud Compute API or you can create a VM by using (Vertex) which uses Notebooks API. Both use the same underlying OS.

https://cloud.google.com/deep-learning-vm/docs/

huangapple
  • 本文由 发表于 2023年6月11日 23:10:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/76451102.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定