Skip to content

Commit

Permalink
OV: Fixed RoPE WA for Phi-3.5 (#919)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKoff88 authored Sep 30, 2024
1 parent d20554e commit 9cc0ee4
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 @@ -1560,7 +1560,7 @@ def __enter__(self):
if self._model.config.max_position_embeddings != getattr(
self._model.config, "original_max_position_embeddings", self._model.config.max_position_embeddings
):
self._model.config.max_position_embeddings = self._model.config.original_max_position_embe
self._model.config.max_position_embeddings = self._model.config.original_max_position_embeddings

if is_transformers_version(">=", "4.42.0"):
self._model.model._orig_forward = self._model.model.forward
Expand Down

0 comments on commit 9cc0ee4

Please sign in to comment.