AI Cloud Architect

Supercharge ML performance on xPUs with the new XProf profiler and Cloud Diagnostics XProf library

GoogleHow-to by Rajesh AnantharamanGoogle Cloud Blog (developers and practitioners)

Optimize ML model performance on Google Cloud with the new XProf profiler and Cloud Diagnostics XProf library. Identify bottlenecks, leverage advanced features, and collaborate seamlessly.

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

AI: Summary

What it is

XProf, Google's ML profiler, is now open source under OpenXLA with new tools, and the Cloud Diagnostics XProf library hosts TensorBoard profiles on a GCP VM or GKE pod.

Who it is for

ML engineers running JAX, PyTorch/XLA or TensorFlow workloads on TPUs or GPUs on Google Cloud who need to find performance bottlenecks.

Key points

  • The Cloud Diagnostics XProf library creates a VM (default c4-highmem-8) or GKE pod running TensorBoard, with profiles read from Cloud Storage.
  • Pallas kernels show details in XProf only when the author passes a pl.CostEstimate to pallas_call.
  • CUDA Graph tracing needs an XLA flag and a ProfilerOptions setting.
  • Google says profiles of about 1GB load in a few minutes on the default VM, based on its own benchmarks.

The same at other vendors