deepspeed

Configure DeepSpeed distributed training for large transformer models with ZeRO and mixed precision.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/tadod12/fraud-detection-research --skill deepspeed-tadod12
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deepspeed
Source: https://github.com/tadod12/fraud-detection-research/tree/main/.agent/skills/08-distributed-training/deepspeed
Command: npx skills add https://github.com/tadod12/fraud-detection-research --skill deepspeed-tadod12

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

DeepSpeed enables memory- and compute-efficient distributed training for extremely large transformer models by partitioning states, enabling 3D parallelism, and providing optimized kernels.

Core Features & Use Cases

  • ZeRO optimization stages to dramatically reduce memory footprint during training.
  • Pipeline, data, and model parallelism to scale across multiple GPUs and nodes.
  • Mixed-precision training (FP16, BF16, FP8) and efficient optimizers including 1-bit Adam.
  • Sparse attention and MoE support for high-scale NLP and multi-modal models.
  • Easy integration with Megatron-LM and PyTorch training scripts for faster iteration.

Quick Start

Install DeepSpeed and run a small transformer training script with a deepspeed_config.json enabling ZeRO and mixed precision.

Frequently Asked Questions about deepspeed

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

FAQPage Schema
How do I reduce GPU memory usage when training large transformer models?

ZeRO optimization stages partition model states, gradients, and optimizer parameters across multiple GPUs to dramatically reduce memory footprint, enabling training of massive transformer models that exceed single GPU memory limits.

Can I use mixed precision training with FP16 and BF16 for multi-GPU distributed training?

Yes, mixed precision training supports FP16, BF16, and FP8 formats to optimize compute efficiency across multi-GPU and multi-node training scenarios for large NLP workloads.

What is the best way to scale distributed training across multiple nodes for NLP models?

Scaling distributed training across multiple nodes is best achieved by combining pipeline parallelism, data parallelism, and model parallelism to achieve 3D parallelism, allowing massive transformer models to train efficiently across multi-GPU and multi-node setups.

How do I configure ZeRO stages and offloading options in a deepspeed_config.json file?

Configure ZeRO stages and offloading options by defining optimization parameters inside a deepspeed_config.json file, then enabling DeepSpeed in your PyTorch training script to apply memory partitioning and optimizer offloading.

Does sparse attention work with pipeline parallelism for high-scale multi-modal models?

Yes, sparse attention is supported alongside pipeline parallelism and Mixture of Experts to optimize memory and compute efficiency for high-scale NLP and multi-modal transformer models.

When should I not use ZeRO stage 3 for distributed training?

You should avoid ZeRO stage 3 when the communication overhead from partitioning all model states outweighs memory savings, typically on smaller models or single-GPU setups where standard data parallelism is sufficient.