skillfed

nvdlfw-inspect

Facilitates debugging convergence issues and testing new algorithms/recipes for training LLMs using Nvidia libraries.

nvdlfw-inspect v0.2.2 147.4K downloads/30d#11,067 on PyPI21
Permissive license Apache2 AGING released

What it is and what it does

nvdlfw-inspect is a debugging toolkit for NVIDIA's deep learning framework ecosystem, designed to help diagnose convergence issues and validate new training algorithms when using Transformer Engine, Megatron-LM, NeMo, or plain PyTorch models. It works by attaching instrumentation at the layer level—you define which layers to monitor via regex patterns in a YAML config file, then selectively enable debug features (like tensor statistics collection) only for those layers. This targeted approach avoids the overhead of instrumenting an entire model.

The package provides both generic APIs for framework-agnostic tensor inspection and namespace-scoped APIs for framework-specific behavior. You initialize it once in your training script, configure which features and layers you want to monitor, and then call APIs to log statistics like mean, standard deviation, and norms on activations, weights, and gradients. It's built for multi-GPU training and expects initialization on every rank.

Use it for:

  • Diagnosing why an LLM training run is not converging by inspecting weight and activation statistics across selected layers.
  • Validating a new training algorithm or recipe by comparing tensor statistics before and after changes.
  • Monitoring specific transformer layers (e.g., attention heads, feed-forward blocks) during distributed training without full-model instrumentation overhead.
  • Collecting gradient flow statistics to detect vanishing or exploding gradients in deep models.
  • Prototyping custom debug features by loading framework-specific feature directories alongside generic ones.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides debugging and instrumentation APIs for LLM training workflows using NVIDIA libraries (Transformer Engine, Megatron-LM, NeMo) and PyTorch models, with configurable layer-level feature selection and tensor statistics collection.

Yes, if you are actively debugging LLM training convergence issues with NVIDIA frameworks and can tolerate the aging maintenance status. The low install friction and permissive license make it a low-risk addition to a training pipeline. However, the limited repository activity (21 stars, last commit 2025-09-17) and aging status suggest this is not a heavily supported tool—verify compatibility with your specific framework versions before relying on it in production.

Install

nvdlfw-inspect on PyPI

pip

pip install nvdlfw-inspect

uv

uv add nvdlfw-inspect

poetry

poetry add nvdlfw-inspect

Installing nvdlfw-inspect

Before you install

Low install friction with a pure-Python wheel. Maintenance status is aging—last commit was 2025-09-17 and the repository has only 21 stars, suggesting limited adoption and uncertain long-term support.

License in practice

Licensed under Apache2 (permissive), so you can use, modify, and distribute the package freely in both open and proprietary projects without viral obligations.

Quickstart

pip install nvdlfw-inspect

import nvdlfw_inspect.api as debug_api
debug_api.initialize(config_file="debug_config.yaml")
debug_api.log_tensor_stats(layer_name, tensor=weight, tensor_name="weight")

Requires PyTorch and PyYAML as runtime dependencies; intended for multi-GPU training workflows where initialization should occur once per rank.

Verify before relying

  • Whether the package is actively maintained beyond the initial release cycle given the aging status and limited repository activity.
  • Real-world performance and stability when used with large-scale distributed training setups.
  • Compatibility guarantees with specific versions of Transformer Engine, Megatron-LM, and NeMo.

Package facts

License Apache2 (permissive)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 2 — pyyaml, torch
Maintenance aging — 254 days since the last release
Last repo commit
First released
Downloads 147,382/month — #11,067 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: nvdlfw_inspect-0.2.2-py3-none-any.whl

Development Status :: 4 - BetaOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.6

Tags

llm training debuggingnvidia megatron nemo debugtensor statistics loggingconvergence issue diagnosispytorch model instrumentationtransformer engine debugginglayer-level monitoring
llm-debuggingdistributed-trainingnvidia-ecosystem

More Artificial Intelligence packages

Further reading