Actual dataset size?

#4
by jlzhou - opened

Hi there, thanks for sharing such a huge and diverse dataset. I'm interested in downloading it, however, I can't tell the actual dataset size from the dataset card or the huggingface tags (labels?).

This is what I got from the code below:

import re

text = """... the full text you copy pasted from HF file list ..."""

# Extract file sizes
sizes = re.findall(r'(\d+\.?\d*)\s*(GB|MB|kB)', text)

total = 0
for size_str, unit in sizes:
    size = float(size_str)
    if unit == 'GB':
        total += size
    elif unit == 'MB':
        total += size / 1024
    elif unit == 'kB':
        total += size / 1024000
        
print(f"Total size: {total:.2f} GB")

Total size: 19901.59 G.
So, it is around 19.44 TB of data.

Thanks!

jlzhou changed discussion status to closed

要是能破40t就好了

Sign up or log in to comment