# Does load\_dataset load the data in to the memory?

**URL:** <https://discuss.huggingface.co/t/does-load-dataset-load-the-data-in-to-the-memory/3621>\
**Category:** 🤗Datasets\
**Created:** [February 13, 2021, 6:33am UTC](https://discuss.huggingface.co/t/does-load-dataset-load-the-data-in-to-the-memory/3621 "2021-02-13T06:33:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shamanez](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/shamanez/32/17994_2.png) [@shamanez](https://discuss.huggingface.co/u/shamanez)\
**Post date:** [February 13, 2021, 6:33am UTC](https://discuss.huggingface.co/t/does-load-dataset-load-the-data-in-to-the-memory/3621/1 "2021-02-13T06:33:30Z")

</div>

What if the data file on the disk of a loaded dataset (with load\_dataset function) changed?

Please consider the data structure and names stays the same and only some values change. So without loading the dataset again can I access new data points?

---

<div class="post-metadata">

**Author:** ![lhoestq](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lhoestq/32/64813_2.png) [@lhoestq](https://discuss.huggingface.co/u/lhoestq)\
**Post date:** [February 22, 2021, 2:09pm UTC](https://discuss.huggingface.co/t/does-load-dataset-load-the-data-in-to-the-memory/3621/2 "2021-02-22T14:09:36Z")

</div>

Hi ! If the data files changes - for example if one value was changed, then load\_dataset will return a new updated dataset that takes this change into account.

Indeed the `datasets` library looks for any change in your data file before returning the dataset to make sure it doesn’t reload an outdated version from the cache.
