Fine-tuning AI model fails on too many screenshots

Hi, my fine-tuning jobs fail with this error “The job failed due to an invalid training file. Example 2 exceeds maximum images allowed per example: 10.”
What does it mean, exactly? There are strings that are tagged on more than 10 screenhots? If yes - we’ve gone through all of the strings with screenshots, made sure there are less than 10 tagged for each string. Yet the error persists.
How do we find the exact string that leads to that error?

It can’t be that the total number of screenshots should be less than 10, right?

(job id is 99448cea-c0b2-4fcb-870d-e2067c6a4d47)

Hi @Maksim_H,

The error is related to screenshots indeed. There can be a maximum of 10 screenshots in 1 example, but the “example” for AI is not 1 string, but a batch of strings that we send for translation. For example, if there are 15 strings in a batch and each one has one screenshot, then there will be 15 screenshots, and the request will fail.

From our side, we cannot affect the size of the batch since it depends on the size of the model context, the length of the strings themselves, the prompt, etc.

As a result, the easiest solution would be to disable the screenshots for the prompt that will be fine-tuned.