Datasets:

Modalities:
Text
Languages:
English
Libraries:
Datasets
License:
File size: 704 Bytes
afd65d6
 
81d0091
105a9ab
 
 
187fe1c
c91a5cf
105a9ab
187fe1c
 
105a9ab
 
 
c91a5cf
 
 
 
 
 
105a9ab
 
187fe1c
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from datasets import load_dataset
from itertools import islice
import sys
import time
from tqdm import tqdm

total_size = 0 
for x in ["math-dataset", "stack-exchange", "books", "formal"]: 
    dataset = load_dataset("./proof-pile.py", x)
    size = dataset["train"].dataset_size / 2**30
    total_size += size
    print(x.upper())
    print(dataset)
    for x in tqdm(dataset["train"]): 
        print("EXAMPLE INSTANCE (trimmed):")
        print(x["text"][:100])
        break

    then = time.time()
    for x in tqdm(dataset["train"]):
        pass
    now = time.time()
    print(f"{size} GB TRAIN TOTAL")
    print(f"TRAVERSED IN {now-then} SECONDS")

print(f"{total_size} GB ACROSS ALL CONFIGS")