Skip to content

Commit

Permalink
Update optimum/intel/openvino/modeling_decoder.py
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix authored Oct 31, 2024
1 parent 3b0bf83 commit e298792
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions optimum/intel/openvino/modeling_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ def forward(
**kwargs,
) -> CausalLMOutputWithPast:
self.compile()
# added as model.generate validates model inputs based on forward signature
kwargs["token_type_ids"] = token_type_ids

inputs = self.prepare_inputs(
Expand Down

0 comments on commit e298792

Please sign in to comment.