Orchestra-Research/AI-Research-SKILLs / 08-distributed-training/pytorch-fsdp2
pytorch-fsdp2
VerifiedAdds 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 10.7 KB |
| references/pytorch_dcp_async_recipe.md | markdown | 808 B |
| references/pytorch_dcp_overview.md | markdown | 1022 B |
| references/pytorch_dcp_recipe.md | markdown | 1.0 KB |
| references/pytorch_ddp_notes.md | markdown | 461 B |
| references/pytorch_device_mesh_tutorial.md | markdown | 1.2 KB |
| references/pytorch_examples_fsdp2.md | markdown | 742 B |
| references/pytorch_fsdp1_api.md | markdown | 396 B |
| references/pytorch_fsdp2_tutorial.md | markdown | 2.4 KB |
| references/pytorch_fully_shard_api.md | markdown | 2.8 KB |
| references/pytorch_tp_tutorial.md | markdown | 994 B |
| references/ray_train_fsdp2_example.md | markdown | 592 B |
| references/torchtitan_fsdp_notes.md | markdown | 666 B |
references/pytorch_dcp_overview.md
View on GitHub# Reference: Distributed Checkpoint (DCP) overview (torch.distributed.checkpoint)
**Source (official):** PyTorch docs — `torch.distributed.checkpoint`
https://docs.pytorch.org/docs/stable/distributed.checkpoint.html
Created: Nov 16, 2022 • Last updated: Oct 08, 2025
## What DCP does
- Supports saving/loading from **multiple ranks in parallel**
- Handles **load-time resharding**, enabling saving with one cluster topology and loading into another
- Produces **multiple files per checkpoint** (often at least one per rank)
- Operates “in place”: the model allocates storage first; DCP loads into that storage
## Important caveats
- The docs warn: **no guarantees of backwards compatibility** across PyTorch versions for saved `state_dict`s.
- Process-group usage: if you pass a process group, only those ranks should call save/load, and all tensors must belong to that group.
## Where to learn usage
The doc links to official “Getting Started with DCP” and “Asynchronous Saving with DCP” recipes.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |