jordyvl commited on
Commit
1ecdba7
0 Parent(s):

Dumping raw files

Browse files
.gitattributes ADDED
@@ -0,0 +1 @@
 
 
1
+ *.bin filter=lfs diff=lfs merge=lfs -text
config.json ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "EE_config": {
3
+ "apply_ocr": true,
4
+ "batch_size": 2,
5
+ "checkpoint": "",
6
+ "data_parallel": false,
7
+ "dataset": "jordyvl/rvl_cdip_easyocr",
8
+ "device": "cuda",
9
+ "downsampling": 0,
10
+ "epochs": 5,
11
+ "eval_batch_size": 1,
12
+ "eval_start": false,
13
+ "exit_threshold": -1,
14
+ "forward_signature": [
15
+ "input_ids",
16
+ "attention_mask",
17
+ "bbox",
18
+ "pixel_values",
19
+ "labels",
20
+ "token_type_ids",
21
+ "position_ids",
22
+ "head_mask",
23
+ "inputs_embeds",
24
+ "output_attentions",
25
+ "output_hidden_states",
26
+ "return_dict",
27
+ "kwargs"
28
+ ],
29
+ "get_raw_ocr_data": true,
30
+ "global_threshold": 1.000001,
31
+ "gradient_accumulation_steps": 32,
32
+ "lowercase": false,
33
+ "lr": 2e-05,
34
+ "model": "EElayoutlmv3",
35
+ "model_weights": "microsoft/layoutlmv3-base",
36
+ "optimizer": "AdamW",
37
+ "seed": 42,
38
+ "test_dataset": "jordyvl/rvl_cdip_100_examples_per_class",
39
+ "use_images": true,
40
+ "warmup_ratio": 0,
41
+ "weight_decay": 0
42
+ },
43
+ "_name_or_path": "microsoft/layoutlmv3-base",
44
+ "architectures": [
45
+ "LayoutLMv3EEForSequenceClassification"
46
+ ],
47
+ "attention_probs_dropout_prob": 0.1,
48
+ "bos_token_id": 0,
49
+ "classifier_dropout": null,
50
+ "coordinate_size": 128,
51
+ "eos_token_id": 2,
52
+ "exit_config": {
53
+ "encoder_layer_strategy": "ramp",
54
+ "exit_head_num_layers": 2,
55
+ "exits": [
56
+ "text_avg",
57
+ "vision_avg",
58
+ 1,
59
+ 4,
60
+ 8
61
+ ],
62
+ "global_threshold": 1.000001,
63
+ "inference_strategy": "max_confidence",
64
+ "training_strategy": "joint_weighted_avg"
65
+ },
66
+ "has_relative_attention_bias": true,
67
+ "has_spatial_attention_bias": true,
68
+ "hidden_act": "gelu",
69
+ "hidden_dropout_prob": 0.1,
70
+ "hidden_size": 768,
71
+ "id2label": {
72
+ "0": "letter",
73
+ "1": "form",
74
+ "2": "email",
75
+ "3": "handwritten",
76
+ "4": "advertisement",
77
+ "5": "scientific_report",
78
+ "6": "scientific_publication",
79
+ "7": "specification",
80
+ "8": "file_folder",
81
+ "9": "news_article",
82
+ "10": "budget",
83
+ "11": "invoice",
84
+ "12": "presentation",
85
+ "13": "questionnaire",
86
+ "14": "resume",
87
+ "15": "memo"
88
+ },
89
+ "initializer_range": 0.02,
90
+ "input_size": 224,
91
+ "intermediate_size": 3072,
92
+ "label2id": {
93
+ "advertisement": 4,
94
+ "budget": 10,
95
+ "email": 2,
96
+ "file_folder": 8,
97
+ "form": 1,
98
+ "handwritten": 3,
99
+ "invoice": 11,
100
+ "letter": 0,
101
+ "memo": 15,
102
+ "news_article": 9,
103
+ "presentation": 12,
104
+ "questionnaire": 13,
105
+ "resume": 14,
106
+ "scientific_publication": 6,
107
+ "scientific_report": 5,
108
+ "specification": 7
109
+ },
110
+ "layer_norm_eps": 1e-05,
111
+ "max_2d_position_embeddings": 1024,
112
+ "max_position_embeddings": 514,
113
+ "max_rel_2d_pos": 256,
114
+ "max_rel_pos": 128,
115
+ "model_type": "layoutlmv3",
116
+ "num_attention_heads": 12,
117
+ "num_channels": 3,
118
+ "num_hidden_layers": 12,
119
+ "pad_token_id": 1,
120
+ "patch_size": 16,
121
+ "rel_2d_pos_bins": 64,
122
+ "rel_pos_bins": 32,
123
+ "second_input_size": 112,
124
+ "shape_size": 128,
125
+ "text_embed": true,
126
+ "torch_dtype": "float32",
127
+ "transformers_version": "4.26.1",
128
+ "type_vocab_size": 1,
129
+ "visual_embed": true,
130
+ "vocab_size": 50265
131
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
preprocessor_config.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "apply_ocr": false,
3
+ "do_normalize": true,
4
+ "do_resize": true,
5
+ "feature_extractor_type": "LayoutLMv3FeatureExtractor",
6
+ "image_mean": [
7
+ 0.5,
8
+ 0.5,
9
+ 0.5
10
+ ],
11
+ "image_std": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "ocr_lang": null,
17
+ "resample": 2,
18
+ "size": 224
19
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4289a1b57786472b5bcf7b9fa225817ba154fb79b7c9efd79e77b1026d554745
3
+ size 515863297
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": true,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": true,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": true,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "bos_token": {
4
+ "__type": "AddedToken",
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false
10
+ },
11
+ "cls_token": {
12
+ "__type": "AddedToken",
13
+ "content": "<s>",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false
18
+ },
19
+ "cls_token_box": [
20
+ 0,
21
+ 0,
22
+ 0,
23
+ 0
24
+ ],
25
+ "eos_token": {
26
+ "__type": "AddedToken",
27
+ "content": "</s>",
28
+ "lstrip": false,
29
+ "normalized": true,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ },
33
+ "errors": "replace",
34
+ "mask_token": {
35
+ "__type": "AddedToken",
36
+ "content": "<mask>",
37
+ "lstrip": true,
38
+ "normalized": true,
39
+ "rstrip": false,
40
+ "single_word": false
41
+ },
42
+ "model_max_length": 512,
43
+ "name_or_path": "microsoft/layoutlmv3-base",
44
+ "only_label_first_subword": true,
45
+ "pad_token": {
46
+ "__type": "AddedToken",
47
+ "content": "<pad>",
48
+ "lstrip": false,
49
+ "normalized": true,
50
+ "rstrip": false,
51
+ "single_word": false
52
+ },
53
+ "pad_token_box": [
54
+ 0,
55
+ 0,
56
+ 0,
57
+ 0
58
+ ],
59
+ "pad_token_label": -100,
60
+ "sep_token": {
61
+ "__type": "AddedToken",
62
+ "content": "</s>",
63
+ "lstrip": false,
64
+ "normalized": true,
65
+ "rstrip": false,
66
+ "single_word": false
67
+ },
68
+ "sep_token_box": [
69
+ 0,
70
+ 0,
71
+ 0,
72
+ 0
73
+ ],
74
+ "special_tokens_map_file": null,
75
+ "tokenizer_class": "LayoutLMv3Tokenizer",
76
+ "trim_offsets": true,
77
+ "unk_token": {
78
+ "__type": "AddedToken",
79
+ "content": "<unk>",
80
+ "lstrip": false,
81
+ "normalized": true,
82
+ "rstrip": false,
83
+ "single_word": false
84
+ }
85
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2945bb49adc620e1c4a2551bfd3f0f53137be279823629e361c541cbf7f812aa
3
+ size 3579
vocab.json ADDED
The diff for this file is too large to render. See raw diff