Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions optimum/intel/openvino/modeling_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,9 @@ def prepare_inputs(
self.next_beam_idx if self.next_beam_idx is not None else np.arange(batch_size, dtype=int)
)

if "cache_position" in self.input_names:
inputs["cache_position"] = np.arange(0, getattr(self, "conv_kernel"), dtype=int)

return inputs

def forward(
Expand Down
Loading