diff --git a/docs/source/en/tasks/language_modeling.md b/docs/source/en/tasks/language_modeling.md index fab9828ab20770..119026cd03f366 100644 --- a/docs/source/en/tasks/language_modeling.md +++ b/docs/source/en/tasks/language_modeling.md @@ -253,6 +253,7 @@ At this point, only three steps remain: ... train_dataset=lm_dataset["train"], ... eval_dataset=lm_dataset["test"], ... data_collator=data_collator, +... tokenizer=tokenizer, ... ) >>> trainer.train() diff --git a/docs/source/en/tasks/masked_language_modeling.md b/docs/source/en/tasks/masked_language_modeling.md index 5987e0193f10a8..469b1d7fcb99f6 100644 --- a/docs/source/en/tasks/masked_language_modeling.md +++ b/docs/source/en/tasks/masked_language_modeling.md @@ -245,6 +245,7 @@ At this point, only three steps remain: ... train_dataset=lm_dataset["train"], ... eval_dataset=lm_dataset["test"], ... data_collator=data_collator, +... tokenizer=tokenizer, ... ) >>> trainer.train()