Skip to content

Commit

Permalink
fea(): fixed pytest errors for gptneox
Browse files Browse the repository at this point in the history
  • Loading branch information
imangohari1 committed Aug 6, 2024
1 parent 8ebd789 commit 54c9dfa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions optimum/habana/transformers/modeling_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ def adapt_transformers_to_gaudi():
transformers.models.gpt_neox.modeling_gpt_neox.GPTNeoXModel.forward = gaudi_gpt_neox_model_forward
transformers.models.gpt_neox.modeling_gpt_neox.GPTNeoXLayer.forward = gaudi_gpt_neox_layer_forward
transformers.models.gpt_neox.modeling_gpt_neox.GPTNeoXAttention.forward = gaudi_gpt_neox_attention_forward
transformers.models.gpt_neox.modeling_gpt_neox.GPTNeoXSdpaAttention.forward = gaudi_gpt_neox_attention_forward
transformers.models.gpt_neox.modeling_gpt_neox.GPTNeoXRotaryEmbedding._set_cos_sin_cache = (
gaudi_gpt_neox_rotary_embedding_set_cos_sin_cache
)
Expand Down

0 comments on commit 54c9dfa

Please sign in to comment.