Skip to content

Commit

Permalink
Update optimum/exporters/openvino/model_patcher.py
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova authored Dec 23, 2024
1 parent a3f37ba commit 173c924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/exporters/openvino/model_patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -2516,7 +2516,7 @@ def _falcon_prepare_4d_causal_attention_mask_with_cache_position(
# In this case we assume that the mask comes already in inverted form and requires no inversion or slicing.
causal_mask = attention_mask
else:
# different from original allow to provide min_dtype as parameter
# different from original: allow to provide min_dtype as parameter
min_dtype = torch.finfo(dtype).min if "min_dtype" not in kwargs else kwargs["min_dtype"]
causal_mask = torch.full((sequence_length, target_length), fill_value=min_dtype, dtype=dtype, device=device)
if sequence_length != 1:
Expand Down

0 comments on commit 173c924

Please sign in to comment.