Skip to main content

TPU Monitoring Dashboard

Project description

TPU-TOP

A modern, terminal-based monitoring dashboard for Google Cloud TPUs, designed to give you real-time visibility into your machine's performance.

PyPI version GitHub Repository | PyPI Project

Project Overview

tpu-top provides a visual, interactive TUI (Terminal User Interface) to monitor system and TPU resources. It is specifically tailored for high-performance computing environments like GKE (Google Kubernetes Engine) where deep learning models are trained on TPUs.

tpu-top UI

What You Can See

  • TPU Memory & Utilization: Real-time memory usage and duty cycle for each TPU device.
  • History Timebars: Visual graphs with timeline markers showing the history of CPU, RAM, and TPU usage.
  • PIDs per TPU: A dedicated process list showing which PIDs are utilizing specific TPU devices.
  • Active HLO Ops: Current HLO operations executing on each TPU core.

Installation

From PyPI (Recommended)

pip install tpu-top

From Source

You can also install tpu-top directly from the source directory.

Prerequisites

Ensure you have Python 3.12+ and access to a Cloud TPU environment. The tool relies on tpu-info to communicate with the TPU driver.

Standard Source Install

Navigate to the project root directory and run:

pip install .

Developer Install

If you are making modifications and want them to reflect immediately:

pip install -e .

How to Use

Once installed, you can launch the dashboard from anywhere in your terminal:

tpu-top

Running Tests

To validate changes, run the unit tests:

python -m unittest test_main.py

(Note: If testing inside a GKE container, ensure dependencies are installed in your target environment).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tpu_top-0.1.4.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tpu_top-0.1.4-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file tpu_top-0.1.4.tar.gz.

File metadata

  • Download URL: tpu_top-0.1.4.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for tpu_top-0.1.4.tar.gz
Algorithm Hash digest
SHA256 aa4a85c6de79d2cadfcc085c259fa9967795f45716d08c3ac4eb3525b3732f1c
MD5 5b74277538983749f3213d0cfef0a508
BLAKE2b-256 2a906bf700dd3b62ea14feffd1c1113634b1aae1fd32a01dd763eec9419864bd

See more details on using hashes here.

File details

Details for the file tpu_top-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: tpu_top-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for tpu_top-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0be3f640a69a2b95b92c26b24826e7b34fb5752acfb42c523364b576412b6e8c
MD5 4a5b1d5d9720e38ed5a8d129d583081a
BLAKE2b-256 a4a9bd9f7d92871b291045c09fae7f9f817956d7040a506d36cef47724181120

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page