Skip to main content

A terminal UI for monitoring neural network training in real time

Project description

gradtop

A terminal UI for monitoring neural network training in real time. Inspired by htop.

What it shows

  • Loss curve over training steps
  • Per-layer update/data ratio (log10 scale) — the ratio of gradient updates to weight magnitudes, following Karpathy's diagnostic from the Neural Networks: Zero to Hero series. Values should hover around -3. Above -2 means large updates, below -4 means vanishing gradients.

Installation

pip install gradtop

Development

If you want to build from source, you need Rust and maturin:

git clone https://github.com/yourname/gradtop
cd gradtop
pip install maturin
maturin develop

Usage

import gradtop
from gradtop import gradtop

with GradTop(model, optimizer, every_n_steps=10) as monitor:
    for epoch in range(epochs):
        for data, target in train_loader:
            optimizer.zero_grad()
            output = model(data)
            loss = criterion(output, target)
            loss.backward()
            optimizer.step()
            monitor.tick(loss.item())

Press any key to close the TUI. The terminal is restored automatically on exit.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

gradtop-0.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (554.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

gradtop-0.1.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (543.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

gradtop-0.1.4-cp310-cp310-macosx_11_0_arm64.whl (492.0 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file gradtop-0.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for gradtop-0.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b26b9da6f9a1ae9d63788c1b506eac6dd181d7487bbea9b0769c5fef309416c1
MD5 5bf5727265976023594cd5d5204bc096
BLAKE2b-256 c315daade84138b5501f40c8eb1d73425aff3e363a815409494f9c6dcf550385

See more details on using hashes here.

Provenance

The following attestation bundles were made for gradtop-0.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on NavneetKanna/gradtop

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

File details

Details for the file gradtop-0.1.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for gradtop-0.1.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ff996b2b83baf997995d6ec84fdd27d741d11658c0e06702c51a2ed7c7afddd5
MD5 b5eaefb0b01136ce5f8e3ee5f811cff2
BLAKE2b-256 3c33ea75a4be2623a99310adadd0ee365471422a75a0e059a65bb6b4773125b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for gradtop-0.1.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yml on NavneetKanna/gradtop

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

File details

Details for the file gradtop-0.1.4-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gradtop-0.1.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 18a1e4c14326876e245b9e30e7d28b7c385cd4239a2c24a4d8f6ec9a8c055683
MD5 18f0b0f35559a86eacff6b8c4e68b6a6
BLAKE2b-256 614cece181973debbd07296c873c1c051d3fe90e4b70f4719da102ac452338c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for gradtop-0.1.4-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: release.yml on NavneetKanna/gradtop

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