Created
November 7, 2018 16:13
-
-
Save fxfactorial/37c033873917d62883be5d92e1aa2b7a 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 IMAGE_FAMILY="pytorch-1-0-cu92-experimental" # or "pytorch-1-0-cpu-experimental" for non-GPU instances | |
export ZONE="us-west2-b" # budget: "us-west1-b" | |
export INSTANCE_NAME="my-fastai-instance" | |
export INSTANCE_TYPE="n1-highmem-8" # budget: "n1-highmem-4" | |
# budget: 'type=nvidia-tesla-k80,count=1' | |
gcloud compute instances create $INSTANCE_NAME \ | |
--zone=$ZONE \ | |
--image-family=$IMAGE_FAMILY \ | |
--image-project=deeplearning-platform-release \ | |
--maintenance-policy=TERMINATE \ | |
--accelerator="type=nvidia-tesla-p4,count=1" \ | |
--machine-type=$INSTANCE_TYPE \ | |
--boot-disk-size=200GB \ | |
--metadata="install-nvidia-driver=True" \ | |
--preemptible |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment