Datasets:

Modalities:
Text
Languages:
English
Libraries:
Datasets
License:
proof-pile / test.py
Zhangir Azerbayev
I think I fixed everything!
0443587
raw
history blame
532 Bytes
from datasets import load_dataset
from itertools import islice
import sys
import time
from tqdm import tqdm
total_size = 0
for x in ["arxiv"]:
dataset = load_dataset("./proof-pile.py", x)
size = dataset["train"].dataset_size / 2**30
total_size += size
print(x.upper())
print(dataset)
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")