diff --git a/nemo/collections/nlp/models/language_modeling/megatron_gpt_model.py b/nemo/collections/nlp/models/language_modeling/megatron_gpt_model.py index 55c3786a3d96..d44c87786452 100644 --- a/nemo/collections/nlp/models/language_modeling/megatron_gpt_model.py +++ b/nemo/collections/nlp/models/language_modeling/megatron_gpt_model.py @@ -536,7 +536,7 @@ def initialize_ub_func(self): ub_cfgs = yaml.safe_load(ub_cfg_file) except (ImportError, TypeError): logging.error(f"Fail to read ub_tp_comm_overlap config file: {ub_cfg_file_name}.") - te_module.initialize_ub( + te_module.base.initialize_ub( shape=input_shape, tp_size=self.cfg.get('tensor_model_parallel_size'), use_fp8=self.cfg.get('fp8'),