Skip to content
Closed
Changes from all commits
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
5 changes: 5 additions & 0 deletions megatron/core/transformer/multi_token_prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,7 @@ def _checkpointed_forward(
hidden_states: Tensor,
decoder_input: Tensor,
attention_mask: Optional[Tensor] = None,
padding_mask: Optional[Tensor] = None,
context: Optional[Tensor] = None,
context_mask: Optional[Tensor] = None,
rotary_pos_emb: Optional[Tensor] = None,
Expand Down Expand Up @@ -1130,6 +1131,7 @@ def custom_forward(
hidden_states,
decoder_input,
attention_mask,
padding_mask,
context,
context_mask,
rotary_pos_emb,
Expand All @@ -1141,6 +1143,7 @@ def custom_forward(
hidden_states=hidden_states,
decoder_input=decoder_input,
attention_mask=attention_mask,
padding_mask=padding_mask,
context=context,
context_mask=context_mask,
rotary_pos_emb=rotary_pos_emb,
Expand Down Expand Up @@ -1187,6 +1190,7 @@ def checkpoint_handler():
hidden_states,
decoder_input,
attention_mask,
padding_mask,
context,
context_mask,
rotary_pos_emb,
Expand All @@ -1206,6 +1210,7 @@ def checkpoint_handler():
hidden_states,
decoder_input,
attention_mask,
padding_mask,
context,
context_mask,
rotary_pos_emb,
Expand Down