Chapter 3 questions

John6666
Sat, 03 May 2025 07:15:59 +0000

It seems that an issue from five years ago has resurfaced three weeks ago.

github.com/huggingface/transformers

TrainingArguments error : TypeError: __init__() got an unexpected keyword argument 'evaluation_strategy'

opened 11:31AM - 22 Oct 20 UTC

closed 04:26AM - 02 Jan 21 UTC

Fourha

wontfix

# ❓ Questions & Help ## Details when I use TrainingArguments (transf…ormer 3,3,1) , it emerge the error TypeError: __init__() got an unexpected keyword argument 'evaluation_strategy'. I wonder why I 've got this error. these are my code: > training_args = TrainingArguments( > output_dir="./no_num_pretrain_model", > overwrite_output_dir=True, > num_train_epochs=epochs, > per_device_train_batch_size=16, > per_device_eval_batch_size=32, > do_train = True, > do_eval = True, > evaluation_strategy="steps", > logging_steps = 10, > save_steps=2000, > eval_steps=10, > ) > > > trainer = Trainer( > model=model, > args=training_args, > data_collator=data_collator, > train_dataset=train_dataset, > eval_dataset=val_dataset, # evaluation dataset > optimizers =(optimizer,scheduler) > ) **A link to original question on the forum/Stack Overflow**: