forked from meta-llama/llama-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdatasets.py
132 lines (110 loc) · 3.75 KB
/
datasets.py
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
# Copyright (c) Meta Platforms, Inc. and affiliates.
# This software may be used and distributed according to the terms of the Llama 2 Community License Agreement.
from dataclasses import dataclass
@dataclass
class samsum_dataset:
dataset: str = "samsum_dataset"
train_split: str = "train"
test_split: str = "validation"
input_length: int = 2048
@dataclass
class grammar_dataset:
dataset: str = "grammar_dataset"
train_split: str = "ft_datasets/grammar_dataset/gtrain_10k.csv"
test_split: str = "ft_datasets/grammar_dataset/grammar_validation.csv"
input_length: int = 2048
@dataclass
class alpaca_dataset:
dataset: str = "alpaca_dataset"
train_split: str = "train"
test_split: str = "val"
data_path: str = "ft_datasets/alpaca_data.json"
@dataclass
class dopingjson_dataset:
dataset: str = "dopingjson_dataset"
train_split: str = "train"
test_split: str = "val"
data_path: str = "../datasets/doping/doping_data_forllama_json"
@dataclass
class dopingengextra_dataset:
dataset: str = "dopingengextra_dataset"
train_split: str = "train"
test_split: str = "val"
data_path: str = "../datasets/doping/doping_data_forllama_engextra"
@dataclass
class dopingeng_dataset:
dataset: str = "dopingeng_dataset"
train_split: str = "train"
test_split: str = "val"
data_path: str = "../datasets/doping/doping_data_forllama_eng"
@dataclass
class generalmatfold0_dataset:
dataset: str = "generalmatfold0_dataset"
fold: str='fold_0'
train_split: str = "train"
test_split: str = "val"
data_path: str = "../datasets/generalmof/experiments_general/fold_0"
@dataclass
class generalmatfold1_dataset:
dataset: str = "generalmatfold1_dataset"
fold: str='fold_1'
train_split: str = "train"
test_split: str = "val"
data_path: str = "../datasets/generalmof/experiments_general/fold_1"
@dataclass
class generalmatfold2_dataset:
dataset: str = "generalmatfold2_dataset"
fold: str='fold_2'
train_split: str = "train"
test_split: str = "val"
data_path: str = "../datasets/generalmof/experiments_general/fold_2"
@dataclass
class generalmatfold3_dataset:
dataset: str = "generalmatfold3_dataset"
fold: str='fold_3'
train_split: str = "train"
test_split: str = "val"
data_path: str = "../datasets/generalmof/experiments_general/fold_3"
@dataclass
class generalmatfold4_dataset:
dataset: str = "generalmatfold4_dataset"
fold: str='fold_4'
train_split: str = "train"
test_split: str = "val"
data_path: str = "../datasets/generalmof/experiments_general/fold_4"
@dataclass
class moffold0_dataset:
dataset: str = "moffold0_dataset"
train_split: str = "train"
test_split: str = "val"
data_path: str = "../datasets/generalmof/experiments_mof/fold_0"
@dataclass
class moffold1_dataset:
dataset: str = "moffold1_dataset"
train_split: str = "train"
test_split: str = "val"
data_path: str = "../datasets/generalmof/experiments_mof/fold_1"
@dataclass
class moffold2_dataset:
dataset: str = "moffold2_dataset"
train_split: str = "train"
test_split: str = "val"
data_path: str = "../datasets/generalmof/experiments_mof/fold_2"
@dataclass
class moffold3_dataset:
dataset: str = "moffold3_dataset"
train_split: str = "train"
test_split: str = "val"
data_path: str = "../datasets/generalmof/experiments_mof/fold_3"
@dataclass
class moffold4_dataset:
dataset: str = "moffold4_dataset"
train_split: str = "train"
test_split: str = "val"
data_path: str = "../datasets/generalmof/experiments_mof/fold_4"
@dataclass
class AuNR_dataset:
dataset: str = "AuNR_dataset"
train_split: str = "train"
test_split: str = "val"
data_path: str = "../datasets/AuNR/AuNR_data_forllama"