pytorch-fsdp2

Adds PyTorch FSDP2 (fully_shard) to training scripts with correct init, sharding, mixed precision/offload config, and distributed checkpointing. Use when models exceed single-GPU memory or when you need DTensor-based sharding with DeviceMesh.

by Orchestra-Research 12k GitHub stars MIT Updated Jun 16, 2026
pytorch-fsdp2 skill by Orchestra-Research
pytorch-fsdp2 — Data skill by Orchestra-Research

Overview

pytorch-fsdp2 is an open-source data skill for Claude Code and compatible agents, published by Orchestra-Research. Its author describes it as: “Adds PyTorch FSDP2 (fully_shard) to training scripts with correct init, sharding, mixed precision/offload config, and distributed checkpointing. Use when models exceed single-GPU memory or when you need DTensor-based…”. The project has 12k stars on GitHub and is available under the MIT license. Add it to your setup with `/plugin marketplace add Orchestra-Research/AI-Research-SKILLs`.

What pytorch-fsdp2 does

This skill teaches a coding agent how to **add PyTorch FSDP2** to a training loop with correct initialization, sharding, mixed precision/offload configuration, and checkpointing.

What’s inside

The SKILL.md for pytorch-fsdp2 is organised into these sections:

  • When to use this skill
  • Alternatives (when FSDP2 is not the best fit)
  • Contract the agent must follow
  • Step-by-step procedure
  • 0) Version & environment sanity
  • 1) Initialize distributed and set device
  • 2) Build model on meta device (recommended for very large models)
  • 3) Apply fullyshard() bottom-up (wrapping policy = “apply where needed”)
  • 4) Configure reshardafterforward for memory/perf trade-offs
  • 5) Mixed precision & offload (optional but common)
  • 6) Optimizer, gradient clipping, accumulation
  • 7) Checkpointing: prefer DCP or distributed state dict helpers

Installation

Add pytorch-fsdp2 to your agent with:

/plugin marketplace add Orchestra-Research/AI-Research-SKILLs

Review a skill’s source before installing it — skills can instruct your agent to run commands. This command comes from the skill’s public repository, which is the source of truth for setup steps. New to skills? Read how to install Claude Code skills.

Supported agents

  • Claude Code — ships a claude code plugin marketplace
  • Codex — declared in the repository topics

License

pytorch-fsdp2 is published under the MIT license.

Strengths

  • Clear MIT license — safe to read and adapt within its terms
  • Ships in Orchestra-Research/AI-Research-SKILLs, an established project with 11,807 GitHub stars
  • Works with Claude Code, Codex

Author

Orchestra-Research 41 skills in the catalog · GitHub profile ↗
View skills

Topics

Need a skill like this, tailored to your team?Build a custom skill →

Frequently asked questions

What does pytorch-fsdp2 do?
Adds PyTorch FSDP2 (fully_shard) to training scripts with correct init, sharding, mixed precision/offload config, and distributed checkpointing. Use when models exceed single-GPU memory or when you need DTensor-based sharding with DeviceMesh.
How do I install pytorch-fsdp2?
Run /plugin marketplace add Orchestra-Research/AI-Research-SKILLs in your agent, then reload your skills. Review the source at https://github.com/Orchestra-Research/AI-Research-SKILLs before installing.
Is pytorch-fsdp2 free to use?
Yes. pytorch-fsdp2 is free and open source under the MIT license, so you can read, run, and adapt it within that license's terms.
Which agents does pytorch-fsdp2 work with?
pytorch-fsdp2 lists Claude Code and Codex — named in its SKILL.md, its plugin marketplace or its repository topics. Skills use the portable SKILL.md format, so other agents that read that format may load it too.
Where does pytorch-fsdp2 come from?
pytorch-fsdp2 ships inside Orchestra-Research/AI-Research-SKILLs, a repository that contains 41 catalogued skills in total. The repository's 11,807 GitHub stars apply to that whole collection, not to this skill on its own.

Related skills

More Data skills →

Scalable data processing for ML workloads. Streaming execution across CPU/GPU, supports Parquet/CSV/JSON/images. Integrates with Ray Train, PyTorch, TensorFlow. Scales from single machine to 100s of nodes. Use for batch inference, data preprocessing, multi-modal data loading, or distributed ETL pipelines.

Claude CodeCodex
12k GitHub stars MIT Updated Jun 16, 2026 Free

Anthropic's method for training harmless AI through self-improvement. Two-phase approach - supervised learning with self-critique/revision, then RLAIF (RL from AI Feedback). Use for safety alignment, reducing harmful outputs without human labels. Powers Claude's safety system.

Claude CodeCodex
12k GitHub stars MIT Updated Jun 16, 2026 Free

Expert guidance for fine-tuning LLMs with Axolotl - YAML configs, 100+ models, LoRA/QLoRA, DPO/KTO/ORPO/GRPO, multimodal support

Claude CodeCodex
12k GitHub stars MIT Updated Jun 16, 2026 Free

GPU-accelerated data curation for LLM training. Supports text/image/video/audio. Features fuzzy deduplication (16× faster), quality filtering (30+ heuristics), semantic deduplication, PII redaction, NSFW detection. Scales across GPUs with RAPIDS. Use for preparing high-quality training datasets, cleaning web data, or deduplicating large corpora.

Claude CodeCodex
12k GitHub stars MIT Updated Jun 16, 2026 Free

Processes and analyzes data with resident-kernel engines (DuckDB, Polars) and one-shot tools. Use for CSV/parquet/JSON analysis, group-by/join/aggregation, time series, distributions, cleaning, or plotting a dataset.

↑ GrowingActive CodexCursorOpenCode
69k GitHub stars Other Updated Sep 21, 2026 Free