Registry / openlair

openlair/dr-claw/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. Also covers TorchTitan (guides in references/).

Agent skill · version 1.3.1 · from OpenLAIR/dr-claw

Install

npx yarkr-cli add skill:openlair/dr-claw/pytorch-fsdp2

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:openlair/dr-claw/pytorch-fsdp2
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:openlair/dr-claw/pytorch-fsdp2

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:openlair/dr-claw/pytorch-fsdp2

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.