# Dataset\_infos.json getting cached?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-infos-json-getting-cached%2F20304%3E%5C
**Category:** 🤗Datasets\
**Created:** [July 13, 2022, 2:15am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-infos-json-getting-cached%2F20304 "2022-07-13T02:15:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BSlininger](https://avatars.discourse-cdn.com/v4/letter/b/7ba0ec/32.png) [@BSlininger](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FBSlininger)%5C
**Post date:** [July 13, 2022, 2:15am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-infos-json-getting-cached%2F20304%2F1 "2022-07-13T02:15:03Z")

</div>

My dataset JSON file had some mistakes in it, so I fixed them and re-uploaded it. I also ran the `datasets-cli test datasets/<your-dataset-folder> --save_infos --all_configs` with my dataset folder to re-generate the dataset\_infos.json file with the metadata.

After uploading these two revised files, I am trying to test redownloading the dataset in Python again to make sure everything is working, and it is failing due to a checksum issue in the metadata. In particular, I am running this command (the dataset is private until we get it all figured out, so it has a `use_auth_token` argument too):

```auto
ds = datasets.load_dataset('microsoft/stackoverflow_2022', split='test', use_auth_token='<...>', download_mode='force_redownload')

```

and while trying to redownload the dataset, it fails with this error:

```auto
  File "<...>/info_utils.py", line 40, in verify_checksums
    raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['stackoverflow_2022_data_set_cleaned.json']

```

In fact, if I go to the repository and completely delete dataset\_infos.json from it, I still get this error, which to me implies that the dataset\_infos.json file is being cached somewhere, and I have to forcibly redownload it doing something similar to `download_mode='force_redownload'`. That argument works for the dataset JSON file itself, but it is not working for dataset\_infos.json. Is there something else I need to run, or is there actually a problem with that file?

Thanks!

---

<div class="post-metadata">

**Author:** ![mariosasko](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mariosasko/32/31548_2.png) [@mariosasko](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmariosasko)%5C
**Post date:** [July 21, 2022, 5:15pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-infos-json-getting-cached%2F20304%2F2 "2022-07-21T17:15:38Z")

</div>

Hi! Yes, this file should be cached under: `~/.cache/huggingface/modules/datasets_modules/datasets/microsoft---stackoverflow_2022/<module_hash>`. Setting `download_mode="force_redownload"` in `load_dataset` also updates this `infos` file from my tests, so perhaps you can update your installation of `datasets` (`pip install -U datasets`) and try again?

---

<div class="post-metadata">

**Author:** ![BSlininger](https://avatars.discourse-cdn.com/v4/letter/b/7ba0ec/32.png) [@BSlininger](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FBSlininger)%5C
**Post date:** [August 4, 2022, 12:03am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdataset-infos-json-getting-cached%2F20304%2F3 "2022-08-04T00:03:31Z")

</div>

There was something wrong with the actual checksums it turns out. I still haven’t figured out what it is, but just removing the dataset\_infos.json file and removing the cached version allowed us to load the dataset again. I don’t know if we’re going to want that file back in the future – we might not be worried about checksum validation for this particular dataset. It isn’t a training dataset or anything like that, just a set of data to run tests on. But for right now we will just not use that file and load the dataset without checksum validation, because no matter what I do generating that file, it comes back and says the checksums don’t match.

(For what it’s worth – it did work just fine the very first time I generated the file, but after making a small change to the dataset itself, I have not been able to get a working checksum again.)
