Getting Started

How to get started with DeepSpeed

1

Install DeepSpeed

Use pip to install DeepSpeed with `pip install deepspeed`.

2

Prepare Your PyTorch Model

Modify your PyTorch training script to integrate DeepSpeed APIs.

3

Configure DeepSpeed

Create a JSON config file specifying optimization settings like ZeRO stage and batch size.

4

Launch Distributed Training

Use the `deepspeed` launcher to start training across multiple GPUs or nodes.

5

Monitor and Tune

Use DeepSpeed logs and metrics to monitor training performance and adjust configurations as needed.