Skip to content

Keyword argument 'evaluation_strategy' in TrainingArguments has been replaced with 'eval_strategy' #987

Open
@vyshnev

Description

@vyshnev

Hi team,

In Chapter 7: Fine-Tuning a Masked Language Model, the example code uses:

TrainingArguments(
    ...,
    evaluation_strategy="epoch",
    ...
)

However, the evaluation_strategy keyword argument in TrainingArguments has now been replaced with eval_strategy. Using the old argument causes an error:

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

See this related discussion for reference:
huggingface/transformers#7974 (comment)

Proposed fix:
Update the code example to use eval_strategy instead of evaluation_strategy to match the latest transformers library version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions