sudheer997 commited on
Commit
f7dd27a
1 Parent(s): a5eaafe

Upload LayoutLMv3ForTokenClassification

Browse files
Files changed (2) hide show
  1. config.json +58 -0
  2. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/content/test/checkpoint-1000",
3
+ "architectures": [
4
+ "LayoutLMv3ForTokenClassification"
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": "O",
18
+ "1": "B-HEADER",
19
+ "2": "I-HEADER",
20
+ "3": "B-QUESTION",
21
+ "4": "I-QUESTION",
22
+ "5": "B-ANSWER",
23
+ "6": "I-ANSWER"
24
+ },
25
+ "initializer_range": 0.02,
26
+ "input_size": 224,
27
+ "intermediate_size": 3072,
28
+ "label2id": {
29
+ "B-ANSWER": 5,
30
+ "B-HEADER": 1,
31
+ "B-QUESTION": 3,
32
+ "I-ANSWER": 6,
33
+ "I-HEADER": 2,
34
+ "I-QUESTION": 4,
35
+ "O": 0
36
+ },
37
+ "layer_norm_eps": 1e-05,
38
+ "max_2d_position_embeddings": 1024,
39
+ "max_position_embeddings": 514,
40
+ "max_rel_2d_pos": 256,
41
+ "max_rel_pos": 128,
42
+ "model_type": "layoutlmv3",
43
+ "num_attention_heads": 12,
44
+ "num_channels": 3,
45
+ "num_hidden_layers": 12,
46
+ "pad_token_id": 1,
47
+ "patch_size": 16,
48
+ "rel_2d_pos_bins": 64,
49
+ "rel_pos_bins": 32,
50
+ "second_input_size": 112,
51
+ "shape_size": 128,
52
+ "text_embed": true,
53
+ "torch_dtype": "float32",
54
+ "transformers_version": "4.27.0.dev0",
55
+ "type_vocab_size": 1,
56
+ "visual_embed": true,
57
+ "vocab_size": 50265
58
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f1dafc314fcb450b1e4cec2dcc219ce982c9cffb20f0e9ce105c238472ac8de
3
+ size 501404777