How to sample from the validation set when using Trainer?

Time has passed, but for people coming here:

that’s what I want for my large eval dataset, and I totally got you, it means fast and frequent evaluation but still make use of the existing eval dataset. it’s possible with TrainerCallback and indefinite IterableDataset. I’ve replied here:

1 Like