Last active
October 30, 2019 07:44
-
-
Save yokolet/b13272ac6bb4f7b2a7abdaddd5ed175c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export INSTANCE_NAME="my-tf2-instance" | |
export ZONE="us-central1-c" | |
export IMAGE_FAMILY="tf2-latest-gpu" | |
export INSTANCE_TYPE="n1-highmem-4" | |
export ACCELERATOR="type=nvidia-tesla-k80,count=1" | |
gcloud compute instances create $INSTANCE_NAME \ | |
--zone=$ZONE \ | |
--image-family=$IMAGE_FAMILY \ | |
--image-project=deeplearning-platform-release \ | |
--machine-type=$INSTANCE_TYPE \ | |
--accelerator=$ACCELERATOR \ | |
--metadata="install-nvidia-driver=True" \ | |
--boot-disk-size=200GB \ | |
--maintenance-policy=TERMINATE \ | |
--preemptible |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment