bridge.models.nemotron_vl.nemotron_vl_bridge#

Module Contents#

Classes#

NemotronVLBridge

Conversion utilities between HF Nemotron-VL and Megatron-Core format.

Functions#

_is_legacy_v2_omni_config

Identify Nano Omni checkpoints serialized with the historical V2 label.

API#

bridge.models.nemotron_vl.nemotron_vl_bridge._is_legacy_v2_omni_config(hf_config) bool#

Identify Nano Omni checkpoints serialized with the historical V2 label.

class bridge.models.nemotron_vl.nemotron_vl_bridge.NemotronVLBridge#

Bases: megatron.bridge.models.conversion.model_bridge.MegatronModelBridge

Conversion utilities between HF Nemotron-VL and Megatron-Core format.

CONFIG_MAPPING#

None

_canonical_omni_bridge()#

Create the canonical bridge lazily to avoid a module import cycle.

provider_bridge(
hf_pretrained: megatron.bridge.models.hf_pretrained.causal_lm.PreTrainedCausalLM,
)#
mapping_registry() megatron.bridge.models.conversion.mapping_registry.MegatronMappingRegistry#
_legacy_mapping_registry() megatron.bridge.models.conversion.mapping_registry.MegatronMappingRegistry#

Return the historical wrapper-prefixed Nemotron-VL mappings.