# Random seed for weight initialization and data order

**URL:** <https://discuss.huggingface.co/t/random-seed-for-weight-initialization-and-data-order/14989>\
**Category:** 🤗Transformers\
**Created:** [February 21, 2022, 6:23pm UTC](https://discuss.huggingface.co/t/random-seed-for-weight-initialization-and-data-order/14989 "2022-02-21T18:23:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phosseini](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/phosseini/32/26690_2.png) [@phosseini](https://discuss.huggingface.co/u/phosseini)\
**Post date:** [February 21, 2022, 6:23pm UTC](https://discuss.huggingface.co/t/random-seed-for-weight-initialization-and-data-order/14989/1 "2022-02-21T18:23:42Z")

</div>

A simple question, I wonder if the `seed` argument in the `TrainingArguments ` will be used for both weight initialization of a model and shuffling the data? And if it’s used only for weight initialization, what would be a good practice for data shuffling? Just randomly shuffle it ourselves?
