Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 2.24 KB

colab_gcp_tpu_tutorial.md

File metadata and controls

30 lines (24 loc) · 2.24 KB

Tips and tricks on using Colab, Google Cloud Platform and TPUs

Authors: murphyk, mjsML, gerdm, summer 2021.

Links

Random stuff

# 2x 2 chips (4 cores) per process:
os.environ["TPU_CHIPS_PER_HOST_BOUNDS"] = "1,2,1"
os.environ["TPU_HOST_BOUNDS"] = "1,1,1"
# Different per process:
os.environ["TPU_VISIBLE_DEVICES"] = "0,1" # Change to "2,3" for the second machine