NVIDIA-NeMo

    NVIDIA-NeMo/Megatron-Bridge

    Training library for Megatron-based models with bidirectional Hugging Face conversion capability

    machine-learning
    Python
    Apache-2.0
    970 stars
    562 forks
    970 GitHub watchers
    Updated Oct 25, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    4 releases in the last 90 days, the latest 19 days ago, with 213 contributors on GitHub.

    Gained 40% fewer stars in the last 90 days than in the 90 days before.

    Use Cases & Benefits

    • Provides a PyTorch-native training library enabling bidirectional checkpoint conversion between Hugging Face and Megatron Core formats for large language and vision models.
    • Enables seamless interoperability and efficient parallel training with built-in verification, supporting advanced mixed precision and model parallelism for scalable performance.
    • Use for converting and verifying checkpoints between Hugging Face and Megatron formats to leverage Megatron Core's parallelism in custom training workflows.
    • Use for pretraining and fine-tuning Megatron-based large models with support for tensor and pipeline parallelism and parameter-efficient finetuning methods like LoRA.
    • Use for developing and deploying state-of-the-art LLM and VLM models with optimized training recipes and scalable distributed training on multi-GPU or multi-node clusters.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Apache 2.0

    Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.

    Community files

    • README: present
    • Contributing guide: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    NeMo Megatron Bridge is a PyTorch-native library within the NeMo Framework that provides pretraining, SFT and LoRA for popular LLM and VLM models. It serves as a powerful bridge, conversion, and verification layer between 🤗 Hugging Face and Megatron Core. It provides bidirectional checkpoint conversion between these formats, enabling other projects to leverage Megatron Core's parallelism capabilities or export models for various inference engines. The bridge includes built-in verification mechanisms to ensure conversion accuracy and checkpoint integrity across different model formats.

    On top of the bridge, NeMo Megatron Bridge provides a performant and scalable PyTorch-native training loop that leverages Megatron Core to deliver state-of-the-art training throughput. It supports pretraining and fine-tuning with features like tensor and pipeline parallelism, and mixed precision (FP8, BF16, FP4, etc.). Users can either use existing 🤗 Hugging Face models or define custom PyTorch model definitions for flexible end-to-end workflows.

    NeMo Megatron Bridge is a refactor of the previous NeMo training stack that adopts a PyTorch-native training loop to provide greater flexibility and customizability for developers.

    Excerpt from the NVIDIA-NeMo/Megatron-Bridge README on GitHub (Apache-2.0 license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    562+136

    Open issues

    496+119

    Compared with peers in Machine Learning

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    NVIDIA-NeMo/Megatron-Bridge compared with Machine Learning repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    photoprism/photoprism40.4K—651 day ago
    huggingface/diffusers34.8K—653 days ago
    onnx/onnx21.6K—6331 days ago
    lukas-blecher/LaTeX-OCR16.6K—18—
    milesial/Pytorch-UNet11.7K—18—
    NVIDIA-NeMo/Megatron-Bridge970—5919 days ago
    Category median21.6K—63—

    Also by NVIDIA-NeMo

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description