distributed-training-pytorch-fsdp
Skill by davila7
Provides guidance for PyTorch Fully Sharded Data Parallel (FSDP) training, including the torch.distributed communication backends and uneven-input handling. Aimed at developers training large PyTorch models across GPUs or nodes.
Install distributed-training-pytorch-fsdp
Built from the published package, never by AI.
git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.claude/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/ai-research/distributed-training-pytorch-fsdp ~/.claude/skills/distributed-training-pytorch-fsdpRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install distributed-training-pytorch-fsdp in Claude Code
git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/ai-research/distributed-training-pytorch-fsdp ~/.gemini/antigravity-cli/skills/distributed-training-pytorch-fsdpAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install distributed-training-pytorch-fsdp in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a reference built from PyTorch documentation for distributed training. Its description covers FSDP topics such as parameter sharding, mixed precision, CPU offloading and FSDP2. The included text focuses on torch.distributed: the Join context manager for uneven inputs, the Joinable and JoinHook classes, and the communication backends.
It explains which backend to use for each hardware setup. NCCL is recommended for CUDA GPU training and Gloo for CPU training, with Gloo as a fallback if NCCL has problems. It also covers NCCL and Gloo environment variables for choosing network interfaces and debugging. It suits developers who train PyTorch models across multiple processes or machines and need setup and troubleshooting guidance.
Written from the project's SKILL.md and checked against it.
What it can do
- Join context managerExplains Join, Joinable and JoinHook for training on uneven inputs across processes.
- Backend selectionRecommends NCCL, Gloo or MPI based on GPU or CPU hosts and the interconnect type.
- Network interface setupDescribes NCCL_SOCKET_IFNAME and GLOO_SOCKET_IFNAME for choosing network interfaces.
- NCCL debuggingCovers NCCL_DEBUG and NCCL_DEBUG_SUBSYS for diagnosing hangs and initialization failures.
- Collective support tableShows which collective operations each backend supports on CPU and GPU.
- FSDP topicsLists FSDP areas in its description: sharding, mixed precision, CPU offloading and FSDP2.
What you need
- torch>=2.0
- transformers
Try asking
- Which torch.distributed backend should I use on my InfiniBand GPU cluster?
- How do I set NCCL_SOCKET_IFNAME to pick the right network interface?
- Explain how the Join context manager handles uneven inputs across ranks.
Good to know
- Built from documentation, and the included text does not show detailed FSDP API examples.
- The included text is cut off in the middle of the torch.distributed section.
- The source notes that Gloo runs slower than NCCL for GPUs.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: cli-tool/components/skills/ai-research/distributed-training-pytorch-fsdp/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md156 KB -
references/index.md96 B -
references/other.md329 KB
Alternatives to distributed-training-pytorch-fsdp
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
distributed-training-pytorch-fsdp: common questions
Which backend should I use for GPU training with PyTorch?
The source recommends NCCL for distributed training with CUDA GPUs. It suggests Gloo as a fallback option if NCCL causes problems.
Does this skill cover FSDP2?
The skill description lists FSDP2 along with parameter sharding, mixed precision and CPU offloading. The included text does not show those FSDP sections in detail.
What does the Join context manager do?
It lets processes with uneven numbers of inputs keep training without hanging. It calls hooks that shadow the collective communications of processes that have already joined.
How do I install distributed-training-pytorch-fsdp?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is distributed-training-pytorch-fsdp free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is distributed-training-pytorch-fsdp safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to distributed-training-pytorch-fsdp?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
