Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
inkcherry committed Aug 30, 2024
1 parent 191fbf7 commit 08fedf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megatron/model/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ def forward(self, hidden_states, attention_mask,
if not self.use_flash_attn_triton:
query_layer, key_layer, value_layer = [rearrange(x, 's b ... -> b s ...').contiguous()
for x in (query_layer, key_layer, value_layer)]
batch_dim_idx = 0
batch_dim_idx = 0

context_layer = self.dist_attn(query_layer, key_layer, value_layer, batch_dim_idx)

Expand Down

0 comments on commit 08fedf4

Please sign in to comment.