Last active
December 13, 2018 04:58
-
-
Save b0noI/a20667e69db9d4713d075c9e6d208c3e 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 INSTANCE_TEMPLATE_NAME="tf-inferance-template" | |
export IMAGE_FAMILY="tf-latest-gpu" | |
gcloud beta compute --project=deeplearning-platform instance-templates create $INSTANCE_TEMPLATE_NAME \ | |
--machine-type=n1-standard-8 \ | |
--maintenance-policy=TERMINATE \ | |
--accelerator=type=nvidia-tesla-v100,count=1 \ | |
--min-cpu-platform=Intel\ Skylake \ | |
--tags=http-server,https-server \ | |
--image-family=$IMAGE_FAMILY \ | |
--image-project=deeplearning-platform-release \ | |
--boot-disk-size=100GB \ | |
--boot-disk-type=pd-ssd \ | |
--boot-disk-device-name=$INSTANCE_TEMPLATE_NAME \ | |
--metadata startup-script-url=gs://dl-platform-public-content/blog-posts/t4-release/start_agent_and_inf_server_4.sh,install-nvidia-driver=True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
--project=deeplearning-platform should be [your-project-name]