Providing dataset size
MEMBER
Hi @sashavor, thanks for your suggestion.

Until now we have the CLI command 
```
datasets-cli test datasets/<your-dataset-folder> --save_infos --all_configs
```
that generates the `dataset_infos.json` with the size of the downloaded dataset, among other information.

We are currently in the middle of removing those JSON files and putting their information directly in the header of the `README.md` (as YAML tags). Normally, the CLI command should continue working but saving its output to the dataset card instead. See:
- #4926
2022-09-15T06:17:56Z
https://github.com/huggingface/datasets/issues/4977#issuecomment-1247630905
https://api.github.com/repos/huggingface/datasets/issues/4977
IC_kwDODunzps5KXVY5
https://api.github.com/repos/huggingface/datasets/issues/comments/1247630905/reactions
2022-09-15T06:19:34Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1247630905
https://avatars.githubusercontent.com/u/8515462?v=4
https://api.github.com/users/albertvillanova/events{/privacy}
https://api.github.com/users/albertvillanova/followers
https://api.github.com/users/albertvillanova/following{/other_user}
https://api.github.com/users/albertvillanova/gists{/gist_id}
https://github.com/albertvillanova
albertvillanova
MDQ6VXNlcjg1MTU0NjI=
https://api.github.com/users/albertvillanova/orgs
https://api.github.com/users/albertvillanova/received_events
https://api.github.com/users/albertvillanova/repos
https://api.github.com/users/albertvillanova/starred{/owner}{/repo}
https://api.github.com/users/albertvillanova/subscriptions
User
https://api.github.com/users/albertvillanova
public
MEMBER
Additionally, the download size can be inferred by doing HEAD requests to the files to be downloaded. And for files hosted on the hub you can even get the file sizes using the Hub API
2022-09-15T15:23:48Z
https://github.com/huggingface/datasets/issues/4977#issuecomment-1248256700
https://api.github.com/repos/huggingface/datasets/issues/4977
IC_kwDODunzps5KZuK8
https://api.github.com/repos/huggingface/datasets/issues/comments/1248256700/reactions
2022-09-15T15:23:48Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1248256700
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
CONTRIBUTOR
Amazing @albertvillanova ! I think just having that information visible in the dataset info (without having to do any requests/additional coding) would be really useful :hugs: 
2022-09-15T16:03:58Z
https://github.com/huggingface/datasets/issues/4977#issuecomment-1248304668
https://api.github.com/repos/huggingface/datasets/issues/4977
IC_kwDODunzps5KZ54c
https://api.github.com/repos/huggingface/datasets/issues/comments/1248304668/reactions
2022-09-15T16:03:58Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1248304668
https://avatars.githubusercontent.com/u/14205986?v=4
https://api.github.com/users/sashavor/events{/privacy}
https://api.github.com/users/sashavor/followers
https://api.github.com/users/sashavor/following{/other_user}
https://api.github.com/users/sashavor/gists{/gist_id}
https://github.com/sashavor
sashavor
MDQ6VXNlcjE0MjA1OTg2
https://api.github.com/users/sashavor/orgs
https://api.github.com/users/sashavor/received_events
https://api.github.com/users/sashavor/repos
https://api.github.com/users/sashavor/starred{/owner}{/repo}
https://api.github.com/users/sashavor/subscriptions
User
https://api.github.com/users/sashavor
public
**Is your feature request related to a problem? Please describe.**
Especially for big datasets like [LAION](https://huggingface.co/datasets/laion/laion2B-en/), it's hard to know exactly the downloaded size (because there are many files and you don't have their exact size when downloaded).

**Describe the solution you'd like**
Auto-populating the downloaded dataset size on the dataset page would be really useful, including that of each split (when there are some).

**Describe alternatives you've considered**
People should be adding this to dataset cards, but I don't think that is systematically the case :slightly_smiling_face: 

**Additional context**
Mentioned to @lhoestq 
