nvdlfw-inspect
Facilitates debugging convergence issues and testing new algorithms/recipes for training LLMs using Nvidia libraries.
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-inspectuv
uv add nvdlfw-inspectpoetry
poetry add nvdlfw-inspectInstalling 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
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
nemo-toolkitnemo-toolkit provides a PyTorch framework for…
permissive · top 5,000 on PyPI
transformer-engine-cu13Accelerates Transformer model training and…
unclear · top 15,000 on PyPI
transformer-engine-cu12Accelerates Transformer model training and…
unclear · top 15,000 on PyPI
transformer-engineTransformer Engine accelerates Transformer…
unclear · top 15,000 on PyPI
megatron-coreMegatron Core provides GPU-optimized building…
permissive · top 15,000 on PyPI
nvidia-nat-opentelemetryAdds OpenTelemetry observability…
permissive · top 15,000 on PyPI
nvidia-nat-coreNVIDIA NeMo Agent Toolkit is a…
permissive · top 15,000 on PyPI
nvidia-nat-evalProvides evaluation components and CLI commands…
permissive · top 15,000 on PyPI
nvidia-nvtx-cu11Provides a C-based API for annotating events,…
unclear · top 5,000 on PyPI
torchPyTorch provides GPU-accelerated tensor…
permissive · top 1,000 on PyPI