Skip to content

Commit

Permalink
Revert "Apply bettertransformer by default for causallm (#605)" (#612)
Browse files Browse the repository at this point in the history
This reverts commit 948f99d.
  • Loading branch information
eaidova authored Mar 18, 2024
1 parent 2b186f2 commit 428c778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/exporters/openvino/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def export_pytorch(
logger.info(f"Using framework PyTorch: {torch.__version__}")
output = Path(output)

if ensure_export_task_support_stateful(config.task):
if stateful:
# Trigger bettertransformer together with stateful model because OpenVINO HW-dependent transformations expect
# both of them are applied to demonstrate the best performance.
# TODO: Consider applying bettertransformer regardless of stateful flag -- requires additional validation.
Expand Down

0 comments on commit 428c778

Please sign in to comment.