Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ilyas Moutawwakil <[email protected]>
  • Loading branch information
eaidova and IlyasMoutawwakil authored Jan 13, 2025
1 parent 26e08d1 commit 42c8902
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimum/exporters/openvino/model_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2640,7 +2640,7 @@ def patch_model_for_export(
def inputs(self):
common_inputs = super().inputs
if getattr(self, "stateful", False) and self._behavior == ConfigBehavior.DECODER:
common_inputs["decoder_input_ids"] = {0: "batch_size", 1: "seq_length"}
common_inputs["decoder_input_ids"] = {0: "batch_size", 1: "decoder_sequence_length"}
return common_inputs


Expand All @@ -2661,7 +2661,7 @@ def patch_model_for_export(
def inputs(self):
common_inputs = super().inputs
if getattr(self, "stateful", False) and self._behavior == ConfigBehavior.DECODER:
common_inputs["decoder_input_ids"] = {0: "batch_size", 1: "seq_length"}
common_inputs["decoder_input_ids"] = {0: "batch_size", 1: "decoder_sequence_length"}
return common_inputs


Expand Down

0 comments on commit 42c8902

Please sign in to comment.