Skip to main content

gradexp

Like wandb, but for tensors.

gradexp logs tensors from Python and lets you inspect them in Gradient Explorer, either in the hosted app or a local viewer.

Quickstart

pip install gradexp
gradexp login
# For local mode:
gradexp local open

Example:

import gradexp
import numpy as np

gradexp.init(project_name="examples", run_name="hello-gradexp")

for step in range(10):
    tensor = np.random.randn(224, 224, 3).astype(np.float32)
    gradexp.log(tensor, name="tensor")

When gradexp.init() succeeds, it prints a run URL. If a local instance is running, data is routed there automatically.

Note: tensor names are immutable once a tensor is created — they're keys into per-tensor stats and shape metadata. Choose names carefully on the first log call. Project and run names can be renamed in the explorer UI; tensor names cannot.

Semantic Model Tensor Views

gradexp.log_model_tensors(model) and gradexp.log_gradient_stats(model) log model.named_parameters() by default. Models that store several logical layers in one banked parameter can provide a semantic view by defining:

def gradexp_unbank_state_dict(self, state_dict):
    ...

The method receives a mapping of raw parameter names to tensors and returns a mapping of semantic names to tensors. Gradexp calls it automatically when present, for both weights and gradients:

class GPT(nn.Module):
    def gradexp_unbank_state_dict(self, state_dict):
        return _unbank_state_dict(state_dict, self.num_layers)

Use semantic=False or semantic="raw" to force raw PyTorch parameter names.

Common CLI Commands

gradexp login
gradexp local open
gradexp local start
gradexp local status
gradexp local stop
gradexp local sync

Metadata

Release files for gradexp 0.1.28

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gradexp 0.1.28
File Size Uploaded Provenance Actions
gradexp-0.1.28.tar.gz 571.0 kB Without provenance Details for gradexp-0.1.28.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gradexp 0.1.28
File Interpreter ABI Platform Actions
gradexp-0.1.28-py3-none-any.whl Python 3 none any Details for gradexp-0.1.28-py3-none-any.whl

Total release size: 1.1 MB

Release files / gradexp-0.1.28.tar.gz

Download URL gradexp-0.1.28.tar.gz
Size 571.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fa51aafe7c335d55ca5b3812725b8d255f2e5a01db8d6818dc3cdfade7326d74
BLAKE2b-256 checksum
How to use checksums
46ffc335674a96ee61a85c7225e5ffaee7ba1140ff0a955154f813a50959fbce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.29 {"installer":{"name":"uv","version":"0.9.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / gradexp-0.1.28-py3-none-any.whl

Download URL gradexp-0.1.28-py3-none-any.whl
Size 561.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8568653c2a02db0757bba7e82d15ba637598fb4415029f4058ced2c3523a920
BLAKE2b-256 checksum
How to use checksums
60da6e55cc5368189692f9a0d90a021ddbd708ace6998f274c919635d25f00b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.29 {"installer":{"name":"uv","version":"0.9.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for gradexp 0.1.28

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page