Skip to content

Commit

Permalink
Update optimum/onnxruntime/trainer_seq2seq.py
Browse files Browse the repository at this point in the history
Co-authored-by: fxmarty <[email protected]>
  • Loading branch information
JingyaHuang and fxmarty authored Sep 18, 2023
1 parent fec39e3 commit da18b6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions optimum/onnxruntime/trainer_seq2seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@

if is_accelerate_available():
from accelerate import __version__ as accelerate_version
else:
raise ImportError(
"The package `accelerate` is required to use the ORTTrainer. Please install it following https://huggingface.co/docs/accelerate/basic_tutorials/install."
)

logger = logging.get_logger(__name__)

Expand Down

0 comments on commit da18b6e

Please sign in to comment.