Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Monitor and optimize fine-tuned model performance

A worked example

Single answer

An engineer at Contoso ran a supervised fine-tuning (SFT) job in Microsoft Foundry Managed Training with these hyperparameters: n_epochs = 6, batch_size = 1 and learning_rate_multiplier = 1.0.

On the validation set, the fine-tuned model met every target threshold. When the team tested it with new customer prompts that are not in the dataset, the model behaved unexpectedly.

For the next training run, the engineer will change one hyperparameter. The goal is to correct the behavior on new inputs, not to speed up training.

Which change should the engineer make?

Choose one answer
Why

The model reached high scores on the validation set but behaved unexpectedly on prompts it had not seen. The hyperparameter guidance names this pattern overfitting and recommends decreasing n_epochs. Increasing n_epochs is the fix for low scores. Batch size and learning-rate increases are described as ways to speed up training, and eval_interval is an RFT-only setting.

  • Not correct: Increase n_epochs to 9. Raising the epoch count is the adjustment for scores that stay low after training (underfitting). Here the scores were high, so more epochs do not address the problem.
  • Correct: Decrease n_epochs to 3. High evaluation scores combined with unexpected behavior on new inputs is the overfitting pattern, and the guidance for that pattern is to decrease the number of epochs.
  • Not correct: Add eval_interval set to 5. eval_interval is one of the extra RFT parameters. It sets how often the grader scores the model during training, so it does not apply to this SFT job.
  • Not correct: Increase learning_rate_multiplier to 2.0. A multiplier above 1.0 is used to speed up learning, and it comes with a warning to watch for erratic results. It does not correct poor behavior on new inputs.
  • Not correct: Increase batch_size to 4. A larger batch size is suggested to speed up training on larger datasets. It is not the adjustment given for a model that behaves unexpectedly on new inputs.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free