# How to sample from the validation set when using Trainer?

**URL:** <https://discuss.huggingface.co/t/how-to-sample-from-the-validation-set-when-using-trainer/25240>\
**Category:** 🤗Transformers\
**Created:** [October 31, 2022, 12:39am UTC](https://discuss.huggingface.co/t/how-to-sample-from-the-validation-set-when-using-trainer/25240 "2022-10-31T00:39:24Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![brando](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/brando/32/30114_2.png) [@brando](https://discuss.huggingface.co/u/brando)\
**Post date:** [October 5, 2023, 6:05pm UTC](https://discuss.huggingface.co/t/how-to-sample-from-the-validation-set-when-using-trainer/25240/4 "2023-10-05T18:05:49Z")

</div>

Questions:

1. will this ever be supported?
2. Why does the eval set have to be fixed?
3. How do we avoid memory issues because when the train set samples data to log and the eval data set samples to log I’ve gotten OM issues. Can they run seperately?

---

_[View the full topic](https://discuss.huggingface.co/t/how-to-sample-from-the-validation-set-when-using-trainer/25240)._
