A bridge library to convert and connect Megatron-Core checkpoints to Hugging Face format and support Reinforcement Learning workflows. Current version 0.15.1, with frequent releases matching Megatron-Core versions. Supports LLMs and VLMs including DeepSeek v3, GLM-4.5, Gemma 3, InternVL3.
pip install mbridgeVerified import paths — ran on the pinned version, not inferred.
Basic usage of BridgeConverter to convert between Hugging Face and Megatron-Core formats.
Re-run conversion with v0.15.0+ and set `tie_word_embedding=True` if needed.
Ensure `tensor_parallel` and `pipeline_parallel` are identical to the values used during training.
Use `tensor_parallel` and `pipeline_parallel` parameters in the BridgeConverter API.
No dependency data recorded yet.