Skip to main content

Minimal curses dashboard for monitoring AMD GPUs via amd-smi

Project description

picomon

picomon is a tiny terminal dashboard for monitoring AMD GPUs via amd-smi. It polls basic metrics (gfx activity, memory usage, and power) and renders them as sparklines inside a curses UI so you can keep an eye on accelerators without launching a full GUI stack.

Homepage: https://omarkamali.github.io/picomon/

Why?

I like nvtop but the asserts kept crashing it on some AMD devices. picomon is a lightweight alternative that just polls metrics and renders them as sparklines, trading off ironclad accuracy checks for more reliability.

It hasn't been tested on all AMD GPUs. If it fails to run on your GPU, please open a new issue using this template.

Requirements

  • Python 3.9 or newer
  • The amd-smi CLI available on your PATH (if your GPU is properly setup then you already have this)
  • An ANSI-compatible terminal for the curses UI

Installation

pip install picomon

Usage

After installation, run the CLI:

$ picomon

┌──────────────────────────────────────────┐  ┌──────────────────────────────────────────┐
│ GPU 0  GFX  42%  UMC  21%                │  │ GPU 1  GFX  78%  UMC  66%                │
│ PWR 135/250W (54%)  VRAM 10.0/16.0GB 62% │  │ PWR 210/250W (84%)  VRAM 14.5/16.0GB 90% │
│                                          │  │                                          │
│ GFX ▁▂▂▃▄▄▅▆▆▇█▇▆▅▄▃▂▁                   │  │ GFX ▂▃▄▅▆▇██▇▆▅▄▂▂▃▅▆                    │
│ PWR ▁▁▂▂▃▄▄▅▆▇██▇▆▅▄▂▁                   │  │ PWR ▂▂▃▄▅▆▇██▇▆▅▄▃▂▂▃                    │
│ VRM ▁▁▂▂▃▄▄▅▆▇███▇▆▅▄▂                   │  │ VRM ▂▃▄▅▆▆▇███▇▆▅▄▃▂▂▃                   │
└──────────────────────────────────────────┘  └──────────────────────────────────────────┘

Key bindings:

  • q to quit

Common flags:

  • --update-interval (seconds between refreshes, default 3)
  • --history-minutes (rolling window to retain, default 30)
  • --static-timeout / --metric-timeout (seconds to wait for amd-smi responses)

These correspond to the PicomonConfig dataclass, so you can also import and reuse picomon as a library:

from picomon import PicomonConfig, run_monitor

config = PicomonConfig(update_interval=1.5)
run_monitor(["--update-interval", str(config.update_interval)])

Development

  • Run tests with pytest (see the CI workflow for reference)
  • Use scripts/publish.py to cut a GitHub release once tags are in place

License

MIT © Omar Kamali

Source: https://github.com/omarkamali/picomon

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

picomon-0.1.2.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

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

picomon-0.1.2-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file picomon-0.1.2.tar.gz.

File metadata

  • Download URL: picomon-0.1.2.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for picomon-0.1.2.tar.gz
Algorithm Hash digest
SHA256 94f9af1333382caeddb11c9e16c1bd5c60d5ca7936af317f1b0ffb83dbd8bb3c
MD5 8daa6f384c44416b39bd7c553b5b3060
BLAKE2b-256 671555f93e3ce6fc7e9b70f776e914ecfd48a838484b852ace7b8af367019598

See more details on using hashes here.

Provenance

The following attestation bundles were made for picomon-0.1.2.tar.gz:

Publisher: publish.yml on omarkamali/picomon

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file picomon-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: picomon-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for picomon-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2f6b661c00b749d948cd68a584eafaf4259c25bb4ba9d37ed9229ceb78e05b9e
MD5 932565ed8df4dac6bc0b828497681045
BLAKE2b-256 89f191392cb480d722dd4c872395ad44f6fe19d844f4bfa8f7e7783f3f72ffb6

See more details on using hashes here.

Provenance

The following attestation bundles were made for picomon-0.1.2-py3-none-any.whl:

Publisher: publish.yml on omarkamali/picomon

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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