Issue with offline mode and partial dataset cached
NONE
It seems the problem comes from builder.py / create_config_id()

On the first call, when the cache is empty we have
```
config_kwargs = {'data_files': {'train': ['hf://datasets/uonlp/CulturaX@6a8734bc69fefcbb7735f4f9250f43e4cd7a442e/fr/fr_part_00038.parquet']}}
```
leading to config_id beeing 'default-2935e8cdcc21c613'

then, on the second call, 
```
config_kwargs = {'data_files': 'fr/fr_part_00038.parquet'}
```
thus explaining why the hash is not the same, despite having the same parameter when calling load_dataset : data_files="fr/fr_part_00038.parquet"
2025-05-04T17:15:01Z
https://github.com/huggingface/datasets/issues/7551#issuecomment-2849321470
https://api.github.com/repos/huggingface/datasets/issues/7551
IC_kwDODunzps6p1TH-
https://api.github.com/repos/huggingface/datasets/issues/comments/2849321470/reactions
2025-05-04T17:15:01Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2849321470
https://avatars.githubusercontent.com/u/353245?v=4
https://api.github.com/users/nrv/events{/privacy}
https://api.github.com/users/nrv/followers
https://api.github.com/users/nrv/following{/other_user}
https://api.github.com/users/nrv/gists{/gist_id}
https://github.com/nrv
nrv
MDQ6VXNlcjM1MzI0NQ==
https://api.github.com/users/nrv/orgs
https://api.github.com/users/nrv/received_events
https://api.github.com/users/nrv/repos
https://api.github.com/users/nrv/starred{/owner}{/repo}
https://api.github.com/users/nrv/subscriptions
User
https://api.github.com/users/nrv
public
NONE
Same behavior with version 3.5.1
2025-05-04T17:20:55Z
https://github.com/huggingface/datasets/issues/7551#issuecomment-2849324596
https://api.github.com/repos/huggingface/datasets/issues/7551
IC_kwDODunzps6p1T40
https://api.github.com/repos/huggingface/datasets/issues/comments/2849324596/reactions
2025-05-04T17:20:55Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2849324596
https://avatars.githubusercontent.com/u/353245?v=4
https://api.github.com/users/nrv/events{/privacy}
https://api.github.com/users/nrv/followers
https://api.github.com/users/nrv/following{/other_user}
https://api.github.com/users/nrv/gists{/gist_id}
https://github.com/nrv
nrv
MDQ6VXNlcjM1MzI0NQ==
https://api.github.com/users/nrv/orgs
https://api.github.com/users/nrv/received_events
https://api.github.com/users/nrv/repos
https://api.github.com/users/nrv/starred{/owner}{/repo}
https://api.github.com/users/nrv/subscriptions
User
https://api.github.com/users/nrv
public
NONE
Same issue when loading `google/IndicGenBench_flores_in` with `dataset==2.21.0` and `dataset==3.6.0` .
2025-05-12T11:57:54Z
https://github.com/huggingface/datasets/issues/7551#issuecomment-2872275519
https://api.github.com/repos/huggingface/datasets/issues/7551
IC_kwDODunzps6rM3I_
https://api.github.com/repos/huggingface/datasets/issues/comments/2872275519/reactions
2025-05-12T11:57:54Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2872275519
https://avatars.githubusercontent.com/u/56986935?v=4
https://api.github.com/users/YanshekWoo/events{/privacy}
https://api.github.com/users/YanshekWoo/followers
https://api.github.com/users/YanshekWoo/following{/other_user}
https://api.github.com/users/YanshekWoo/gists{/gist_id}
https://github.com/YanshekWoo
YanshekWoo
MDQ6VXNlcjU2OTg2OTM1
https://api.github.com/users/YanshekWoo/orgs
https://api.github.com/users/YanshekWoo/received_events
https://api.github.com/users/YanshekWoo/repos
https://api.github.com/users/YanshekWoo/starred{/owner}{/repo}
https://api.github.com/users/YanshekWoo/subscriptions
User
https://api.github.com/users/YanshekWoo
public
NONE



> It seems the problem comes from builder.py / create_config_id()
> 
> On the first call, when the cache is empty we have
> 
> ```
> config_kwargs = {'data_files': {'train': ['hf://datasets/uonlp/CulturaX@6a8734bc69fefcbb7735f4f9250f43e4cd7a442e/fr/fr_part_00038.parquet']}}
> ```
> 
> leading to config_id beeing 'default-2935e8cdcc21c613'
> 
> then, on the second call,
> 
> ```
> config_kwargs = {'data_files': 'fr/fr_part_00038.parquet'}
> ```
> 
> thus explaining why the hash is not the same, despite having the same parameter when calling load_dataset : data_files="fr/fr_part_00038.parquet"


I have identified that the issue indeed lies in the `data_files` within `config_kwargs`. 
The format and prefix of `data_files` differ depending on whether `HF_HUB_OFFLINE` is set, leading to different final `config_id` values. 
When I use other datasets without passing the `data_files` parameter, this issue does not occur.

A possible solution might be to standardize the formatting of `data_files` within the `create_config_id` function.
2025-05-13T03:18:41Z
https://github.com/huggingface/datasets/issues/7551#issuecomment-2874943260
https://api.github.com/repos/huggingface/datasets/issues/7551
IC_kwDODunzps6rXCcc
https://api.github.com/repos/huggingface/datasets/issues/comments/2874943260/reactions
2025-05-13T03:18:41Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2874943260
https://avatars.githubusercontent.com/u/56986935?v=4
https://api.github.com/users/YanshekWoo/events{/privacy}
https://api.github.com/users/YanshekWoo/followers
https://api.github.com/users/YanshekWoo/following{/other_user}
https://api.github.com/users/YanshekWoo/gists{/gist_id}
https://github.com/YanshekWoo
YanshekWoo
MDQ6VXNlcjU2OTg2OTM1
https://api.github.com/users/YanshekWoo/orgs
https://api.github.com/users/YanshekWoo/received_events
https://api.github.com/users/YanshekWoo/repos
https://api.github.com/users/YanshekWoo/starred{/owner}{/repo}
https://api.github.com/users/YanshekWoo/subscriptions
User
https://api.github.com/users/YanshekWoo
public
### Describe the bug

Hi, 

a issue related to #4760 here when loading a single file from a dataset, unable to access it in offline mode afterwards

### Steps to reproduce the bug

```python
import os
# os.environ["HF_HUB_OFFLINE"] = "1"
os.environ["HF_TOKEN"] = "xxxxxxxxxxxxxx"

import datasets

dataset_name = "uonlp/CulturaX"
data_files = "fr/fr_part_00038.parquet"

ds = datasets.load_dataset(dataset_name, split='train', data_files=data_files)
print(f"Dataset loaded   : {ds}")
```
Once the file has been cached, I rerun with the HF_HUB_OFFLINE activated an get this error : 
```
ValueError: Couldn't find cache for uonlp/CulturaX for config 'default-1e725f978350254e'
Available configs in the cache: ['default-2935e8cdcc21c613']
```

### Expected behavior

Should be able to access the previously cached files

### Environment info

- `datasets` version: 3.2.0
- Platform: Linux-5.4.0-215-generic-x86_64-with-glibc2.31
- Python version: 3.12.0
- `huggingface_hub` version: 0.27.0
- PyArrow version: 19.0.0
- Pandas version: 2.2.2
- `fsspec` version: 2024.3.1
