debug-distributed

Diagnose distributed training hangs, OOM, and NCCL errors in AReaL.

5.7k|573|Updated Feb 24, 2025
One-click install
npx skills add https://github.com/inclusionAI/AReaL --skill debug-distributed
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debug-distributed
Source: https://github.com/inclusionAI/AReaL/tree/main/.claude/skills/debug-distributed
Command: npx skills add https://github.com/inclusionAI/AReaL --skill debug-distributed

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides engineers to diagnose and fix distributed training issues in AReaL, including hangs, inconsistent results, OOM, and NCCL/communication errors that can occur across ranks.

Core Features & Use Cases

  • Minimal reproduction workflows: Create small, reproducible examples to isolate the failing operation.
  • Rank-aware diagnostics: Verify group membership, tensor shapes, and synchronization across all ranks.
  • Environment & tooling guidance: Provide environment variable tips and debugging tools to collect actionable signals.

Quick Start

Diagnose and fix distributed training issues in AReaL by following the guided workflow and applying the recommended checks to reproduce and resolve failures.

Frequently Asked Questions about debug-distributed

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix distributed training hangs and NCCL errors in PyTorch?

To fix distributed training hangs and NCCL errors, use rank-aware diagnostics to verify group membership and synchronization across all ranks. You can isolate the failing operation using a minimal reproduction workflow and apply environment variable configurations to resolve communication failures.

Why does FSDP run out of memory across different ranks?

FSDP runs out of memory across different ranks due to inconsistent tensor shapes or synchronization issues. You can diagnose these OOM errors by applying rank-aware checks to verify group membership and tensor shapes, then creating a minimal reproduction workflow to isolate the failing operation.

What is the best way to debug inconsistent results in distributed training?

The best way to debug inconsistent results in distributed training is to use rank-aware diagnostics to verify synchronization across all ranks. You should create a small, reproducible example to isolate the failing operation and identify where tensor shapes or group membership diverge.

How do I create a minimal reproduction workflow for distributed training failures?

You create a minimal reproduction workflow for distributed training failures by building a small, reproducible example that isolates the failing operation. This skill guides you through the debugging steps and rank-aware checks needed to systematically troubleshoot issues like hangs, OOM, and NCCL errors.

What environment variables are needed to troubleshoot NCCL communication errors?

To troubleshoot NCCL communication errors, you need environment variable configurations and debugging tools that collect actionable signals. This skill provides environment and tooling guidance to help you capture the necessary diagnostic information across ranks to resolve communication failures.