1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to LLMs in Python

Connected

Exercise

Setting up the trainer

With training arguments set up, you need to move on to the trainer before putting the fine-tuned model to use.

TrainingArguments and Trainer have been loaded for you, as well as your previous model, tokenizer and training_args.

Note: actual training has been disabled for this exercise so that it runs faster.

Instructions

100 XP
  • Set up the Trainer() object.
  • Assign the previously defined training arguments and tokenizer.
  • Train the model.