Use load_dataset for local json files, but it not works
NONE
Hugging Face's datasets library may prioritize remote configurations. Make sure there are no conflicting configurations causing the library to prefer downloading data
May  be try debugging
raw_datasets = load_dataset('json', data_files=data_files)
print(raw_datasets)

2023-08-31T10:30:07Z
https://github.com/huggingface/datasets/issues/6199#issuecomment-1700782266
https://api.github.com/repos/huggingface/datasets/issues/6199
IC_kwDODunzps5lX-C6
https://api.github.com/repos/huggingface/datasets/issues/comments/1700782266/reactions
2023-08-31T10:30:07Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1700782266
https://avatars.githubusercontent.com/u/140521478?v=4
https://api.github.com/users/mohitraipr/events{/privacy}
https://api.github.com/users/mohitraipr/followers
https://api.github.com/users/mohitraipr/following{/other_user}
https://api.github.com/users/mohitraipr/gists{/gist_id}
https://github.com/mohitraipr
mohitraipr
U_kgDOCGAwBg
https://api.github.com/users/mohitraipr/orgs
https://api.github.com/users/mohitraipr/received_events
https://api.github.com/users/mohitraipr/repos
https://api.github.com/users/mohitraipr/starred{/owner}{/repo}
https://api.github.com/users/mohitraipr/subscriptions
User
https://api.github.com/users/mohitraipr
public
COLLABORATOR
It doesn't download them but writes them to the local HF cache. The logging could indeed be better. Does loading the dataset succeed? If it doesn't, can you share the error stack trace?
2023-08-31T19:05:07Z
https://github.com/huggingface/datasets/issues/6199#issuecomment-1701605817
https://api.github.com/repos/huggingface/datasets/issues/6199
IC_kwDODunzps5lbHG5
https://api.github.com/repos/huggingface/datasets/issues/comments/1701605817/reactions
2023-08-31T19:05:07Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1701605817
https://avatars.githubusercontent.com/u/47462742?v=4
https://api.github.com/users/mariosasko/events{/privacy}
https://api.github.com/users/mariosasko/followers
https://api.github.com/users/mariosasko/following{/other_user}
https://api.github.com/users/mariosasko/gists{/gist_id}
https://github.com/mariosasko
mariosasko
MDQ6VXNlcjQ3NDYyNzQy
https://api.github.com/users/mariosasko/orgs
https://api.github.com/users/mariosasko/received_events
https://api.github.com/users/mariosasko/repos
https://api.github.com/users/mariosasko/starred{/owner}{/repo}
https://api.github.com/users/mariosasko/subscriptions
User
https://api.github.com/users/mariosasko
public
### Describe the bug

when I use load_dataset to load my local datasets，it always goes to Hugging Face to download the data instead of loading the local dataset.

### Steps to reproduce the bug

`raw_datasets = load_dataset(
        ‘json’,
        data_files=data_files)`


### Expected behavior

![image](https://github.com/huggingface/datasets/assets/50519434/add3747f-6481-4da7-b374-8f81c5a6472c)


### Environment info

python version 3.8.5
datasets version 2.12
os version unbuntu 18.04