| What it is | Deep learning optimization library for training and serving very large models | PyTorch library for distributed training, fine-tuning and inference of large AI models | Hugging Face's library to run the same PyTorch code on any distributed setup | Organises PyTorch code and handles the training engineering, from one CPU to thousands of GPUs |
| Features | - train models too big for one GPU with ZeRO sharding
- offload optimizer states and parameters to CPU and NVMe
- 3D, tensor and sequence parallelism
- mixture-of-experts training
- integrates with Hugging Face Transformers, Accelerate and Lightning
| - data, pipeline and sequence parallelism
- 1D, 2D, 2.5D and 3D tensor parallelism
- Zero Redundancy Optimizer (ZeRO)
- auto-parallelism
- heterogeneous memory management (CPU offload)
- configuration-file driven parallelism
- Colossal-Inference for LLM inference
- CLI to launch distributed jobs
- All 9 features
| - Same PyTorch code on CPU, single and multi-GPU, multi-node and TPU
- Mixed precision including FP8
- DeepSpeed integration
- FSDP1 and FSDP2
- Megatron-LM
- Gradient accumulation and Local SGD
- Checkpointing and experiment trackers
- Big model inference
- All 11 features
| - Trainer that automates the PyTorch training loop
- mixed precision
- multi-GPU and multi-node distributed training
- scale without changing model code
- Lightning Fabric for expert control of your own loop
- checkpointing and logging
|