transformers vs Megatron-LM

A neutral, constraint-first comparison - live GitHub stats and typed relationships, not marketing.

transformersMegatron-LM
Tagline🤗 Transformers: the model-definition framework for state-of-the-art machine learning modelsGPU-optimized library for training transformer models at scale
Stars162k17k
Forks34k4.2k
Open issues2.5k990
LanguagePythonPython
LicenseApache-2.0Other
Last pushedJul 7, 2026Jul 7, 2026
CategoriesModel Training, Data & Retrieval, LLM FrameworksLLM Frameworks

transformers

Repo hosts a Python library and framework for NLP, text, audio, vision, multimodal AI model creation, training and inference using PyTorch.

Python

Megatron-LM

Megatron-LM is a repository containing Megatron Core, which provides GPU-optimized building blocks for custom training frameworks, and includes pre-configured training scripts for quick experimentation.

Python