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

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdoes-load-dataset-load-the-data-in-to-the-memory%2F3621%3E%5C
**Category:** 🤗Datasets\
**Created:** [February 13, 2021, 6:33am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdoes-load-dataset-load-the-data-in-to-the-memory%2F3621 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fshamanez)%5C
**Post date:** [February 13, 2021, 6:33am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdoes-load-dataset-load-the-data-in-to-the-memory%2F3621%2F1 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Flhoestq)%5C
**Post date:** [February 22, 2021, 2:09pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdoes-load-dataset-load-the-data-in-to-the-memory%2F3621%2F2 "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.
