OSError: Distant resource does not have an ETag, we won’t be able to reliably ensure reproducibility.

While downloading and setting up Bloom AI locally, you might get this error while running the code shown in this Github repository: https://github.com/dptrsa-300/start_with_bloom/blob/main/bloomex_nb.ipynb

python3 HelloBloom.py

Traceback (most recent call last):
File “/AI/Jarasandh/lib/python3.9/site-packages/transformers/configuration_utils.py”, line 616, in _get_config_dict
resolved_config_file = cached_path(
File “/AI/Jarasandh/lib/python3.9/site-packages/transformers/utils/hub.py”, line 284, in cached_path
output_path = get_from_cache(
File “/AI/Jarasandh/lib/python3.9/site-packages/transformers/utils/hub.py”, line 508, in get_from_cache
raise OSError(
OSError: Distant resource does not have an ETag, we won’t be able to reliably ensure reproducibility.

This error comes because the Bloom LLM package might not be downloaded correctly and the values in the cached partial downloaded folder need to be cleared.

To fix this, just go to your cache folder and delete the transformers cached data:

Go to “/Users/XYZ/.cache” and delete the “huggingface” folder. Then start the download again.