# Huggingface datasets - reset/restart state

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhuggingface-datasets-reset-restart-state%2F36743%3E%5C
**Category:** 🤗Datasets\
**Created:** [April 16, 2023, 11:45am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhuggingface-datasets-reset-restart-state%2F36743 "2023-04-16T11:45:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndvb](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/ndvb/32/17239_2.png) [@ndvb](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fndvb)%5C
**Post date:** [April 16, 2023, 11:45am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhuggingface-datasets-reset-restart-state%2F36743%2F1 "2023-04-16T11:45:16Z")

</div>

How can I “restart” a dataset, or reset it’s enumerator state, so I can reuse it again?

---

<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:** [April 16, 2023, 11:42pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhuggingface-datasets-reset-restart-state%2F36743%2F2 "2023-04-16T23:42:35Z")

</div>

Datasets have no state: you can start iterating a dataset, stop, and restart iterating and it will start from the beginning.

---

<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:** [March 5, 2025, 2:50pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhuggingface-datasets-reset-restart-state%2F36743%2F3 "2025-03-05T14:50:41Z")

</div>

Update from 2025 for streaming datasets (IterableDataset): you can checkpoint and resume the iteration, see the docs [here](https://huggingface.co/docs/datasets/en/stream#save-a-dataset-checkpoint-and-resume-iteration)
