Skip to content

Instantly share code, notes, and snippets.

@b0noI
Created July 31, 2018 16:11
Show Gist options
  • Save b0noI/80efbadf1ea1b6e22218053814e668d9 to your computer and use it in GitHub Desktop.
Save b0noI/80efbadf1ea1b6e22218053814e668d9 to your computer and use it in GitHub Desktop.
export IMAGE_FAMILY="pytorch-latest-cu92"
export ZONE="us-west1-b"
export INSTANCE_NAME="my-instance"
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=1' \
--metadata='install-nvidia-driver=True'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment