Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
drain_embedding_wgrad_compute,
get_model_config,
init_method_normal,
is_te_min_version,
scaled_init_method_normal,
)

Expand Down Expand Up @@ -1366,7 +1367,9 @@ def fwd_output_and_loss_func(dataloader_iter, model, checkpoint_activations_all_
'attention_mask': None if self.get_attention_mask_from_fusion else batch['attention_mask'],
'labels': batch['labels'] if 'labels' in batch else None,
}

if not is_te_min_version("1.13", check_equality=False):
# cu_seqlens_unpadded != cu_seqlens is not supported in 1.13 or earlier
cu_seqlens_unpadded = cu_seqlens
forward_args['packed_seq_params'] = PackedSeqParams(
cu_seqlens_q=cu_seqlens_unpadded,
cu_seqlens_kv=cu_seqlens_unpadded,
Expand Down
Loading