Skip to content

Instantly share code, notes, and snippets.

@b0noI
Created March 6, 2019 17:00
Show Gist options
  • Save b0noI/6f5b0df80243655f16daf448f6cd9adf to your computer and use it in GitHub Desktop.
Save b0noI/6f5b0df80243655f16daf448f6cd9adf to your computer and use it in GitHub Desktop.
export IMAGE_FAMILY="tf-latest-gpu-experimental" # or tf-latest-cpu-experimental
export ZONE="us-west1-b"
export INSTANCE_NAME="my-instance"
export INSTANCE_TYPE="n1-standard-8"
gcloud compute instances create $INSTANCE_NAME \
--zone=$ZONE \
--image-family=$IMAGE_FAMILY \
--image-project=deeplearning-platform-release \
--maintenance-policy=TERMINATE \
--accelerator='type=nvidia-tesla-p100,count=1' \
--machine-type=$INSTANCE_TYPE \
--boot-disk-size=120GB \
--scopes=https://www.googleapis.com/auth/cloud-platform \
--metadata='install-nvidia-driver=True,proxy-mode=project_editors'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment