Skip to content

Commit 94b2d60

Browse files
authored
Remove forcing input_ids (#1307)
1 parent f03b0fe commit 94b2d60

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

optimum/exporters/openvino/convert.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,6 @@ def export_from_model(
728728
if hasattr(model.config, "forced_decoder_ids"):
729729
model.config.forced_decoder_ids = None
730730
if hasattr(model, "generation_config") and hasattr(model.generation_config, "forced_decoder_ids"):
731-
model.generation_config.input_ids = model.generation_config.forced_decoder_ids
732731
model.generation_config.forced_decoder_ids = None
733732
# Saving the model config and preprocessor as this is needed sometimes.
734733
save_config(model.config, output)

0 commit comments

Comments
 (0)