Skip to content

Commit

Permalink
fix python3.8 execution
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrawins committed Feb 29, 2024
1 parent 02a129a commit be1a32d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimum/intel/openvino/modeling_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import os
from pathlib import Path
from tempfile import TemporaryDirectory
from typing import Dict, Optional, Tuple, Union
from typing import Dict, List, Optional, Tuple, Union

import numpy as np
import openvino
Expand Down Expand Up @@ -467,7 +467,7 @@ def forward(
attention_mask: Optional[torch.LongTensor] = None,
past_key_values: Optional[Tuple[Tuple[torch.FloatTensor]]] = None,
position_ids: Optional[torch.LongTensor] = None,
infer_context: Optional[list[openvino.runtime.InferRequest]] = None,
infer_context: Optional[List[openvino.runtime.InferRequest]] = None,
**kwargs,
) -> CausalLMOutputWithPast:
inputs = self.prepare_inputs(
Expand Down

0 comments on commit be1a32d

Please sign in to comment.