Skip to content

Commit

Permalink
Update optimum/onnxruntime/modeling_decoder.py
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Benayoun <[email protected]>
  • Loading branch information
IlyasMoutawwakil and michaelbenayoun authored May 28, 2024
1 parent e4d259e commit 7d8ecae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/onnxruntime/modeling_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def _from_pretrained(
output_dims["logits"][1] = "sequence_length"
override_dims = True

# Since https://github.com/huggingface/optimum/pull/871/files
# Since https://github.com/huggingface/optimum/pull/871/
# changed axis notation/naming during export, we need to update the dims
for dim in input_dims.keys():
if "past" in dim and input_dims[dim][2] == "past_sequence_length + sequence_length":
Expand Down

0 comments on commit 7d8ecae

Please sign in to comment.