Skip to content

Instantly share code, notes, and snippets.

@b0noI
Last active August 8, 2018 17:22
Show Gist options
  • Save b0noI/1b8331a7cb7a218ade3199b323bc5465 to your computer and use it in GitHub Desktop.
Save b0noI/1b8331a7cb7a218ade3199b323bc5465 to your computer and use it in GitHub Desktop.
export PROJECT_NAME="" # put your project name
export INSTANCE_NAME="" # put the instance name
# pick the zone that is supported by tpu:
# https://cloud.google.com/tpu/docs/regions
export ZONE="us-central1-b"
gcloud compute instances create $INSTANCE_NAME \
--project=$PROJECT_NAME \
--zone=$ZONE \
--machine-type=n1-standard-2 \
--subnet=default \
--image-family=tf-latest-cpu \
--image-project=deeplearning-platform-release \
--boot-disk-size=30GB \
--boot-disk-type=pd-ssd \
--scopes=cloud-platform
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment