Megatron-DeepSpeed
FreeDeepSpeed version of NVIDIA's Megatron-LM that adds additional support for several features such as MoE model training, Curriculum Learning, 3D Parallelism, and others.
About Megatron-DeepSpeed
Megatron-DeepSpeed is a fork of NVIDIA's Megatron-LM that integrates DeepSpeed optimization technologies for training large transformer language models at scale. It extends Megatron-LM with additional support for Mixture of Experts (MoE) model training, Curriculum Learning, and 3D Parallelism (tensor, sequence, and pipeline parallelism). The repository provides efficient, model-parallel, and multi-node pre-training of transformer-based models including GPT, BERT, T5, and vision transformers. It includes example scripts and recipes for running on Azure and AzureML, making it easier to deploy large-scale training workloads. The project is actively maintained by the DeepSpeed team at Microsoft and synced with upstream Megatron-LM.
Key Features
Pros & Cons
- Open source and free to use
- Leverages DeepSpeed techniques for memory and speed improvements
- Supports a wide range of model architectures (GPT, BERT, T5, vision)
- Includes ready-to-use recipes for Azure and AzureML
- Actively maintained by Microsoft's DeepSpeed team
- Extends Megatron-LM with advanced parallelism and MoE support
- Requires substantial computational resources (multi-GPU/multi-node clusters)
- Complex setup and configuration, not beginner-friendly
- Potential bugs due to large merge with upstream (acknowledged by maintainers)
- Documentation mainly provided through example scripts rather than comprehensive guides