Option
HeimHeim Skill Datenwissenschaft und ML nemo-mbridge-resiliency

nemo-mbridge-resiliency

NVIDIA/skills NVIDIA/skills

Konfigurieren Sie Fehlertoleranz, Straggler-Erkennung, Präemption, Neustart während des Prozesses und die Zustandsmaschine für die Wiederholung von Trainingsaufträgen für Megatron Bridge.

...Alle erweitern
0
Zeit aktualisiert 25. September 2026

Ausfallsicherheit

Stabile Dokumentation: @docs/training/resiliency.md, @docs/training/checkpointing.md Karte: @skills/nemo-mbridge-resiliency/card.yaml

Bereitstellung

Fehlertoleranz (nur Slurm)

Option 1: NeMo Run-Plugin (empfohlen)

from megatron.bridge.recipes.run_plugins import FaultTolerancePlugin
import nemo_run as run

task = run.Script(...)
run_plugins = [
    FaultTolerancePlugin(
        enable_ft_package=True,
        calc_ft_timeouts=True,
        num_in_job_restarts=3,
        num_job_retries_on_failure=2,
        initial_rank_heartbeat_timeout=1800,
        rank_heartbeat_timeout=300,
    )
]
run.run(task, plugins=run_plugins, executor=executor)
Plugin-Parameter Standardwert Beschreibung
num_in_job_restarts 3 Maximale Anzahl von Neustarts innerhalb desselben Jobs
num_job_retries_on_failure 2 Maximale Anzahl neuer Job-Starts bei Fehlschlag
initial_rank_heartbeat_timeout 1800 Timeout für ersten Heartbeat (Sekunden)
Rang-Heartbeat-Timeout 300 Timeout für nachfolgende Heartbeats (Sekunden)

Option 2: Direkte Konfiguration + ft_launcher

from megatron.bridge.training.config import FaultToleranceConfig

cfg.ft = FaultToleranceConfig(
    enable_ft_package=True,
    calc_ft_timeouts=True,
    simulate_fault=False,
    simulated_fault_type="random",
)

Mit ft_launcher starten (nicht mit torchrun):

export GROUP_RANK=0  # erforderlich für Nicht-Slurm-Umgebungen
ft_launcher \
    --rdzv_backend=c10d --rdzv_endpoint=${MASTER_ADDR}:${MASTER_PORT} \
    --nnodes=${NUM_NODES} --nproc-per-node=${NUM_GPUS_PER_NODE} \
    --ft-rank_section_timeouts=setup:600,step:180,checkpointing:420 \
    --ft-rank_out_of_section_timeout=300 \
    your_training_script.py
Konfigurationsparameter Standard Beschreibung
enable_ft_package False Fehlertoleranz aktivieren
calc_ft_timeouts False Optimale Timeouts automatisch berechnen
simulate_fault Falsch Fehlersimulation für Tests aktivieren
simulierter_Fehlertyp „random“ „rank_hung“, „rank_killed“ oder „random“
simulierte_Fehlertyp-Rang Keine Spezifischer Rang für den Fehler (zufällig, wenn „None“)
simulated_fault_base_delay 0 Grundverzögerung vor der Fehlersimulation

Die abschnittbasierte Timeout-Überwachung umfasst die Einrichtung, die Trainingsschritte, die Checkpoint-Erstellung sowie die Zeit außerhalb des Abschnitts unabhängig voneinander. Timeouts werden in ft_state.json für nachfolgende Durchläufe gespeichert, wenn calc_ft_timeouts=True ist.

NVRx-Straggler-Erkennung

from megatron.bridge.training.config import NVRxStragglerDetectionConfig

cfg.nvrx_straggler = NVRxStragglerDetectionConfig(
    enabled=True,
    report_time_interval=300.0,
    calc_relative_gpu_perf=True,
    calc_individual_gpu_perf=True,
    num_gpu_perf_scores_to_print=5,
    gpu_relative_perf_threshold=0.7,
    gpu_individual_perf_threshold=0,7,
    stop_if_detected=False,
    enable_logging=True,
)
Parameter Standard Beschreibung
aktiviert False Nachläufererkennung aktivieren
report_time_interval 300,0 Sekunden zwischen den Nachläufer-Prüfungen
calc_relative_gpu_perf Wahr Ränge miteinander vergleichen
calc_individual_gpu_perf Wahr Verfall pro Rang im Zeitverlauf verfolgen
gpu_relative_perf_threshold 0,7 Schwellenwert für die relative Leistung (0–1)
gpu_individual_perf_threshold 0,7 Schwellenwert für die individuelle Leistung (0–1)
stop_if_detected Falsch Training bei Nachzüglern abbrechen
Anzahl der auszugebenden GPU-Leistungswerte 5 Anzahl der besten/schlechtesten Ergebnisse, die ausgegeben werden sollen
profiling_interval 1 Profiling-Intervall für den Detektor

Preemption

Plugin (Slurm)

from megatron.bridge.recipes.run_plugins import PreemptionPlugin

plugins = [
    PreemptionPlugin(
        preempt_time=60,
        enable_exit_handler=True,
        enable_exit_handler_for_data_loader=False,
    )
]
Plugin-Parameter Standard Beschreibung
preempt_time 60 Sekunden vor Ablauf der Job-Frist, um ein Signal zu senden
enable_exit_handler True Signal-Handler im Training aktivieren
enable_exit_handler_for_data_loader Falsch Für Dataloader-Worker aktivieren

Direkte Konfiguration

import signal
cfg.train.exit_signal_handler = True
cfg.train.exit_signal = signal.SIGTERM
cfg.train.exit_signal_handler_for_dataloader = False

Zustandsmaschine erneut ausführen (experimentell)

from megatron.bridge.training.config import RerunStateMachineConfig

cfg.rerun_state_machine = RerunStateMachineConfig(
    rerun_mode="validate_results",
    check_for_nan_in_loss=True,
    check_for_spiky_loss=False,
    spiky_loss_factor=10.0,
)
Parameter Standardwert Beschreibung
rerun_mode „deaktiviert“ „deaktiviert“, „Ergebnisse validieren“, „Statistiken zur Deterministik ausgeben“
check_for_nan_in_loss True Auf NaN im Verlust prüfen
check_for_spiky_loss Falsch Auf unerwartet hohen Verlust prüfen
spiky_loss_factor 10,0 Verlust wird als auffällig markiert, wenn > Faktor * maximal beobachteter Wert (bei großen Modellen erhöhen)

Exit-Codes: 16 = Fortsetzen zur Eindeutigkeitsherstellung, 17 = Validierung fehlgeschlagen.

Neustart während des Prozesses (experimentell)

from megatron.bridge.training.config import InProcessRestartConfig

cfg.inprocess_restart = InProcessRestartConfig(
    enabled=True,
    granularity="node",
    soft_timeout=60.0,
    hard_timeout=90.0,
)
Parameter Standard Beschreibung
enabled Falsch In-Process-Neustart aktivieren
active_world_size Keine Ränge, die die Arbeitslast ausführen (die übrigen sind Warmreserven)
Granularität „Knoten“ „Knoten“ oder „Rank“ Granularität beim Neustart
max_iterations Keine Maximale Anzahl von Neustartversuchen (None = unbegrenzt)
soft_timeout 60,0 Erkennung von durch GIL-Freigabe verursachten Hängern (Sekunden)
hard_timeout 90,0 Hängende Ranks zwangsweise beenden (Sekunden)
heartbeat_interval 30,0 Heartbeat-Intervall (Sekunden)
heartbeat_timeout 60,0 Timeout bei fehlendem Heartbeat (Sekunden)
barrier_timeout 120,0 Zeitlimit für verteilte Barriere (Sekunden)
completion_timeout 120,0 Zeitlimit für die Abschlussbarriere (Sekunden)
empty_cuda_cache True CUDA-Cache beim Neustart leeren
max_rank_faults Keine Maximale Anzahl von Rank-Fehlern vor dem Abbruch
monitor_process_logdir Keine Verzeichnis für Monitor-Protokolle

Erforderliche Umgebungsvariablen:

export TORCH_CPP_LOG_LEVEL=error
export TORCH_NCCL_RETHROW_CUDA_ERRORS=0
export NCCL_NVLS_ENABLE=0

Das PyTorch-NCCL-Watchdog-Timeout muss größer sein als `hard_timeout`. Der Slurm-Executor von NeMo-Run wird nicht unterstützt; starten Sie den Prozess direkt mit `srun --kill-on-bad-exit=0`.

Asynchrones Speichern von Checkpoints

cfg.checkpoint.async_save = True
cfg.checkpoint.ckpt_format = "torch_dist"

Lokale Checkpoint-Erstellung (NVRx)

cfg.checkpoint.non_persistent_local_ckpt_dir = "/local/scratch/ckpt"
cfg.checkpoint.non_persistent_local_ckpt_algo = "fully_parallel"

Code-Anker

Fehlertoleranz

  • Konfiguration: src/megatron/bridge/training/config.py — FaultToleranceConfig
  • Laufzeit: src/megatron/bridge/training/fault_tolerance.py
  • Plugin: src/megatron/bridge/recipes/run_plugins.py — FaultTolerancePlugin
  • Leistungs-Plugin: scripts/performance/nemo-mbridge-resiliency_plugins.py
  • Tests: tests/unit_tests/training/test_fault_tolerance.py
  • Beispiel: examples/training_features/nemo-mbridge-resiliency/fault_tolerance/

Erkennung von Nachzüglern

  • Konfiguration: src/megatron/bridge/training/config.py — NVRxStragglerDetectionConfig
  • Laufzeit: src/megatron/bridge/training/nvrx_straggler.py
  • Trainingsschleife: src/megatron/bridge/training/train.py — check_nvrx_straggler_detection
  • Tests: tests/unit_tests/training/test_nvrx_straggler.py, tests/functional_tests/training/test_nvrx_straggler.py
  • Beispiel: examples/training_features/nemo-mbridge-resiliency/straggler_detection/

Neustart während des Prozesses

  • Konfiguration: src/megatron/bridge/training/config.py — InProcessRestartConfig
  • Laufzeit: src/megatron/bridge/training/inprocess_restart.py
  • Einstiegspunkt: src/megatron/bridge/training/pretrain.py — maybe_wrap_for_inprocess_restart
  • Tests: tests/unit_tests/training/test_inprocess_restart.py, tests/functional_tests/training/test_inprocess_restart.py

Preemption

  • Plugin: src/megatron/bridge/recipes/run_plugins.py — PreemptionPlugin
  • Signal-Handler: src/megatron/bridge/training/utils/sig_utils.py
  • Tests: tests/unit_tests/recipes/test_run_plugins.py

Zustandsmaschine erneut ausführen

  • Konfiguration: src/megatron/bridge/training/config.py — RerunStateMachineConfig
  • Initialisierung: src/megatron/bridge/training/initialize.py — init_rerun_state

Checkpointing

  • Asynchrones Speichern: src/megatron/bridge/training/checkpointing.py — schedule_async_save
  • Lokaler Checkpoint: src/megatron/bridge/training/checkpointing.py — LocalCheckpointManager
  • Tests: tests/functional_tests/training/test_local_checkpointing.py

Fallstricke

  1. ft_launcher, nicht torchrun: Direct FaultToleranceConfig erfordert ft_launcher. Die Verwendung von torchrun deaktiviert FT stillschweigend. Für Nicht-Slurm-Umgebungen setzen Sie GROUP_RANK=0.

  2. Asynchrones Speichern erfordert torch_dist: async_save=True funktioniert nur mit ckpt_format="torch_dist". Andere Formate schlagen stillschweigend fehl oder führen zu Fehlern.

  3. IPR + NeMo-Run: Der In-Process-Neustart ist nicht kompatibel mit NeMo-Run oder Slurm-Preemption-Plugins. Erfordert bestimmte PyTorch-/NCCL-Versionen und Umgebungsvariablen.

  4. NVRx vs. herkömmlicher Straggler: Es gibt zwei Detektoren. Verwenden Sie NVRx (nvrx_straggler); aktivieren Sie nicht beide.

  5. Standardwert für `stop_if_detected`: NVRx protokolliert, stoppt das Training jedoch standardmäßig nicht. Setze `stop_if_detected=True` für eine automatische Beendigung.

  6. NCCL-Watchdog vs. „hard_timeout“: Bei IPR muss das Timeout des NCCL-Watchdogs „hard_timeout“ überschreiten, sonst beendet PyTorch den Prozess vor der Wiederherstellung.

  7. Die Rerun-Zustandsmaschine befindet sich im Alpha-Stadium: Verwenden Sie check_for_nan_in_loss=True für die NaN-Erkennung, verlassen Sie sich jedoch noch nicht auf vollständige Rerun-Workflows.

Verifizierung

Fehlertoleranz

./examples/training_features/nemo-mbridge-resiliency/fault_tolerance/run_fault_tolerance.sh
./examples/training_features/nemo-mbridge-resiliency/fault_tolerance/run_fault_tolerance.sh --simulate-fault

Suchen Sie in den Protokollzeilen von [FaultTolerance] bzw. [RankMonitorServer] nach Einträgen zu Timeouts. Der simulierte Fehler sollte einen Neustart ab dem Checkpoint auslösen.

Erkennung von Nachzüglern

uv run python -m torch.distributed.run --nproc_per_node=2 \
    examples/training_features/nemo-mbridge-resiliency/straggler_detection/straggler_detection_example.py

Achten Sie auf Berichte zur relativen GPU-Leistung und zur individuellen GPU-Leistung mit Bewertungen pro Rank.

Asynchrones Checkpoint-Speichern

Achten Sie in den Protokollen auf den Eintrag „Scheduling async checkpoint save “. Die Trainingsiterationen sollten fortgesetzt werden, während die Checkpoint-Dateien geschrieben werden.

Neustart innerhalb des Prozesses

pytest tests/functional_tests/training/test_inprocess_restart.py -v

Erfordert kompatible PyTorch-/NCCL-Versionen.

Auf GitHub ansehen
---
name: nemo-mbridge-resiliency
description: Configure fault tolerance, straggler detection, preemption, in-process restart, and re-run state machine for Megatron Bridge training jobs.
license: Apache-2.0
---

# Resiliency

Stable docs: @docs/training/resiliency.md, @docs/training/checkpointing.md
Card: @skills/nemo-mbridge-resiliency/card.yaml

## Enablement

### Fault tolerance (Slurm only)

#### Option 1: NeMo Run plugin (recommended)

```python
from megatron.bridge.recipes.run_plugins import FaultTolerancePlugin
import nemo_run as run

task = run.Script(...)
run_plugins = [
    FaultTolerancePlugin(
        enable_ft_package=True,
        calc_ft_timeouts=True,
        num_in_job_restarts=3,
        num_job_retries_on_failure=2,
        initial_rank_heartbeat_timeout=1800,
        rank_heartbeat_timeout=300,
    )
]
run.run(task, plugins=run_plugins, executor=executor)
```

| Plugin parameter | Default | Description |
|---|---|---|
| `num_in_job_restarts` | 3 | Max restarts within same job |
| `num_job_retries_on_failure` | 2 | Max new job launches on failure |
| `initial_rank_heartbeat_timeout` | 1800 | First heartbeat timeout (seconds) |
| `rank_heartbeat_timeout` | 300 | Subsequent heartbeat timeout (seconds) |

#### Option 2: Direct config + ft_launcher

```python
from megatron.bridge.training.config import FaultToleranceConfig

cfg.ft = FaultToleranceConfig(
    enable_ft_package=True,
    calc_ft_timeouts=True,
    simulate_fault=False,
    simulated_fault_type="random",
)
```

Launch with `ft_launcher` (not `torchrun`):

```bash
export GROUP_RANK=0  # required for non-Slurm
ft_launcher \
    --rdzv_backend=c10d --rdzv_endpoint=${MASTER_ADDR}:${MASTER_PORT} \
    --nnodes=${NUM_NODES} --nproc-per-node=${NUM_GPUS_PER_NODE} \
    --ft-rank_section_timeouts=setup:600,step:180,checkpointing:420 \
    --ft-rank_out_of_section_timeout=300 \
    your_training_script.py
```

| Config parameter | Default | Description |
|---|---|---|
| `enable_ft_package` | False | Enable fault tolerance |
| `calc_ft_timeouts` | False | Auto-compute optimal timeouts |
| `simulate_fault` | False | Enable fault simulation for testing |
| `simulated_fault_type` | `"random"` | `"rank_hung"`, `"rank_killed"`, or `"random"` |
| `simulated_fault_rank` | None | Specific rank to fault (random if None) |
| `simulated_fault_base_delay` | 0 | Base delay before simulating fault |

Section-based timeout monitoring covers setup, training steps, checkpointing,
and out-of-section time independently. Timeouts are saved to `ft_state.json`
for subsequent runs when `calc_ft_timeouts=True`.

### NVRx straggler detection

```python
from megatron.bridge.training.config import NVRxStragglerDetectionConfig

cfg.nvrx_straggler = NVRxStragglerDetectionConfig(
    enabled=True,
    report_time_interval=300.0,
    calc_relative_gpu_perf=True,
    calc_individual_gpu_perf=True,
    num_gpu_perf_scores_to_print=5,
    gpu_relative_perf_threshold=0.7,
    gpu_individual_perf_threshold=0.7,
    stop_if_detected=False,
    enable_logging=True,
)
```

| Parameter | Default | Description |
|---|---|---|
| `enabled` | False | Enable straggler detection |
| `report_time_interval` | 300.0 | Seconds between straggler checks |
| `calc_relative_gpu_perf` | True | Compare ranks against each other |
| `calc_individual_gpu_perf` | True | Track per-rank degradation over time |
| `gpu_relative_perf_threshold` | 0.7 | Threshold for relative performance (0-1) |
| `gpu_individual_perf_threshold` | 0.7 | Threshold for individual performance (0-1) |
| `stop_if_detected` | False | Terminate training on straggler |
| `num_gpu_perf_scores_to_print` | 5 | Number of best/worst scores to print |
| `profiling_interval` | 1 | Profiling interval for detector |

### Preemption

#### Plugin (Slurm)

```python
from megatron.bridge.recipes.run_plugins import PreemptionPlugin

plugins = [
    PreemptionPlugin(
        preempt_time=60,
        enable_exit_handler=True,
        enable_exit_handler_for_data_loader=False,
    )
]
```

| Plugin parameter | Default | Description |
|---|---|---|
| `preempt_time` | 60 | Seconds before job limit to send signal |
| `enable_exit_handler` | True | Enable signal handler in training |
| `enable_exit_handler_for_data_loader` | False | Enable for dataloader workers |

#### Direct config

```python
import signal
cfg.train.exit_signal_handler = True
cfg.train.exit_signal = signal.SIGTERM
cfg.train.exit_signal_handler_for_dataloader = False
```

### Re-run state machine (experimental)

```python
from megatron.bridge.training.config import RerunStateMachineConfig

cfg.rerun_state_machine = RerunStateMachineConfig(
    rerun_mode="validate_results",
    check_for_nan_in_loss=True,
    check_for_spiky_loss=False,
    spiky_loss_factor=10.0,
)
```

| Parameter | Default | Description |
|---|---|---|
| `rerun_mode` | `"disabled"` | `"disabled"`, `"validate_results"`, `"report_determinism_stats"` |
| `check_for_nan_in_loss` | True | Check for NaN in loss |
| `check_for_spiky_loss` | False | Check for unexpectedly large loss |
| `spiky_loss_factor` | 10.0 | Loss flagged if > factor * max observed (increase for large models) |

Exit codes: 16 = resume to disambiguate, 17 = failed validation.

### In-process restart (experimental)

```python
from megatron.bridge.training.config import InProcessRestartConfig

cfg.inprocess_restart = InProcessRestartConfig(
    enabled=True,
    granularity="node",
    soft_timeout=60.0,
    hard_timeout=90.0,
)
```

| Parameter | Default | Description |
|---|---|---|
| `enabled` | False | Enable in-process restart |
| `active_world_size` | None | Ranks executing workload (rest are warm reserves) |
| `granularity` | `"node"` | `"node"` or `"rank"` restart granularity |
| `max_iterations` | None | Max restart attempts (None = unlimited) |
| `soft_timeout` | 60.0 | Detect GIL-released hangs (seconds) |
| `hard_timeout` | 90.0 | Force-terminate hung ranks (seconds) |
| `heartbeat_interval` | 30.0 | Heartbeat interval (seconds) |
| `heartbeat_timeout` | 60.0 | Missing heartbeat timeout (seconds) |
| `barrier_timeout` | 120.0 | Distributed barrier timeout (seconds) |
| `completion_timeout` | 120.0 | Completion barrier timeout (seconds) |
| `empty_cuda_cache` | True | Clear CUDA cache during restart |
| `max_rank_faults` | None | Max rank faults before terminating |
| `monitor_process_logdir` | None | Directory for monitor logs |

Required environment variables:

```bash
export TORCH_CPP_LOG_LEVEL=error
export TORCH_NCCL_RETHROW_CUDA_ERRORS=0
export NCCL_NVLS_ENABLE=0
```

The PyTorch NCCL watchdog timeout must exceed `hard_timeout`. NeMo-Run's
Slurm Executor is not supported; launch directly with `srun --kill-on-bad-exit=0`.

### Async checkpoint save

```python
cfg.checkpoint.async_save = True
cfg.checkpoint.ckpt_format = "torch_dist"
```

### Local checkpointing (NVRx)

```python
cfg.checkpoint.non_persistent_local_ckpt_dir = "/local/scratch/ckpt"
cfg.checkpoint.non_persistent_local_ckpt_algo = "fully_parallel"
```

## Code Anchors

### Fault tolerance
- Config: `src/megatron/bridge/training/config.py` — `FaultToleranceConfig`
- Runtime: `src/megatron/bridge/training/fault_tolerance.py`
- Plugin: `src/megatron/bridge/recipes/run_plugins.py` — `FaultTolerancePlugin`
- Perf plugin: `scripts/performance/nemo-mbridge-resiliency_plugins.py`
- Tests: `tests/unit_tests/training/test_fault_tolerance.py`
- Example: `examples/training_features/nemo-mbridge-resiliency/fault_tolerance/`

### Straggler detection
- Config: `src/megatron/bridge/training/config.py` — `NVRxStragglerDetectionConfig`
- Runtime: `src/megatron/bridge/training/nvrx_straggler.py`
- Train loop: `src/megatron/bridge/training/train.py` — `check_nvrx_straggler_detection`
- Tests: `tests/unit_tests/training/test_nvrx_straggler.py`, `tests/functional_tests/training/test_nvrx_straggler.py`
- Example: `examples/training_features/nemo-mbridge-resiliency/straggler_detection/`

### In-process restart
- Config: `src/megatron/bridge/training/config.py` — `InProcessRestartConfig`
- Runtime: `src/megatron/bridge/training/inprocess_restart.py`
- Entry point: `src/megatron/bridge/training/pretrain.py` — `maybe_wrap_for_inprocess_restart`
- Tests: `tests/unit_tests/training/test_inprocess_restart.py`, `tests/functional_tests/training/test_inprocess_restart.py`

### Preemption
- Plugin: `src/megatron/bridge/recipes/run_plugins.py` — `PreemptionPlugin`
- Signal handler: `src/megatron/bridge/training/utils/sig_utils.py`
- Tests: `tests/unit_tests/recipes/test_run_plugins.py`

### Re-run state machine
- Config: `src/megatron/bridge/training/config.py` — `RerunStateMachineConfig`
- Init: `src/megatron/bridge/training/initialize.py` — `init_rerun_state`

### Checkpointing
- Async save: `src/megatron/bridge/training/checkpointing.py` — `schedule_async_save`
- Local ckpt: `src/megatron/bridge/training/checkpointing.py` — `LocalCheckpointManager`
- Tests: `tests/functional_tests/training/test_local_checkpointing.py`

## Pitfalls

1. **ft_launcher, not torchrun**: Direct `FaultToleranceConfig` requires
   `ft_launcher`. Using `torchrun` silently disables FT. For non-Slurm,
   set `GROUP_RANK=0`.

2. **Async save requires torch_dist**: `async_save=True` only works with
   `ckpt_format="torch_dist"`. Other formats silently fail or error.

3. **IPR + NeMo-Run**: In-process restart is not compatible with NeMo-Run
   or Slurm preemption plugins. Requires specific PyTorch/NCCL versions
   and env vars.

4. **NVRx vs legacy straggler**: Two detectors exist. Use NVRx
   (`nvrx_straggler`); do not enable both.

5. **stop_if_detected default**: NVRx logs but does not stop training by
   default. Set `stop_if_detected=True` for automatic termination.

6. **NCCL watchdog vs hard_timeout**: For IPR, NCCL watchdog timeout must
   exceed `hard_timeout` or PyTorch kills the process before recovery.

7. **Rerun state machine is alpha**: Use `check_for_nan_in_loss=True` for
   NaN detection, but don't rely on full rerun workflows yet.

## Verification

### Fault tolerance
```bash
./examples/training_features/nemo-mbridge-resiliency/fault_tolerance/run_fault_tolerance.sh
./examples/training_features/nemo-mbridge-resiliency/fault_tolerance/run_fault_tolerance.sh --simulate-fault
```
Look for `[FaultTolerance]` / `[RankMonitorServer]` log lines with section
timeouts. Simulated fault should trigger restart from checkpoint.

### Straggler detection
```bash
uv run python -m torch.distributed.run --nproc_per_node=2 \
    examples/training_features/nemo-mbridge-resiliency/straggler_detection/straggler_detection_example.py
```
Look for `GPU relative performance` and `GPU individual performance` reports
with per-rank scores.

### Async checkpoint
Look for `Scheduling async checkpoint save` in logs. Training iterations
should continue while checkpoint files are being written.

### In-process restart
```bash
pytest tests/functional_tests/training/test_inprocess_restart.py -v
```
Requires compatible PyTorch/NCCL versions.

nemo-mbridge-resiliency installieren

Laden Sie die Skill-Dateien herunter und entpacken Sie sie in Ihr Verzeichnis „.claude/skills/“.

ZIP herunterladen

Klonen Sie das Repository und kopieren Sie die Skill-Dateien in Ihr Projekt.

git clone https://github.com/NVIDIA/skills/tree/main/skills/nemo-mbridge-resiliency # Copy SKILL.md to your .claude/skills/ directory

Kopieren Kopieren
Schnelle Einrichtung: Kopieren Sie den Skill-Ordner nach .claude/skills/ Claude erkennt den Skill automatisch und nutzt ihn.
Repository NVIDIA/skills

Ähnliche Skills

web-search
Zeit aktualisiert 29. Juni 2026
webapp-testing
Zeit aktualisiert 29. Juni 2026
lark-base
Zeit aktualisiert 5. Juli 2026
agentmail
Zeit aktualisiert 29. Juni 2026
OR