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.
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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa4a85c6de79d2cadfcc085c259fa9967795f45716d08c3ac4eb3525b3732f1c
|
|
| MD5 |
5b74277538983749f3213d0cfef0a508
|
|
| BLAKE2b-256 |
2a906bf700dd3b62ea14feffd1c1113634b1aae1fd32a01dd763eec9419864bd
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0be3f640a69a2b95b92c26b24826e7b34fb5752acfb42c523364b576412b6e8c
|
|
| MD5 |
4a5b1d5d9720e38ed5a8d129d583081a
|
|
| BLAKE2b-256 |
a4a9bd9f7d92871b291045c09fae7f9f817956d7040a506d36cef47724181120
|