gcp 试用 gpu_如何在GCP上创建启用GPU的VM来训练您的神经网络

gcp 试用 gpu

The biggest boom in deep learning happened back in 2009, when neural networks were trained with NVIDIA GPUs. Training neural networks with capable GPU(s) is particularly helpful in cutting down the time it takes for training, so it is an absolute necessity to be able to do so. Unfortunately, even if a machine has capable GPU(s), the necessary software and packages must be installed before training can commence. When I first started training neural networks on cloud-based virtual machine (VM) instances, I had a difficult time installing the correct software and packages and spent way too much time until everything finally worked. The purpose of this guide is to help anyone who would like to train his/her neural networks on a cloud-based VM instance on the Google Cloud Platform (GCP). When you go through the guide, please do not overlook the notes I have written. They contain some important information.

深度学习中最大的繁荣发生在2009年,当时使用NVIDIA GPU对神经网络进行了培训。 使用功能强大的GPU训练神经网络对减少训练所需的时间特别有帮助,因此绝对有必要这样做。 不幸的是,即使一台机器具有功能强大的GPU,也必须先安装必要的软件和软件包,然后才能开始培训。 当我第一次开始在基于云的虚拟机(VM)实例上训练神经网络时,我很难安装正确的软件和软件包,并且花了太多时间直到一切终于正常工作。 本指南的目的是帮助希望在Google Cloud Platform(GCP)上基于云的VM实例上训练其神经网络的任何人。 当您阅读指南时,请不要忽略我写的笔记。 它们包含一些重要信息。

Step 1: Initial GCP Account Setup

第1步:初始GCP帐户设置

At the time of writing this guide, any new GCP customer gets a $300 credit in his/her account, so I recommend creating a new Gmail account that will be linked to your GCP account. This GCP account will be free for 12 months from the moment you start using it. After you sign up for a new Gmail account, go to GCP (https://cloud.google.com/) and click on “Go to console”. Follow the prompts and enter the necessary information to use GCP. You do need to enter a valid credit card number. Unless you go over the $300 credit, your credit card will not be charged*.

在撰写本指南时,任何新的GCP客户都会在其帐户中获得$ 300的信用额,因此我建议创建一个新的Gmail帐户,该帐户将与您的GCP帐户相关联。 自您开始使用以来,此GCP帐户将在12个月内免费。 注册新的Gmail帐户后,请转到GCP( https://cloud.google.com/ ),然后单击“转到控制台”。 按照提示输入必要的信息以使用GCP。 您确实需要输入一个有效的信用卡号。 除非您超过$ 300的信用额度,否则不会从您的信用卡中收取费用*。

*NOTE: Make sure that you do not over-utilize your GCP account, as the free credit can be gone very quickly.

*注意:请确保您不会过度使用GCP帐户,因为免费信用额会很快流失。

Step 2: Creating a VM Instance

步骤2:建立VM执行个体

To create a VM instance, click on the top left button in the GCP console page:

要创建VM实例,请在GCP控制台页面中单击左上方的按钮:

Image for post

Go to “Compute Engine” and click on “VM Instances”:

转到“计算引擎”,然后单击“虚拟机实例”:

Image for post

In your initial setup, you will have to enable billing on your account, so click on “Enable Billing”:

在初始设置中,您将必须在帐户上启用结算,因此请点击“启用结算”:

Image for post

After billing is enabled, click on “Create”:

启用结算后,点击“创建”:

Image for post

The following screen will appear:

将出现以下屏幕:

Image for post

Here, you can see how much free trial credits you have remaining and the monthly and hourly estimates for the machine you are about to create. When creating a VM, set it up as you would like. Remember, the more powerful the VM is, the more costly it will be to use. In our case, let’s create a simple VM. To add a GPU to your machine, click on “CPU platform and GPU” to expand these options.**

在这里,您可以查看剩余的免费试用信用额度以及将要创建的计算机的每月和每小时估算值。 创建虚拟机时,请根据需要进行设置。 请记住,VM功能越强大,使用成本就越高。 在我们的例子中,让我们创建一个简单的VM。 要将GPU添加到您的计算机,请单击“ CPU平台和GPU”以展开这些选项。**

**IMPORTANT NOTE: You do need to create some activity in your account to be able to create a machine with GPU(s) on it, as you need to submit a request to change your GPU quota in your account. To do so, simply create a VM or two and leave it turned on for a few days, so that there will be some activity on the account. You do not really need to use these instances. You only need them to be “turned on”. The account will incur some costs as a result, but these costs will be deducted from your free credit. To see how you can increase the GPU quota on your account, go to the bottom of the guide.

**重要提示:您确实需要在帐户中创建一些活动,以便能够创建带有GPU的计算机,因为您需要提交更改帐户中GPU配额的请求。 为此,只需创建一个或两个VM,然后将其打开几天,以便该帐户上有一些活动。 您实际上并不需要使用这些实例。 您只需要将它们“打开”即可。 因此,该帐户会产生一些费用,但是这些费用将从您的免费信用中扣除。 要了解如何增加帐户的GPU配额,请转到指南底部。

To add a GPU to your instance, simply click on “Add GPU”:

要将GPU添加到您的实例,只需单击“添加GPU”:

Image for post

Select the GPU type and number you desire to use (each GPU has different merits, so please research the different types to find more information about them). For now, we will select “NVIDIA Tesla P4” and “1”.***

选择您想要使用的GPU类型和编号(每个GPU都有不同的优

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值