Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
baskrahmer committed Oct 26, 2023
1 parent c26518b commit 30a922c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion optimum/exporters/onnx/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,9 @@ def main_export(
and kwargs_shapes.get(input_name) == 1
and task.startswith("text-generation")
):
logger.warning("Exporting with a sequence length of 1 for text generation models is not supported and can yield unexpected results.")
logger.warning(
"Exporting with a sequence length of 1 for text generation models is not supported and can yield unexpected results."
)

torch_dtype = None if fp16 is False else torch.float16

Expand Down

0 comments on commit 30a922c

Please sign in to comment.