Skip to content

Instantly share code, notes, and snippets.

@tutaf
tutaf / 1create.sh
Created December 12, 2023 13:32 — forked from Victordmz/1create.sh
How to launch Colab on a GCE spot instance (with Tesla T4 GPU) -- updated april 2023
gcloud beta compute instances create colab-1-vm \
--machine-type=e2-highmem-4 \
--zone=<INSERT_ZONE> \
--accelerator="type=nvidia-tesla-t4,count=1" \
--provisioning-model=SPOT \
--boot-disk-size=200GB \
--boot-disk-type=pd-balanced \
--instance-termination-action=DELETE \
--image=https://www.googleapis.com/compute/v1/projects/colab-marketplace-image-public/global/images/colab-mp-20230410 \
--network=https://www.googleapis.com/compute/v1/projects/<INSERT_PROJECT_ID>/global/networks/default \