liljacharlotte commited on
Commit
bb79b8c
·
1 Parent(s): e3d2835

Upload 4 files

Browse files
.gitattributes ADDED
@@ -0,0 +1 @@
 
 
1
+ model.safetensors filter=lfs diff=lfs merge=lfs -text
config.json ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "NorbertForSequenceClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "auto_map": {
7
+ "AutoConfig": "configuration_norbert.NorbertConfig",
8
+ "AutoModel": "modeling_norbert.NorbertModel",
9
+ "AutoModelForMaskedLM": "modeling_norbert.NorbertForMaskedLM",
10
+ "AutoModelForMultipleChoice": "modeling_norbert.NorbertForMultipleChoice",
11
+ "AutoModelForQuestionAnswering": "modeling_norbert.NorbertForQuestionAnswering",
12
+ "AutoModelForSequenceClassification": "modeling_norbert.NorbertForSequenceClassification",
13
+ "AutoModelForTokenClassification": "modeling_norbert.NorbertForTokenClassification"
14
+ },
15
+ "hidden_dropout_prob": 0.1,
16
+ "hidden_size": 1024,
17
+ "id2label": {
18
+ "0": "LABEL_0",
19
+ "1": "LABEL_1",
20
+ "2": "LABEL_2",
21
+ "3": "LABEL_3",
22
+ "4": "LABEL_4",
23
+ "5": "LABEL_5",
24
+ "6": "LABEL_6",
25
+ "7": "LABEL_7",
26
+ "8": "LABEL_8",
27
+ "9": "LABEL_9",
28
+ "10": "LABEL_10",
29
+ "11": "LABEL_11",
30
+ "12": "LABEL_12",
31
+ "13": "LABEL_13",
32
+ "14": "LABEL_14",
33
+ "15": "LABEL_15",
34
+ "16": "LABEL_16",
35
+ "17": "LABEL_17",
36
+ "18": "LABEL_18",
37
+ "19": "LABEL_19",
38
+ "20": "LABEL_20",
39
+ "21": "LABEL_21",
40
+ "22": "LABEL_22",
41
+ "23": "LABEL_23",
42
+ "24": "LABEL_24",
43
+ "25": "LABEL_25",
44
+ "26": "LABEL_26",
45
+ "27": "LABEL_27",
46
+ "28": "LABEL_28",
47
+ "29": "LABEL_29",
48
+ "30": "LABEL_30",
49
+ "31": "LABEL_31",
50
+ "32": "LABEL_32",
51
+ "33": "LABEL_33",
52
+ "34": "LABEL_34",
53
+ "35": "LABEL_35",
54
+ "36": "LABEL_36",
55
+ "37": "LABEL_37",
56
+ "38": "LABEL_38",
57
+ "39": "LABEL_39",
58
+ "40": "LABEL_40",
59
+ "41": "LABEL_41",
60
+ "42": "LABEL_42",
61
+ "43": "LABEL_43",
62
+ "44": "LABEL_44",
63
+ "45": "LABEL_45",
64
+ "46": "LABEL_46",
65
+ "47": "LABEL_47",
66
+ "48": "LABEL_48",
67
+ "49": "LABEL_49",
68
+ "50": "LABEL_50",
69
+ "51": "LABEL_51",
70
+ "52": "LABEL_52",
71
+ "53": "LABEL_53",
72
+ "54": "LABEL_54",
73
+ "55": "LABEL_55",
74
+ "56": "LABEL_56",
75
+ "57": "LABEL_57",
76
+ "58": "LABEL_58",
77
+ "59": "LABEL_59",
78
+ "60": "LABEL_60",
79
+ "61": "LABEL_61",
80
+ "62": "LABEL_62",
81
+ "63": "LABEL_63",
82
+ "64": "LABEL_64",
83
+ "65": "LABEL_65",
84
+ "66": "LABEL_66"
85
+ },
86
+ "intermediate_size": 2730,
87
+ "label2id": {
88
+ "LABEL_0": 0,
89
+ "LABEL_1": 1,
90
+ "LABEL_10": 10,
91
+ "LABEL_11": 11,
92
+ "LABEL_12": 12,
93
+ "LABEL_13": 13,
94
+ "LABEL_14": 14,
95
+ "LABEL_15": 15,
96
+ "LABEL_16": 16,
97
+ "LABEL_17": 17,
98
+ "LABEL_18": 18,
99
+ "LABEL_19": 19,
100
+ "LABEL_2": 2,
101
+ "LABEL_20": 20,
102
+ "LABEL_21": 21,
103
+ "LABEL_22": 22,
104
+ "LABEL_23": 23,
105
+ "LABEL_24": 24,
106
+ "LABEL_25": 25,
107
+ "LABEL_26": 26,
108
+ "LABEL_27": 27,
109
+ "LABEL_28": 28,
110
+ "LABEL_29": 29,
111
+ "LABEL_3": 3,
112
+ "LABEL_30": 30,
113
+ "LABEL_31": 31,
114
+ "LABEL_32": 32,
115
+ "LABEL_33": 33,
116
+ "LABEL_34": 34,
117
+ "LABEL_35": 35,
118
+ "LABEL_36": 36,
119
+ "LABEL_37": 37,
120
+ "LABEL_38": 38,
121
+ "LABEL_39": 39,
122
+ "LABEL_4": 4,
123
+ "LABEL_40": 40,
124
+ "LABEL_41": 41,
125
+ "LABEL_42": 42,
126
+ "LABEL_43": 43,
127
+ "LABEL_44": 44,
128
+ "LABEL_45": 45,
129
+ "LABEL_46": 46,
130
+ "LABEL_47": 47,
131
+ "LABEL_48": 48,
132
+ "LABEL_49": 49,
133
+ "LABEL_5": 5,
134
+ "LABEL_50": 50,
135
+ "LABEL_51": 51,
136
+ "LABEL_52": 52,
137
+ "LABEL_53": 53,
138
+ "LABEL_54": 54,
139
+ "LABEL_55": 55,
140
+ "LABEL_56": 56,
141
+ "LABEL_57": 57,
142
+ "LABEL_58": 58,
143
+ "LABEL_59": 59,
144
+ "LABEL_6": 6,
145
+ "LABEL_60": 60,
146
+ "LABEL_61": 61,
147
+ "LABEL_62": 62,
148
+ "LABEL_63": 63,
149
+ "LABEL_64": 64,
150
+ "LABEL_65": 65,
151
+ "LABEL_66": 66,
152
+ "LABEL_7": 7,
153
+ "LABEL_8": 8,
154
+ "LABEL_9": 9
155
+ },
156
+ "layer_norm_eps": 1e-07,
157
+ "max_position_embeddings": 512,
158
+ "num_attention_heads": 16,
159
+ "num_hidden_layers": 24,
160
+ "output_all_encoded_layers": true,
161
+ "position_bucket_size": 32,
162
+ "problem_type": "multi_label_classification",
163
+ "torch_dtype": "float32",
164
+ "transformers_version": "4.53.3",
165
+ "vocab_size": 50000
166
+ }
configuration_norbert.py ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from transformers.configuration_utils import PretrainedConfig
2
+
3
+
4
+ class NorbertConfig(PretrainedConfig):
5
+ """Configuration class to store the configuration of a `NorbertModel`.
6
+ """
7
+ def __init__(
8
+ self,
9
+ vocab_size=50000,
10
+ attention_probs_dropout_prob=0.1,
11
+ hidden_dropout_prob=0.1,
12
+ hidden_size=768,
13
+ intermediate_size=2048,
14
+ max_position_embeddings=512,
15
+ position_bucket_size=32,
16
+ num_attention_heads=12,
17
+ num_hidden_layers=12,
18
+ layer_norm_eps=1.0e-7,
19
+ output_all_encoded_layers=True,
20
+ **kwargs,
21
+ ):
22
+ super().__init__(**kwargs)
23
+
24
+ self.vocab_size = vocab_size
25
+ self.hidden_size = hidden_size
26
+ self.num_hidden_layers = num_hidden_layers
27
+ self.num_attention_heads = num_attention_heads
28
+ self.intermediate_size = intermediate_size
29
+ self.hidden_dropout_prob = hidden_dropout_prob
30
+ self.attention_probs_dropout_prob = attention_probs_dropout_prob
31
+ self.max_position_embeddings = max_position_embeddings
32
+ self.output_all_encoded_layers = output_all_encoded_layers
33
+ self.position_bucket_size = position_bucket_size
34
+ self.layer_norm_eps = layer_norm_eps
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54b75e42a374dee851f45e43905c81d60d34ef11f0930865ac8a9a5c6cc0a1ab
3
+ size 1257766912
training_args.bin ADDED
Binary file (5.84 kB). View file