# Regarding the seed in HF trainer

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fregarding-the-seed-in-hf-trainer%2F19149%3E%5C
**Category:** 🤗Transformers\
**Created:** [June 14, 2022, 1:33pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fregarding-the-seed-in-hf-trainer%2F19149 "2022-06-14T13:33:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arunwzd](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@arunwzd](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Farunwzd)%5C
**Post date:** [June 14, 2022, 1:33pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fregarding-the-seed-in-hf-trainer%2F19149%2F1 "2022-06-14T13:33:41Z")

</div>

Hi, I am finetuning the T5 Model. I have set the `seed` in HF trainer. But still then, I see minor changes in the final evaluation score everytime. Is this expected? I am using `transformers==4.18.0`.

Also, I think HF trainer uses a sampler to create batches everytime. Wondering if the output score fluctuation is due to this.
