| What it is | Hugging Face's library to run the same PyTorch code on any distributed setup | Deep learning optimization library for training and serving very large models | Organises PyTorch code and handles the training engineering, from one CPU to thousands of GPUs | A PyTorch-native platform for training generative AI models at scale |
| 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
| - 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
| - 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
| - composable FSDP2, tensor, pipeline, context and expert parallelism
- pretraining, fine-tuning and RL in one codebase
- readable Python recipes
- DeepSeek, Qwen, Kimi, gpt-oss, Llama and FLUX models
- MXFP8 and NVFP4 low precision
- TitanRL with vLLM generation
|