Skip to content

Commit 9e398c8

Browse files
committed
minor
Signed-off-by: Ye Yu <[email protected]>
1 parent 8d81046 commit 9e398c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modelopt/torch/speculative/plugins/megatron_eagle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ def _get_eagle_module_inputs(
843843
rotary_pos_emb = self.eagle_module.rotary_pos_emb(padded_input_ids.shape[-1])
844844

845845
attn_mask = attention_mask.clone().detach()
846-
attn_mask[:, :, :-1, :-1] = attention_mask[:, :, 1:, 1:]
846+
attn_mask[:, :, :-1, :-1] = attn_mask[:, :, 1:, 1:]
847847
attn_mask[:, :, -1, :] = True
848848
attn_mask[:, :, :, -1] = True
849849

0 commit comments

Comments
 (0)