Skip to content

Instantly share code, notes, and snippets.

@b0noI
Last active August 21, 2019 16:11
Show Gist options
  • Save b0noI/db58cc3ad296bd508816486820c1e7d4 to your computer and use it in GitHub Desktop.
Save b0noI/db58cc3ad296bd508816486820c1e7d4 to your computer and use it in GitHub Desktop.
export IMAGE_FAMILY="pytorch-latest-gpu"
export ZONE="us-west1-b"
export INSTANCE_NAME="pytorch-colab-backend"
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