AltHub

NVIDIA/Megatron-LM Alternatives

large-scale transformer training

Megatron-LM is a GPU-optimized library for training transformer models at scale, providing advanced parallelism strategies (TP, PP, DP, EP, CP) and mixed precision support.

17.7kPythonNOASSERTIONactive · last push 1mo agoGitHub

Same job, different approach

Solves the same problem with a different architecture or at a different layer. Expect to rewrite the integration.

Lightning-AI/litgptGitHub

Lightning-based training framework with ready-made recipes, simpler than Megatron's custom parallelism.

20+ high-performance LLMs with recipes to pretrain, finetune and deploy at scale.

13.7k
Python
Apache-2.0
active22d ago
PaddlePaddle/PaddleFormersGitHub

PaddlePaddle-based transformer training library for users committed to that framework.

PaddleFormers is an easy-to-use library of pre-trained large language model zoo based on PaddlePaddle.

13.0k
Python
Apache-2.0
active15d ago

Older generation, or narrower

An earlier or more limited way to do the job. Still the right call when you need something small, proven, or CPU-only.

EleutherAI/gpt-neoxGitHub

Narrower, focused on GPT-style autoregressive models with a simpler Megatron-based implementation.

An implementation of model parallel autoregressive transformers on GPUs, based on the Megatron and DeepSpeed libraries

7.5k
Python
Apache-2.0
active4mo ago
kingoflolz/mesh-transformer-jaxGitHub

Older JAX-based model-parallel training, unmaintained but relevant for JAX users.

Model parallel transformers in JAX and Haiku

6.4k
Python
Apache-2.0
dormant3.7y ago
facebookresearch/metaseqGitHub

Archived PyTorch training library from Meta, an older alternative for large-scale pretraining.

Repo for external large-scale work

6.5k
Python
MIT
archived2.4y ago

Listed as an alternative to

These projects were analysed and named Megatron-LM among their alternatives. The relationship is not symmetric — how Megatron-LM rates them is a separate judgement, made when Megatron-LM is analysed in its own right.

EleutherAI/gpt-neoxGitHub

calls Megatron-LM “Actively maintained original Megatron framework; choose it for current upstream support and the broadest ecosystem rather than GPT-NeoX's DeepSpeed-specific integrations.”

An implementation of model parallel autoregressive transformers on GPUs, based on the Megatron and DeepSpeed libraries

7.5kPythonactive
Lightning-AI/litgptGitHub

calls Megatron-LM “specialized large-scale transformer training framework, more complex but powerful for extreme parallelism, not a drop-in replacement”

20+ high-performance LLMs with recipes to pretrain, finetune and deploy at scale.

13.7kPythonactive
PaddlePaddle/PaddleFormersGitHub

calls Megatron-LM “PyTorch research framework for distributed transformer training; choose it for Megatron parallelism on Nvidia GPUs.”

PaddleFormers is an easy-to-use library of pre-trained large language model zoo based on PaddlePaddle.

13.0kPythonactive
kingoflolz/mesh-transformer-jaxGitHub

calls Megatron-LM “Pick it for PyTorch-based model-parallel transformer training with broader GPU ecosystem support.”

Model parallel transformers in JAX and Haiku

6.4kPythondormant