Aoti Debug
pytorch/pytorch
Debug AOTInductor (AOTI) errors and crashes. An agent skill from pytorch/pytorch.
Guide for debugging distributed training issues in AReaL. An agent skill from areal-project/AReaL.
$ npx skills add areal-project/AReaL --skill debug-distributed -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install areal-project/AReaL debug-distributed --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/areal-project/AReaL.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/debug-distributed .claude/skills/debug-distributed && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "debug-distributed" agent skill from https://github.com/areal-project/AReaL/tree/main/.agents/skills/debug-distributed into .claude/skills/debug-distributed/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug-distributed", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/areal-project/AReaL/tree/main/.agents/skills/debug-distributedType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add areal-project/AReaL --skill debug-distributed -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install areal-project/AReaL debug-distributed --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/areal-project/AReaL.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/debug-distributed .agents/skills/debug-distributed && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "debug-distributed" agent skill from https://github.com/areal-project/AReaL/tree/main/.agents/skills/debug-distributed into .agents/skills/debug-distributed/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug-distributed", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add areal-project/AReaL --skill debug-distributed -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install areal-project/AReaL debug-distributed --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/areal-project/AReaL.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/debug-distributed .cursor/skills/debug-distributed && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "debug-distributed" agent skill from https://github.com/areal-project/AReaL/tree/main/.agents/skills/debug-distributed into .cursor/skills/debug-distributed/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug-distributed", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/areal-project/AReaL.git --path .agents/skills/debug-distributed--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add areal-project/AReaL --skill debug-distributed -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install areal-project/AReaL debug-distributed --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/areal-project/AReaL.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/debug-distributed .gemini/skills/debug-distributed && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "debug-distributed" agent skill from https://github.com/areal-project/AReaL/tree/main/.agents/skills/debug-distributed into .gemini/skills/debug-distributed/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug-distributed", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install areal-project/AReaL debug-distributedInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add areal-project/AReaL --skill debug-distributed -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/areal-project/AReaL.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/debug-distributed .github/skills/debug-distributed && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "debug-distributed" agent skill from https://github.com/areal-project/AReaL/tree/main/.agents/skills/debug-distributed into .github/skills/debug-distributed/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug-distributed", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add areal-project/AReaL --skill debug-distributed -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install areal-project/AReaL debug-distributed --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/areal-project/AReaL.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/debug-distributed .opencode/skills/debug-distributed && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "debug-distributed" agent skill from https://github.com/areal-project/AReaL/tree/main/.agents/skills/debug-distributed into .opencode/skills/debug-distributed/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug-distributed", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
debug-distributedGuide for debugging distributed training issues in AReaL. An agent skill from areal-project/AReaL.
Debug Distributed is an agent skill from areal-project/AReaL. Guide for debugging distributed training issues in AReaL. Use when user encounters hangs, wrong results, OOM, or communication errors.
Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Deep learning and Debugging. The repository describes itself as: The RL Bridge for LLM-based Agent Applications. Made Simple & Flexible. The licence is Apache-2.0.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 2fad2d0. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pipFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Debug Distributed loads about 1.6k tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 275 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from areal-project/AReaL at commit 2fad2d0, republished under its Apache-2.0 licence (© areal-project). 275 words, ~1,591 tokens.
.claude/skills/debug-distributed/SKILL.md (or your agent's skills folder).Debugging guide for distributed training issues in AReaL (FSDP2, TP, CP, EP).
This skill is triggered when:
Always follow the minimal demo principle: Reproduce with the least amount of code to narrow down the issue faster.
# Bad: Debug in full training loop
# Good: Create minimal script
import torch
import torch.distributed as dist
dist.init_process_group("nccl")
rank = dist.get_rank()
# Reproduce the exact operation that fails
tensor = torch.ones(10).cuda()
dist.all_reduce(tensor) # <-- Isolate the failing op
print(f"Rank {rank}: {tensor}")Reduction strategy:
Environment Variables for Debugging:
# Full debug logging
export TORCH_DISTRIBUTED_DEBUG=DETAIL
export NCCL_DEBUG=INFO
export NCCL_DEBUG_SUBSYS=ALL
# torch.compile debugging
export TORCH_LOGS="+dynamo,recompiles"
export TORCHDYNAMO_VERBOSE=1Dump Call Stack with py-spy (for hung processes):
# Find process IDs
ps aux | grep python
# Dump call stack of specific rank
py-spy dump --pid <PID>
# Record flame graph for performance analysis
py-spy record -o profile.svg --pid <PID> --duration 30Common Causes:
all_reduce, another doesn't.Debug Steps:
# Verify group membership
mesh = parallel_dims.get_mesh("dp_shard_cp")
group = mesh.get_group()
print(f"Rank {dist.get_rank()}: group size = {dist.get_world_size(group)}")
# Print shapes on all ranks
print(f"Rank {dist.get_rank()}: tensor.shape = {tensor.shape}")
dist.barrier()Timeout Adjustment (for debugging only):
from areal.engine.core.distributed import patch_dist_group_timeout
from datetime import timedelta
patch_dist_group_timeout(timedelta(minutes=30))Check DTensor Placements:
from torch.distributed.tensor import DTensor
if isinstance(param, DTensor):
print(f"Param {name}: placements={param.placements}, mesh={param.device_mesh}")Verify Gradient Reduction:
for name, param in model.named_parameters():
if param.grad is not None:
print(f"Rank {dist.get_rank()}: {name} grad_sum = {param.grad.sum().item()}")Check Memory Usage:
print(f"Rank {dist.get_rank()}: "
f"allocated={torch.cuda.memory_allocated()/1e9:.2f}GB, "
f"reserved={torch.cuda.memory_reserved()/1e9:.2f}GB")Check FSDP Coverage:
for name, param in model.named_parameters():
is_dtensor = isinstance(param, DTensor)
print(f"{name}: is_dtensor={is_dtensor}, shape={param.shape}")| Error | Cause | Solution |
|---|---|---|
NCCL WARN Cuda failure | GPU communication | Check NCCL version, GPU topology |
RuntimeError: Timed out | Rank synchronization | Increase timeout, check code paths |
Invalid device mesh | Mesh configuration | Verify world_size = dp * tp * cp |
| Variable | Purpose |
|---|---|
TORCH_DISTRIBUTED_DEBUG=DETAIL | Detailed distributed logging |
NCCL_DEBUG=INFO | NCCL communication logging |
NCCL_DEBUG_SUBSYS=ALL | All NCCL subsystems |
TORCH_LOGS="+dynamo,recompiles" | torch.compile logging |
TORCHDYNAMO_VERBOSE=1 | Dynamo verbose output |
CUDA_LAUNCH_BLOCKING=1 | Synchronous CUDA (slow, for debugging) |
# Install
pip install py-spy
# Dump call stack of hung process
py-spy dump --pid <PID>
# Dump all Python processes
pgrep -f python | xargs -I {} py-spy dump --pid {}
# Record flame graph
py-spy record -o profile.svg --pid <PID> --duration 30def print_all_ranks(msg):
for r in range(dist.get_world_size()):
if dist.get_rank() == r:
print(f"[Rank {r}] {msg}")
dist.barrier()def debug_mesh(parallel_dims):
mesh = parallel_dims.world_mesh
for dim_name in mesh.mesh_dim_names:
submesh = parallel_dims.get_mesh(dim_name)
if submesh:
print(f"Rank {dist.get_rank()}: {dim_name} size={submesh.size()}")def check_tensor_consistency(tensor, name, group=None):
local_sum = tensor.sum().item()
tensor_sums = [None] * dist.get_world_size(group)
dist.all_gather_object(tensor_sums, local_sum, group=group)
if dist.get_rank() == 0 and len(set(tensor_sums)) > 1:
print(f"WARNING: {name} inconsistent: {tensor_sums}")| Component | File |
|---|---|
| Parallel Dims | areal/experimental/models/archon/parallel_dims.py |
| Expert Parallel | areal/experimental/models/archon/expert_parallel.py |
| Ulysses (CP) | areal/experimental/models/archon/ulysses.py |
| FSDP/TP Apply | areal/experimental/models/archon/qwen2/infra/parallelize.py |
© areal-project, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/debug-distributed of areal-project/AReaL.
Open the folder on GitHubat commit 2fad2d0
We found 3 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in areal-project/AReaL, which our catalogue first saw on October 7, 2026.
Debug Distributed next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Debug Distributed this skillareal-project/AReaL | 5.8k | 1 repos | ~1.6k | Automated safety check: Pass | Apache-2.0 | |
| Aoti Debugpytorch/pytorch | 104k | 1 repos | ~1.7k | Automated safety check: Pass | Custom licence | |
| The Art of Debuggingstas00/the-art-of-debugging | 1.7k | — | ~6.1k | Automated safety check: Notes | CC-BY-SA-4.0 | |
| Veomni DebugByteDance-Seed/VeOmni | 2.2k | — | ~2.8k | Automated safety check: Pass | Apache-2.0 | |
| Ascendcascend-ai-coding/awesome-ascend-skills | 174 | — | ~3.5k | Automated safety check: Pass | None | |
| Cuda Cpp Kernelvipshop/cache-dit | 1.3k | — | ~2.3k | Automated safety check: Pass | Apache-2.0 |
pytorch/pytorch
Debug AOTInductor (AOTI) errors and crashes. An agent skill from pytorch/pytorch.
stas00/the-art-of-debugging
Condensed debugging method and tool recipes for Unix, Python and PyTorch programs: crashes, hangs, segfaults, wrong output, CUDA OOM, NaN values and slowness.
ByteDance-Seed/VeOmni
A skill your agent uses for ANY bug, error, crash, wrong output, loss divergence, gradient explosion, test failure, CUDA error, distributed training hang, checkpoint load failure, or unexpected…
ascend-ai-coding/awesome-ascend-skills
End-to-end AscendC custom operator development for Ascend NPU in an ascend-kernel (csrc/ops + build.sh + torchnpu PyTorch custom op) project.
vipshop/cache-dit
A skill your agent uses when writing, debugging, porting, reviewing, or optimizing CUDA C++ or PTX kernels; investigating CUDA Runtime or Driver API behavior; profiling kernels with Nsight Systems…
pytorch/executorch
Helps build, test and extend the Qualcomm AI Engine Direct (QNN) backend in ExecuTorch, with routes for new ops, model export, Buck-vs-CMake parity fixes and per-layer accuracy debugging.
areal-project/AReaL
Guide for adding a new dataset loader to AReaL. An agent skill from areal-project/AReaL.
areal-project/AReaL
Guide for adding a new reward function to AReaL. An agent skill from areal-project/AReaL.
areal-project/AReaL
Guide for adding a new model to the Archon engine. An agent skill from areal-project/AReaL.
areal-project/AReaL
Guide for adding unit tests to AReaL. An agent skill from areal-project/AReaL.
areal-project/AReaL
Guide for adding a new RolloutWorkflow to AReaL. An agent skill from areal-project/AReaL.
areal-project/AReaL
Read-only pull request review workflow with risk analysis, targeted checklists, and Codex subagent consultation.
Categories
Guide for debugging distributed training issues in AReaL. An agent skill from areal-project/AReaL. Debug Distributed is an agent skill from areal-project/AReaL. Guide for debugging distributed training issues in AReaL.
Debug Distributed fits situations like: user encounters hangs; communication errors.
Run `npx skills add areal-project/AReaL --skill debug-distributed -a claude-code`. Or copy the skill folder (.agents/skills/debug-distributed in areal-project/AReaL) into .claude/skills/debug-distributed in your project. Claude Code loads it when a task matches its description.
Run `npx skills add areal-project/AReaL --skill debug-distributed -a codex`. Or copy the skill folder (.agents/skills/debug-distributed in areal-project/AReaL) into .agents/skills/debug-distributed in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add areal-project/AReaL --skill debug-distributed -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/debug-distributed, .gemini/skills/debug-distributed, .github/skills/debug-distributed and .opencode/skills/debug-distributed in your project.
Going by SKILL.md and its folder, Debug Distributed needs the command-line tools its instructions call (pip). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Debug Distributed is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.6k tokens (SKILL.md is roughly 6.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Debug Distributed: Aoti Debug (pytorch/pytorch, 104k stars), The Art of Debugging (stas00/the-art-of-debugging, 1.7k stars), Veomni Debug (ByteDance-Seed/VeOmni, 2.2k stars) and Ascendc (ascend-ai-coding/awesome-ascend-skills, 174 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
areal-project (a GitHub organization) maintains it in areal-project/AReaL, which has 5,814 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 3, 2026.
Source: areal-project/AReaL on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.