Skip to content

Commit

Permalink
fixed token_idx
Browse files Browse the repository at this point in the history
  • Loading branch information
BaihuiJin committed Dec 12, 2023
1 parent 09286c3 commit e03d1af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/habana/transformers/models/gptj/modeling_gptj.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def gaudi_gptj_model_forward(
def create_custom_forward(module):
def custom_forward(*inputs):
# None for past_key_value
return module(*inputs, use_cache, output_attentions, token_idx, sin, cos)
return module(*inputs, use_cache, output_attentions, None, sin, cos)

return custom_forward

Expand Down

0 comments on commit e03d1af

Please sign in to comment.