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
Built Distributions
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 gradtop-0.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: gradtop-0.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 554.5 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b26b9da6f9a1ae9d63788c1b506eac6dd181d7487bbea9b0769c5fef309416c1
|
|
| MD5 |
5bf5727265976023594cd5d5204bc096
|
|
| BLAKE2b-256 |
c315daade84138b5501f40c8eb1d73425aff3e363a815409494f9c6dcf550385
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gradtop-0.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
b26b9da6f9a1ae9d63788c1b506eac6dd181d7487bbea9b0769c5fef309416c1 - Sigstore transparency entry: 1107718309
- Sigstore integration time:
-
Permalink:
NavneetKanna/gradtop@b6f78a88a2fad14bcca8612499ac9771d314599a -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/NavneetKanna
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b6f78a88a2fad14bcca8612499ac9771d314599a -
Trigger Event:
push
-
Statement type:
File details
Details for the file gradtop-0.1.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: gradtop-0.1.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 543.9 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff996b2b83baf997995d6ec84fdd27d741d11658c0e06702c51a2ed7c7afddd5
|
|
| MD5 |
b5eaefb0b01136ce5f8e3ee5f811cff2
|
|
| BLAKE2b-256 |
3c33ea75a4be2623a99310adadd0ee365471422a75a0e059a65bb6b4773125b1
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gradtop-0.1.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
ff996b2b83baf997995d6ec84fdd27d741d11658c0e06702c51a2ed7c7afddd5 - Sigstore transparency entry: 1107718305
- Sigstore integration time:
-
Permalink:
NavneetKanna/gradtop@b6f78a88a2fad14bcca8612499ac9771d314599a -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/NavneetKanna
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b6f78a88a2fad14bcca8612499ac9771d314599a -
Trigger Event:
push
-
Statement type:
File details
Details for the file gradtop-0.1.4-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: gradtop-0.1.4-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 492.0 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18a1e4c14326876e245b9e30e7d28b7c385cd4239a2c24a4d8f6ec9a8c055683
|
|
| MD5 |
18f0b0f35559a86eacff6b8c4e68b6a6
|
|
| BLAKE2b-256 |
614cece181973debbd07296c873c1c051d3fe90e4b70f4719da102ac452338c0
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gradtop-0.1.4-cp310-cp310-macosx_11_0_arm64.whl -
Subject digest:
18a1e4c14326876e245b9e30e7d28b7c385cd4239a2c24a4d8f6ec9a8c055683 - Sigstore transparency entry: 1107718311
- Sigstore integration time:
-
Permalink:
NavneetKanna/gradtop@b6f78a88a2fad14bcca8612499ac9771d314599a -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/NavneetKanna
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b6f78a88a2fad14bcca8612499ac9771d314599a -
Trigger Event:
push
-
Statement type: