1. Learn
  2. /
  3. Courses
  4. /
  5. Multi-Modal Models with Hugging Face

Connected

Exercise

CV fine-tuning: trainer configuration

Now that you have prepared the dataset and adapted a pretrained model to the new classes, it is time to configure your trainer.

The TrainingArguments and Trainer have been loaded from the transformers library. The model (model) and dataset (dataset) have been loaded as you previously configured them.

Instructions

100 XP
  • Adjust the learning rate to 6e-5.
  • Provide the model, training data, and test data to the Trainer instance.