{"library":"mbridge","title":"mbridge","description":"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.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install mbridge"],"cli":{"name":"mbridge","version":"sh: 1: mbridge: not found"}},"imports":["from mbridge import BridgeConverter","from mbridge import convert_checkpoint"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from mbridge import BridgeConverter\n\nconverter = BridgeConverter(\n    hf_model_path=\"path/to/hf/model\",\n    mc_model_path=\"/path/to/mcore/model\",\n    model_type=\"llama\",\n    num_layers=32,\n    hidden_size=4096,\n    num_attention_heads=32,\n    tensor_parallel=1,\n    pipeline_parallel=1\n)\n# Convert Hugging Face to Megatron-Core\nconverter.hf_to_mc()\n# Convert Megatron-Core to Hugging Face\nconverter.mc_to_hf()\n","lang":"python","description":"Basic usage of BridgeConverter to convert between Hugging Face and Megatron-Core formats.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}