AI Cloud Architect

A Developer's Guide to Debugging JAX on Cloud TPUs: Essential Tools and Techniques

GoogleHow-to by Zhenzhen (Jen) Tan, Brian Kang and Ashish NarasimhamGoogle Developers Blog

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

A Google Cloud guide to debugging JAX on Cloud TPUs, covering libtpu and JAX components, verbose runtime logs, the TPU Monitoring Library and the tpu-info tool.

Who it is for

Engineers running JAX training or inference on Cloud TPU VMs who need to find out what the TPU runtime is doing.

Key points

  • Libtpu logs are written to /tmp/tpu_logs/tpu_driver.INFO on each TPU VM and can be copied from all workers with a script.
  • The TPU Monitoring Library ships with jax[tpu] and exposes metrics such as duty_cycle_pct.
  • tpu-info gives a real-time view of TPU memory and utilization, similar to nvidia-smi.
  • The post says HLO dumps and XProf profiling will be covered in a later part of the series.

Timeline

  1. What it explainsBuilding production AI on Google Cloud TPUs with JAX · Google · Announcement
  2. This postA Developer's Guide to Debugging JAX on Cloud TPUs: Essential Tools and Techniques

Go deeper