megatron.utils.get_ltor_masks_and_position_ids#

megatron.utils.get_ltor_masks_and_position_ids(data, eod_token, reset_position_ids, reset_attention_mask, eod_mask_loss)#

Build masks and position id for left to right model.