tpu-info CLI Tool

0.10.0 · active · verified Sat Apr 11

tpu-info is a command-line interface (CLI) tool designed for detecting Cloud TPU devices and extracting runtime metrics from the `libtpu` library. These metrics include memory usage and duty cycle, providing insights into TPU utilization. It supports both static, one-time snapshots and a live streaming mode for continuous monitoring. The current version is 0.10.0, released on March 17, 2026, indicating an active development and release cadence.

Warnings

Install

Quickstart

To use `tpu-info`, you must have an active workload running on your Cloud TPU with a supported machine learning framework (e.g., JAX or PyTorch/XLA). Once a workload is active, simply execute `tpu-info` in your terminal to get a one-time snapshot of the metrics. You can add the `--streaming` flag for continuous monitoring.

# First, ensure a JAX or PyTorch/XLA workload is running on your Cloud TPU.
# Example with JAX (run this in a Python environment connected to TPU):
# import jax
# import jax.numpy as jnp
# t = jnp.ones((1000, 1000)) # This creates an active workload on TPU

# Then, on the same machine, open a new terminal and run:
tpu-info

view raw JSON →