Skip to content

Commit

Permalink
revert openvino
Browse files Browse the repository at this point in the history
  • Loading branch information
faaany committed Jun 7, 2024
1 parent 68187e5 commit efedca4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions optimum/intel/openvino/modeling_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,11 +571,9 @@ def _expand_outputs_for_generation(self, indicies, logits: torch.Tensor, past_ke
):
past_key_values = tuple(
tuple(
(
past_state[indicies]
if not self.config.model_type == "chatglm"
else past_state[:, indicies, ...]
)
past_state[indicies]
if not self.config.model_type == "chatglm"
else past_state[:, indicies, ...]
for past_state in layer_past
)
for layer_past in past_key_values
Expand Down

0 comments on commit efedca4

Please sign in to comment.