Metadata-Version: 2.4
Name: nvidia-resiliency-ext
Version: 0.7.1
Summary: NVIDIA Resiliency Package
License: Apache 2.0
License-File: LICENSE.txt
Author: NVIDIA Corporation
Requires-Python: >=3.11,<4.0
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Operating System :: OS Independent
Provides-Extra: attribution
Requires-Dist: defusedxml
Requires-Dist: fastapi (>=0.100.0)
Requires-Dist: grpcio (>=1.76.0,<2.0.0)
Requires-Dist: grpcio-tools (>=1.76.0,<2.0.0)
Requires-Dist: httpx (>=0.24.0)
Requires-Dist: mcp (>=1.28.1,<2.0.0) ; extra == "attribution"
Requires-Dist: numpy (>=1.26)
Requires-Dist: nvidia-ml-py (>=12.570.86)
Requires-Dist: packaging
Requires-Dist: protobuf (>=4.22.0)
Requires-Dist: psutil (>=6.0.0)
Requires-Dist: pydantic (>=2.0.0)
Requires-Dist: pydantic-settings (>=2.0.0)
Requires-Dist: pyjwt[crypto] (>=2.14.0) ; extra == "attribution"
Requires-Dist: setproctitle (>=1.3.0) ; extra == "attribution"
Requires-Dist: slack-bolt (>=1.23.0) ; extra == "attribution"
Requires-Dist: slack-sdk (>=3.35.0)
Requires-Dist: slowapi (>=0.1.9)
Requires-Dist: torch (>=2.9.0)
Requires-Dist: typing-extensions (>=4.5)
Requires-Dist: uvicorn[standard] (>=0.20.0)
Project-URL: Repository, https://github.com/NVIDIA/nvidia-resiliency-ext
Description-Content-Type: text/markdown

# NVIDIA Resiliency Extension

The NVIDIA Resiliency Extension (NVRx) integrates multiple resiliency-focused solutions for PyTorch-based workloads. Users can modularly integrate NVRx capabilities into their own infrastructure to maximize AI training productivity at scale. NVRx maximizes goodput by enabling system-wide health checks, quickly detecting faults at runtime and resuming training automatically. NVRx minimizes loss of work by enabling fast and frequent checkpointing. 

For detailed documentation and usage information about each component, please refer to https://nvidia.github.io/nvidia-resiliency-ext/.

> ⚠️ NOTE: This project is still experimental and under active development. The code, features, and documentation are evolving rapidly. Please expect frequent updates and breaking changes. Contributions are welcome and we encourage you to watch for updates.

## Core Components and Capabilities

- **[Fault Tolerance](https://nvidia.github.io/nvidia-resiliency-ext/fault_tolerance/index.html)**
  - Section-based hang detection and coordinated worker restarts within a running job.
  - [Megatron GPT recovery walkthrough](docs/source/fault_tolerance/examples/megatron_gpt.rst) with fixed CLI timeouts and NVRx-backed async checkpoints.
  - [Small DDP example](docs/source/fault_tolerance/examples/train_ddp_sections.rst) with section monitoring and synchronous PyTorch checkpoints.

- **[Async Checkpointing](https://nvidia.github.io/nvidia-resiliency-ext/checkpointing/async/index.html)**
  - Providing an efficient framework for asynchronous checkpointing.

- **[Local Checkpointing](https://nvidia.github.io/nvidia-resiliency-ext/checkpointing/local/index.html)**
  - Providing an efficient framework for local checkpointing.

- **[Straggler Detection](https://nvidia.github.io/nvidia-resiliency-ext/straggler_det/index.html)**
  - Monitoring GPU and CPU performance of ranks.  
  - Identifying slower ranks that may impede overall training efficiency.

## Installation

### From sources
- `git clone https://github.com/NVIDIA/nvidia-resiliency-ext`
- `cd nvidia-resiliency-ext`
- `pip install .`


### From PyPI wheel
- `pip install nvidia-resiliency-ext`

### Platform Support

| Category             | Supported Versions / Requirements                                          |
|----------------------|----------------------------------------------------------------------------|
| Architecture         | x86_64, arm64                                                              |
| Operating System     | Ubuntu 22.04, 24.04                                                        |
| Python Version       | >= 3.11 (release wheels and CI: 3.12, 3.14)                                |
| PyTorch Version      | >= 2.9.0                                                                   |
| CUDA & CUDA Toolkit  | >= 12.8                                                                    |
| NVML Driver          | >= 535 (570 required for GPU health check)                                 |
| TE Version           | >= 2.5                                                                     |

