Last active
April 5, 2019 16:47
-
-
Save b0noI/7c803b8754879e4b5d35537ac0212e5b to your computer and use it in GitHub Desktop.
This file contains hidden or 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-cu100" # or put any required | |
| export ZONE="us-west1-b" | |
| export INSTANCE_NAME="notebookexecutor" | |
| export INSTANCE_TYPE="n1-standard-8" | |
| export INPUT_NOTEBOOK="gs://my-bucket/test.ipynb" | |
| export OUTPUT_NOTEBOOK="gs://my-bucket/" | |
| 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=200GB \ | |
| --scopes=https://www.googleapis.com/auth/cloud-platform \ | |
| --metadata="input_notebook=$INPUT_NOTEBOOK,output_notebook=$OUTPUT_NOTEBOOK,startup-script-url=https://raw.githubusercontent.com/gclouduniverse/gcp-notebook-executor/master/notebook_executor.sh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment