Agent skill · Data & Analytics

pytorch-fsdp

Expert guidance for Fully Sharded Data Parallel training with PyTorch FSDP - parameter sharding, mixed precision, CPU offloading, FSDP2

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill pytorch-fsdp --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 155 KB
Bundled scripts: none
Version: 1.0.0
Declared author: Orchestra Research
Requires: [torch>=2.0, transformers]
Path: skills/ai-ml/pytorch-fsdp/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

Review
written from the skill's own SKILL.md · Aug 5, 2026

What it does

Provides expert guidance for developing with PyTorch FSDP, covering features like parameter sharding, mixed precision, CPU offloading, and FSDP2, and targets users working with distributed training in PyTorch.

How it works

  • Triggered when working with pytorch-fsdp, asking about its features, APIs, solutions, debugging, or best practices.
  • Presents patterns and API references for distributed training components (e.g., Join context manager, Joinable, JoinHook) and PyTorch distributed APIs, illustrating how to use distributed primitives, initialization, and context management in the FSDP context.
  • Describes example APIs and classes, including examples of usage and initialization steps, to facilitate understanding of distributed execution and synchronization mechanisms in PyTorch.

When to use it

  • Use when working with pytorch-fsdp
  • Use when asking about pytorch-fsdp features or APIs
  • Use when implementing pytorch-fsdp solutions
  • Use when debugging pytorch-fsdp code
  • Use when learning pytorch-fsdp best practices

What it can touch

  • Tools: claude-code
  • References to PyTorch distributed APIs such as torch.distributed.init_process_group and related helpers, as well as distributed training concepts like DDP and join context management. (All tool references are as described in the skill’s content.)

Caveats

  • The content includes detailed API descriptions and code-like examples that outline behavior of the Join context manager and distributed backends. Users should consult official PyTorch documentation for up-to-date semantics and compatibility notes, especially around initialization and environment configurations.
From the SKILL.md

# Pytorch-Fsdp Skill Comprehensive assistance with pytorch-fsdp development, generated from official documentation. ## When to Use This Skill This skill should be triggered when: - Working with pytorch-fsdp - Asking about pytorch-fsdp features or APIs - Implementing pytorch-fsdp solutions - Debugging pytorch-fsdp code - Learning pytorch-fsdp best practices ## Quick Reference ### Common Patterns **Pattern 1:** Generic Join Context Manager# Created On: Jun 06, 2025 | Last Updated On: Jun 06, 2025 The generic join context manager facilitates distributed training on uneven inputs. This page outlines the API of the relevant classes: Join, Joinable, and JoinHook. For a tutorial, see Distributed Training with Uneven Inputs Using the Join Context Manager. class torch.distributed.algorithms.Join(joinables, enable=True, throw_on_early_termination=False, **kwargs)[source]# This class defines the generic join context manager, which allows custom hooks to be called after a process joins. These hooks should shadow the collective communications of non-joined processes to prevent hanging and erroring and to ensure algorithmic correctness. Refer to JoinHook for details about the hook definition. Wa

What's inside
Steps it walks through
  1. When to Use This Skill
  2. Quick Reference
  3. Common Patterns
  4. Reference Files
  5. Working with This Skill
  6. For Beginners
  7. For Specific Features
  8. For Code Examples
  9. Resources
  10. references/
  11. scripts/
  12. assets/
  13. Notes
  14. Updating
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the pytorch-fsdp skill do?

Expert guidance for Fully Sharded Data Parallel training with PyTorch FSDP - parameter sharding, mixed precision, CPU offloading, FSDP2

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill pytorch-fsdp --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going