Skip to content
Advertisement

Google Colab TPU Version

How do I print in Google Colab which TPU version I am using and how much memory the TPUs have?

With I get the following Output

JavaScript

Output

JavaScript

I want something like [IN] print('tpu.version:', tpu.version) [OUT] tpu.version: Cloud TPU v3.

I hope someone can help me. Looking forward to an answer!

Advertisement

Answer

This answer should have what you’re looking for.


JavaScript

Output looks like:

JavaScript

TPUv2 has 8GB per-core and TPUv3 has 16GB HBM per-core (https://cloud.google.com/tpu).

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement