Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 94
  • 34k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-fsdp

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install distributed-training-pytorch-fsdp in Claude Code

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

A

No 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 →

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.

distributed-training-pytorch-fsdp Install

Add to stack

Loading.