File size: 3,998 Bytes
1593542
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f356ef8
1593542
 
 
b111af8
 
 
c548ae9
b111af8
 
 
 
 
 
 
 
 
c548ae9
 
b111af8
 
 
 
 
c548ae9
b111af8
 
 
 
 
 
 
 
 
c548ae9
 
b111af8
 
 
 
 
c548ae9
b111af8
 
 
 
 
 
 
 
 
c548ae9
 
b111af8
1593542
 
 
 
 
 
 
b111af8
 
 
1593542
 
 
 
 
 
c548ae9
 
1593542
 
f356ef8
1593542
 
f356ef8
1593542
 
f356ef8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1593542
 
 
 
f356ef8
 
 
 
6605441
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144



# install huggingface_hub from the command line:
#
#    pip install huggingface_hub
#    pip install datasets
#
# Log into huggingface hub (this only needs to be done once per project, and then it is cached)
#  
#    huggingface-cli login
# 
# This will ask you for an access token


import datasets


# dataset1
# dataset2
# dataset3
# dataset3_single
# dataset3_single_cv



##### dataset1 #######
dataset = datasets.load_dataset(
    "parquet",
    name = "dataset1",
    data_dir = "./intermediate",
    data_files = {
        "train" : "dataset1.parquet"},
    cache_dir = "/scratch/maom_root/maom0/maom",
    keep_in_memory = True)

dataset.push_to_hub(
    repo_id = "maom/MegaScale",
    config_name = "dataset1",
    data_dir = "dataset1/data",
    commit_message = "Upload dataset1")


##### dataset2 #######
dataset = datasets.load_dataset(
    "parquet",
    name = "dataset2",
    data_dir = "./intermediate",
    data_files = {
        "train" : "dataset2.parquet"},
    cache_dir = "/scratch/maom_root/maom0/maom",
    keep_in_memory = True)

dataset.push_to_hub(
    repo_id = "maom/MegaScale",
    config_name = "dataset2",
    data_dir = "dataset2/data",
    commit_message = "Upload dataset2")


##### dataset3 #######
dataset = datasets.load_dataset(
    "parquet",
    name = "dataset3",
    data_dir = "./intermediate",
    data_files = {
        "train" : "dataset3.parquet"},
    cache_dir = "/scratch/maom_root/maom0/maom",
    keep_in_memory = True)

dataset.push_to_hub(
    repo_id = "maom/MegaScale",
    config_name = "dataset3",
    data_dir = "dataset3/data",
    commit_message = "Upload dataset3")


##### dataset3_single #######
dataset = datasets.load_dataset(
    "parquet",
    name = "dataset3_single",
    data_dir = "./intermediate",
    data_files = {
        "train" : "dataset3_single_train.parquet",
        "val" : "dataset3_single_val.parquet",
        "test" : "dataset3_single_test.parquet"},
    cache_dir = "/scratch/maom_root/maom0/maom",
    keep_in_memory = True)

dataset.push_to_hub(
    repo_id = "maom/MegaScale",
    config_name = "dataset3_single",
    data_dir = "dataset3_single/data",
    commit_message = "Upload dataset3_single")


##### dataset3_single_cv #######
dataset = datasets.load_dataset(
    "parquet",
    name = "dataset3_single_cv",
    data_dir = "./intermediate",
    data_files = {
        "train_0" : "dataset3_single_cv_train_0.parquet",
        "train_1" : "dataset3_single_cv_train_1.parquet",        
        "train_2" : "dataset3_single_cv_train_2.parquet",
        "train_3" : "dataset3_single_cv_train_3.parquet",
        "train_4" : "dataset3_single_cv_train_4.parquet",        
        "val_0" : "dataset3_single_cv_val_0.parquet",
        "val_1" : "dataset3_single_cv_val_1.parquet",        
        "val_2" : "dataset3_single_cv_val_2.parquet",
        "val_3" : "dataset3_single_cv_val_3.parquet",
        "val_4" : "dataset3_single_cv_val_4.parquet",        
        "test_0" : "dataset3_single_cv_test_0.parquet",
        "test_1" : "dataset3_single_cv_test_1.parquet",        
        "test_2" : "dataset3_single_cv_test_2.parquet",
        "test_3" : "dataset3_single_cv_test_3.parquet",
        "test_4" : "dataset3_single_cv_test_4.parquet"},
    cache_dir = "/scratch/maom_root/maom0/maom",
    keep_in_memory = True)

dataset.push_to_hub(
    repo_id = "maom/MegaScale",
    config_name = "dataset3_single_cv",
    data_dir = "datase3_single_cv/data",
    commit_message = "Upload dataset3_single_cv")


##### AlphaFold2_model_PDBs ####
dataset = datasets.load_dataset(
    "parquet",
    name = "AlphaFold_model_PDBs",
    data_dir = "./intermediate",
    data_files = {
        "train" : "AlphaFold_model_PDBs.parquet"},
    cache_dir = "/scratch/maom_root/maom0/maom",
    keep_in_memory = True)

dataset.push_to_hub(
    repo_id = "maom/MegaScale",
    config_name = "AlphaFold_model_PDBs",
    data_dir = "AlphaFold_model_PDBs/data",
    commit_message = "Upload AlphaFold_model_PDBs")