如何在GCP上指定可抢占的GPU深度学习虚拟机 [英] How to specify preemptible GPU Deep Learning Virtual Machine on GCP

查看:180
本文介绍了如何在GCP上指定可抢占的GPU深度学习虚拟机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道如何在GCP上指定可抢占的GPU深度学习VM

I can't figure out how to specify preemptible GPU Deep Learning VM on GCP

我使用的方法是:

export IMAGE_FAMILY="tf-latest-gpu"
export ZONE="europe-west4-a "
export INSTANCE_NAME="deeplearning"

gcloud compute instances create $INSTANCE_NAME \
  --zone=$ZONE \
  --image-family=$IMAGE_FAMILY \
  --image-project=deeplearning-platform-release \
  --maintenance-policy=TERMINATE \
  --accelerator='type=nvidia-tesla-v100,count=2' \
  --metadata='install-nvidia-driver=True'

谢谢!

推荐答案

您可以通过添加-preemptible gcloud命令选项,使用GPU创建可抢占式Compute Engine实例。按照您的示例,将是:

You can create a preemptible Compute Engine instance with GPU by adding the --preemptible gcloud command option. As per your example, that would be:

export IMAGE_FAMILY="tf-latest-gpu"
export ZONE="europe-west4-a "
export INSTANCE_NAME="deeplearning"

gcloud compute instances create $INSTANCE_NAME \
  --zone=$ZONE \
  --image-family=$IMAGE_FAMILY \
  --image-project=deeplearning-platform-release \
  --maintenance-policy=TERMINATE \
  --accelerator type=nvidia-tesla-v100,count=2 \
  --metadata='install-nvidia-driver=True'
  --preemptible

请参见文档此处有关可用选项的更多详细信息。

See documentation here and here for more details on available options.

这篇关于如何在GCP上指定可抢占的GPU深度学习虚拟机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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