You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running python trainer_finetune.py, I encounter this error:
Traceback (most recent call last):
File "trainer_finetune.py", line 746, in
run_eval(save_dir=save_dir,
File "trainer_finetune.py", line 632, in run_eval
path_model_ext = Path(train_args.model_dir) / "pytorch_model.bin"
AttributeError: 'Seq2SeqTrainingArguments' object has no attribute 'model_dir'
I've checked the attributes of train_args, and didn't find the attribute named model_dir.
Is there something wrong? The version of my transformers is 4.28.1.