pytorch-fsdp

Apply Fully Sharded Data Parallel to shard parameters across multi-GPU workers.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/jacardl/New-Radar --skill pytorch-fsdp-jacardl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pytorch-fsdp
Source: https://github.com/jacardl/New-Radar/tree/main/backend/frameworks/hermes-agent/skills/mlops/training/pytorch-fsdp
Command: npx skills add https://github.com/jacardl/New-Radar --skill pytorch-fsdp-jacardl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Fully Sharded Data Parallel (FSDP) training helps memory-constrained models scale across multiple GPUs by sharding parameters and overlapping communication with computation.

Core Features & Use Cases

  • Per-parameter sharding across devices for memory efficiency.
  • CPU offloading and mixed precision to balance compute and memory.
  • FSDP2 migration guidance for large-scale models and future-proofing.

Quick Start

Apply fully_shard to your model and run training with a device mesh to enable memory-efficient distributed training.

Frequently Asked Questions about pytorch-fsdp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is Fully Sharded Data Parallel and when do I need it for PyTorch distributed training?

Fully Sharded Data Parallel (FSDP) is a memory-optimization technique that shards parameters across data-parallel workers to solve memory and scalability bottlenecks in large-model training across multi-GPU nodes.

How do I apply FSDP to my model for memory-efficient distributed training?

To apply FSDP, use the fully_shard function on your model and run training with a mesh-based device layout to enable per-parameter sharding, overlapping communication with computation across distributed workers.

Does FSDP support CPU offloading and mixed precision to balance compute and memory?

Yes, FSDP supports CPU offloading and mixed precision to balance compute and memory during distributed training, allowing larger models to fit within hardware constraints across multi-GPU nodes.

Can I use FSDP with torch versions 2.0 and above and transformers models?

Yes, FSDP meets requirements for usage by torch>=2.0 and transformers, managing dependencies via a mesh-based device layout and pre/post hooks for param sharding and gradient reduction.

What is the best way to future-proof large-scale models using FSDP2 migration?

FSDP2 migration guidance provides future-proofing for large-scale models by updating the sharding approach, ensuring continued memory efficiency and scalability across distributed training workflows.

Why does FSDP shard parameters across devices instead of replicating them?

FSDP shards parameters across devices for memory efficiency, solving memory-constrained model scaling by distributing parameter storage and overlapping communication with computation during gradient reduction.