jeonsiyun commited on
Commit
dd4a089
1 Parent(s): 0b83d7d

Upload LayoutLMv3ForSequenceClassification

Browse files
Files changed (3) hide show
  1. README.md +199 -0
  2. config.json +276 -0
  3. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ tags: []
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+ This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
config.json ADDED
@@ -0,0 +1,276 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/layoutlmv3-base",
3
+ "architectures": [
4
+ "LayoutLMv3ForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "coordinate_size": 128,
10
+ "eos_token_id": 2,
11
+ "has_relative_attention_bias": true,
12
+ "has_spatial_attention_bias": true,
13
+ "hidden_act": "gelu",
14
+ "hidden_dropout_prob": 0.1,
15
+ "hidden_size": 768,
16
+ "id2label": {
17
+ "0": "N-A00-1",
18
+ "1": "N-A00-10",
19
+ "2": "N-A00-11",
20
+ "3": "N-A00-12",
21
+ "4": "N-A00-13",
22
+ "5": "N-A00-14",
23
+ "6": "N-A00-15",
24
+ "7": "N-A00-16",
25
+ "8": "N-A00-17",
26
+ "9": "N-A00-18",
27
+ "10": "N-A00-19",
28
+ "11": "N-A00-2",
29
+ "12": "N-A00-20",
30
+ "13": "N-A00-3",
31
+ "14": "N-A00-4",
32
+ "15": "N-A00-5",
33
+ "16": "N-A00-6",
34
+ "17": "N-A00-7",
35
+ "18": "N-A00-8",
36
+ "19": "N-A00-9",
37
+ "20": "N-A01-1",
38
+ "21": "N-A01-10",
39
+ "22": "N-A01-11",
40
+ "23": "N-A01-12",
41
+ "24": "N-A01-13",
42
+ "25": "N-A01-14",
43
+ "26": "N-A01-15",
44
+ "27": "N-A01-16",
45
+ "28": "N-A01-17",
46
+ "29": "N-A01-18",
47
+ "30": "N-A01-19",
48
+ "31": "N-A01-2",
49
+ "32": "N-A01-20",
50
+ "33": "N-A01-21",
51
+ "34": "N-A01-22",
52
+ "35": "N-A01-23",
53
+ "36": "N-A01-24",
54
+ "37": "N-A01-3",
55
+ "38": "N-A01-4",
56
+ "39": "N-A01-5",
57
+ "40": "N-A01-6",
58
+ "41": "N-A01-7",
59
+ "42": "N-A01-8",
60
+ "43": "N-A01-9",
61
+ "44": "N-A02-1",
62
+ "45": "N-A02-10",
63
+ "46": "N-A02-11",
64
+ "47": "N-A02-12",
65
+ "48": "N-A02-13",
66
+ "49": "N-A02-14",
67
+ "50": "N-A02-15",
68
+ "51": "N-A02-16",
69
+ "52": "N-A02-17",
70
+ "53": "N-A02-18",
71
+ "54": "N-A02-19",
72
+ "55": "N-A02-2",
73
+ "56": "N-A02-20",
74
+ "57": "N-A02-21",
75
+ "58": "N-A02-22",
76
+ "59": "N-A02-23",
77
+ "60": "N-A02-24",
78
+ "61": "N-A02-3",
79
+ "62": "N-A02-4",
80
+ "63": "N-A02-5",
81
+ "64": "N-A02-6",
82
+ "65": "N-A02-7",
83
+ "66": "N-A02-8",
84
+ "67": "N-A02-9",
85
+ "68": "N-A03-1",
86
+ "69": "N-A03-10",
87
+ "70": "N-A03-11",
88
+ "71": "N-A03-12",
89
+ "72": "N-A03-13",
90
+ "73": "N-A03-14",
91
+ "74": "N-A03-15",
92
+ "75": "N-A03-16",
93
+ "76": "N-A03-17",
94
+ "77": "N-A03-18",
95
+ "78": "N-A03-19",
96
+ "79": "N-A03-2",
97
+ "80": "N-A03-20",
98
+ "81": "N-A03-21",
99
+ "82": "N-A03-22",
100
+ "83": "N-A03-23",
101
+ "84": "N-A03-24",
102
+ "85": "N-A03-3",
103
+ "86": "N-A03-4",
104
+ "87": "N-A03-5",
105
+ "88": "N-A03-6",
106
+ "89": "N-A03-7",
107
+ "90": "N-A03-8",
108
+ "91": "N-A03-9",
109
+ "92": "N-A04-1",
110
+ "93": "N-A04-10",
111
+ "94": "N-A04-11",
112
+ "95": "N-A04-12",
113
+ "96": "N-A04-13",
114
+ "97": "N-A04-14",
115
+ "98": "N-A04-15",
116
+ "99": "N-A04-16",
117
+ "100": "N-A04-17",
118
+ "101": "N-A04-18",
119
+ "102": "N-A04-19",
120
+ "103": "N-A04-2",
121
+ "104": "N-A04-20",
122
+ "105": "N-A04-21",
123
+ "106": "N-A04-22",
124
+ "107": "N-A04-23",
125
+ "108": "N-A04-24",
126
+ "109": "N-A04-3",
127
+ "110": "N-A04-4",
128
+ "111": "N-A04-5",
129
+ "112": "N-A04-6",
130
+ "113": "N-A04-7",
131
+ "114": "N-A04-8",
132
+ "115": "N-A04-9"
133
+ },
134
+ "initializer_range": 0.02,
135
+ "input_size": 224,
136
+ "intermediate_size": 3072,
137
+ "label2id": {
138
+ "N-A00-1": 0,
139
+ "N-A00-10": 1,
140
+ "N-A00-11": 2,
141
+ "N-A00-12": 3,
142
+ "N-A00-13": 4,
143
+ "N-A00-14": 5,
144
+ "N-A00-15": 6,
145
+ "N-A00-16": 7,
146
+ "N-A00-17": 8,
147
+ "N-A00-18": 9,
148
+ "N-A00-19": 10,
149
+ "N-A00-2": 11,
150
+ "N-A00-20": 12,
151
+ "N-A00-3": 13,
152
+ "N-A00-4": 14,
153
+ "N-A00-5": 15,
154
+ "N-A00-6": 16,
155
+ "N-A00-7": 17,
156
+ "N-A00-8": 18,
157
+ "N-A00-9": 19,
158
+ "N-A01-1": 20,
159
+ "N-A01-10": 21,
160
+ "N-A01-11": 22,
161
+ "N-A01-12": 23,
162
+ "N-A01-13": 24,
163
+ "N-A01-14": 25,
164
+ "N-A01-15": 26,
165
+ "N-A01-16": 27,
166
+ "N-A01-17": 28,
167
+ "N-A01-18": 29,
168
+ "N-A01-19": 30,
169
+ "N-A01-2": 31,
170
+ "N-A01-20": 32,
171
+ "N-A01-21": 33,
172
+ "N-A01-22": 34,
173
+ "N-A01-23": 35,
174
+ "N-A01-24": 36,
175
+ "N-A01-3": 37,
176
+ "N-A01-4": 38,
177
+ "N-A01-5": 39,
178
+ "N-A01-6": 40,
179
+ "N-A01-7": 41,
180
+ "N-A01-8": 42,
181
+ "N-A01-9": 43,
182
+ "N-A02-1": 44,
183
+ "N-A02-10": 45,
184
+ "N-A02-11": 46,
185
+ "N-A02-12": 47,
186
+ "N-A02-13": 48,
187
+ "N-A02-14": 49,
188
+ "N-A02-15": 50,
189
+ "N-A02-16": 51,
190
+ "N-A02-17": 52,
191
+ "N-A02-18": 53,
192
+ "N-A02-19": 54,
193
+ "N-A02-2": 55,
194
+ "N-A02-20": 56,
195
+ "N-A02-21": 57,
196
+ "N-A02-22": 58,
197
+ "N-A02-23": 59,
198
+ "N-A02-24": 60,
199
+ "N-A02-3": 61,
200
+ "N-A02-4": 62,
201
+ "N-A02-5": 63,
202
+ "N-A02-6": 64,
203
+ "N-A02-7": 65,
204
+ "N-A02-8": 66,
205
+ "N-A02-9": 67,
206
+ "N-A03-1": 68,
207
+ "N-A03-10": 69,
208
+ "N-A03-11": 70,
209
+ "N-A03-12": 71,
210
+ "N-A03-13": 72,
211
+ "N-A03-14": 73,
212
+ "N-A03-15": 74,
213
+ "N-A03-16": 75,
214
+ "N-A03-17": 76,
215
+ "N-A03-18": 77,
216
+ "N-A03-19": 78,
217
+ "N-A03-2": 79,
218
+ "N-A03-20": 80,
219
+ "N-A03-21": 81,
220
+ "N-A03-22": 82,
221
+ "N-A03-23": 83,
222
+ "N-A03-24": 84,
223
+ "N-A03-3": 85,
224
+ "N-A03-4": 86,
225
+ "N-A03-5": 87,
226
+ "N-A03-6": 88,
227
+ "N-A03-7": 89,
228
+ "N-A03-8": 90,
229
+ "N-A03-9": 91,
230
+ "N-A04-1": 92,
231
+ "N-A04-10": 93,
232
+ "N-A04-11": 94,
233
+ "N-A04-12": 95,
234
+ "N-A04-13": 96,
235
+ "N-A04-14": 97,
236
+ "N-A04-15": 98,
237
+ "N-A04-16": 99,
238
+ "N-A04-17": 100,
239
+ "N-A04-18": 101,
240
+ "N-A04-19": 102,
241
+ "N-A04-2": 103,
242
+ "N-A04-20": 104,
243
+ "N-A04-21": 105,
244
+ "N-A04-22": 106,
245
+ "N-A04-23": 107,
246
+ "N-A04-24": 108,
247
+ "N-A04-3": 109,
248
+ "N-A04-4": 110,
249
+ "N-A04-5": 111,
250
+ "N-A04-6": 112,
251
+ "N-A04-7": 113,
252
+ "N-A04-8": 114,
253
+ "N-A04-9": 115
254
+ },
255
+ "layer_norm_eps": 1e-05,
256
+ "max_2d_position_embeddings": 1024,
257
+ "max_position_embeddings": 514,
258
+ "max_rel_2d_pos": 256,
259
+ "max_rel_pos": 128,
260
+ "model_type": "layoutlmv3",
261
+ "num_attention_heads": 12,
262
+ "num_channels": 3,
263
+ "num_hidden_layers": 12,
264
+ "pad_token_id": 1,
265
+ "patch_size": 16,
266
+ "rel_2d_pos_bins": 64,
267
+ "rel_pos_bins": 32,
268
+ "second_input_size": 112,
269
+ "shape_size": 128,
270
+ "text_embed": true,
271
+ "torch_dtype": "float32",
272
+ "transformers_version": "4.39.0.dev0",
273
+ "type_vocab_size": 1,
274
+ "visual_embed": true,
275
+ "vocab_size": 50265
276
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e731e3c03597f3239408ea5e2be2a1a34d110d05732a0a0734c6f21124b54712
3
+ size 504053416