Skip to content

Instantly share code, notes, and snippets.

@b0noI
Last active December 13, 2018 04:58
Show Gist options
  • Save b0noI/a20667e69db9d4713d075c9e6d208c3e to your computer and use it in GitHub Desktop.
Save b0noI/a20667e69db9d4713d075c9e6d208c3e to your computer and use it in GitHub Desktop.
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
@yaboo-oyabu
Copy link

--project=deeplearning-platform should be [your-project-name]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment