Skip to content

Instantly share code, notes, and snippets.

@yokolet
Last active October 30, 2019 07:44
Show Gist options
  • Save yokolet/b13272ac6bb4f7b2a7abdaddd5ed175c to your computer and use it in GitHub Desktop.
Save yokolet/b13272ac6bb4f7b2a7abdaddd5ed175c to your computer and use it in GitHub Desktop.
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