datasets downloads and generates all splits, even though a single split is requested (for dataset with loading script)
MEMBER
Hi ! there has been some effort on allowing to download only a subset of splits in https://github.com/huggingface/datasets/pull/6832 but no one has been continuing this work so far. This would be a welcomed contribution though

Also note that loading script are often unoptimized, and we recommend using datasets in standard formats like Parquet instead.

Btw there is a CLI tool to convert a loading script to parquet:

```
datasets-cli convert_to_parquet <dataset-name> --trust_remote_code
```
2025-05-07T14:38:35Z
https://github.com/huggingface/datasets/issues/7554#issuecomment-2858854052
https://api.github.com/repos/huggingface/datasets/issues/7554
IC_kwDODunzps6qZqak
https://api.github.com/repos/huggingface/datasets/issues/comments/2858854052/reactions
2025-05-07T14:38:35Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2858854052
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
NONE
Closing in favor of #6832 
2025-05-07T14:53:44Z
https://github.com/huggingface/datasets/issues/7554#issuecomment-2858912834
https://api.github.com/repos/huggingface/datasets/issues/7554
IC_kwDODunzps6qZ4xC
https://api.github.com/repos/huggingface/datasets/issues/comments/2858912834/reactions
2025-05-07T14:53:44Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2858912834
https://avatars.githubusercontent.com/u/50171988?v=4
https://api.github.com/users/sei-eschwartz/events{/privacy}
https://api.github.com/users/sei-eschwartz/followers
https://api.github.com/users/sei-eschwartz/following{/other_user}
https://api.github.com/users/sei-eschwartz/gists{/gist_id}
https://github.com/sei-eschwartz
sei-eschwartz
MDQ6VXNlcjUwMTcxOTg4
https://api.github.com/users/sei-eschwartz/orgs
https://api.github.com/users/sei-eschwartz/received_events
https://api.github.com/users/sei-eschwartz/repos
https://api.github.com/users/sei-eschwartz/starred{/owner}{/repo}
https://api.github.com/users/sei-eschwartz/subscriptions
User
https://api.github.com/users/sei-eschwartz
public
### Describe the bug

`datasets` downloads and generates all splits, even though a single split is requested.  [This](https://huggingface.co/datasets/jordiae/exebench) is the dataset in question.  It uses a loading script.  I am not 100% sure that this is a bug, because maybe with loading scripts `datasets` must actually process all the splits?  But I thought loading scripts were designed to avoid this.

### Steps to reproduce the bug

See [this notebook](https://colab.research.google.com/drive/14kcXp_hgcdj-kIzK0bCG6taE-CLZPVvq?usp=sharing)

Or:
```python
from datasets import load_dataset
dataset = load_dataset('jordiae/exebench', split='test_synth', trust_remote_code=True)
```

### Expected behavior

I expected only the `test_synth` split to be downloaded and processed.

### Environment info

- `datasets` version: 3.5.1
- Platform: Linux-6.1.123+-x86_64-with-glibc2.35
- Python version: 3.11.12
- `huggingface_hub` version: 0.30.2
- PyArrow version: 18.1.0
- Pandas version: 2.2.2
- `fsspec` version: 2025.3.0