Skip to content

Commit

Permalink
[GPTNeoX] Fix GPTNeoX + Flash Attention 2 issue (#28645)
Browse files Browse the repository at this point in the history
Update modeling_gpt_neox.py
  • Loading branch information
younesbelkada authored Jan 22, 2024
1 parent dafd595 commit e201864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/models/gpt_neox/modeling_gpt_neox.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def forward(
elif hasattr(self.config, "_pre_quantization_dtype"):
target_dtype = self.config._pre_quantization_dtype
else:
target_dtype = self.q_proj.weight.dtype
target_dtype = self.query_key_value.weight.dtype

logger.warning_once(
f"The input hidden states seems to be silently casted in float32, this might be related to"
Expand Down

0 comments on commit e201864

Please # to comment.