Last active
April 8, 2019 21:32
-
-
Save michaelwsherman/e366d58f470bc0322feb05c33d9a4916 to your computer and use it in GitHub Desktop.
Create a Google Cloud Notebook for a Python IDE
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="tf-latest-gpu" | |
export ZONE="us-west1-b" | |
export INSTANCE_NAME="my-instance" | |
export INSTANCE_TYPE="n1-standard-4" | |
gcloud compute instances create $INSTANCE_NAME \ | |
--zone=$ZONE \ | |
--image-family=$IMAGE_FAMILY \ | |
--machine-type=$INSTANCE_TYPE \ | |
--image-project=deeplearning-platform-release \ | |
--maintenance-policy=TERMINATE \ | |
--accelerator='type=nvidia-tesla-v100,count=1' \ | |
--no-boot-disk-auto-delete \ | |
--boot-disk-device-name=$INSTANCE_NAME-disk \ | |
--boot-disk-size=500GB \ | |
--boot-disk-type=pd-ssd \ | |
--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