jordyvl commited on
Commit
7f559cd
1 Parent(s): faf79bf

Saving best model to hub

Browse files
Files changed (4) hide show
  1. .gitignore +1 -0
  2. config.json +123 -0
  3. pytorch_model.bin +3 -0
  4. training_args.bin +3 -0
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ checkpoint-*/
config.json ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "EE_config": {
3
+ "alpha": 0.5,
4
+ "apply_ocr": true,
5
+ "batch_size": 8,
6
+ "benchmark_OCR": false,
7
+ "checkpoint": "",
8
+ "data_parallel": false,
9
+ "dataset": "maveriq/tobacco3482",
10
+ "device": "cuda",
11
+ "downsampling": 0,
12
+ "encoder_layer_strategy": "ramp",
13
+ "epochs": 100,
14
+ "eval_batch_size": 1,
15
+ "eval_start": false,
16
+ "exit_head_num_layers": 2,
17
+ "exit_threshold": -1,
18
+ "exits": [
19
+ "text_avg",
20
+ "vision_avg",
21
+ 1,
22
+ 4,
23
+ 8
24
+ ],
25
+ "forward_signature": [
26
+ "pixel_values",
27
+ "head_mask",
28
+ "labels",
29
+ "output_attentions",
30
+ "output_hidden_states",
31
+ "return_dict"
32
+ ],
33
+ "gamma": 0,
34
+ "get_raw_ocr_data": false,
35
+ "global_threshold": 1.000001,
36
+ "gradient_accumulation_steps": 1,
37
+ "inference_strategy": "max_confidence",
38
+ "lowercase": false,
39
+ "lr": 2e-05,
40
+ "model": "dit",
41
+ "model_weights": "microsoft/dit-base",
42
+ "optimizer": "AdamW",
43
+ "plot_exits": false,
44
+ "print_freq": 50,
45
+ "seed": 42,
46
+ "temperature": 1,
47
+ "test_dataset": "jordyvl/rvl_cdip_100_examples_per_class",
48
+ "training_strategy": "joint_weighted_avg",
49
+ "use_images": true,
50
+ "warmup_ratio": 0,
51
+ "weight_decay": 0
52
+ },
53
+ "_name_or_path": "microsoft/dit-base",
54
+ "architectures": [
55
+ "BeitForImageClassification"
56
+ ],
57
+ "attention_probs_dropout_prob": 0.0,
58
+ "auxiliary_channels": 256,
59
+ "auxiliary_concat_input": false,
60
+ "auxiliary_loss_weight": 0.4,
61
+ "auxiliary_num_convs": 1,
62
+ "drop_path_rate": 0.1,
63
+ "hidden_act": "gelu",
64
+ "hidden_dropout_prob": 0.0,
65
+ "hidden_size": 768,
66
+ "id2label": {
67
+ "0": "ADVE",
68
+ "1": "Email",
69
+ "2": "Form",
70
+ "3": "Letter",
71
+ "4": "Memo",
72
+ "5": "News",
73
+ "6": "Note",
74
+ "7": "Report",
75
+ "8": "Resume",
76
+ "9": "Scientific"
77
+ },
78
+ "image_size": 224,
79
+ "initializer_range": 0.02,
80
+ "intermediate_size": 3072,
81
+ "label2id": {
82
+ "ADVE": 0,
83
+ "Email": 1,
84
+ "Form": 2,
85
+ "Letter": 3,
86
+ "Memo": 4,
87
+ "News": 5,
88
+ "Note": 6,
89
+ "Report": 7,
90
+ "Resume": 8,
91
+ "Scientific": 9
92
+ },
93
+ "layer_norm_eps": 1e-12,
94
+ "layer_scale_init_value": 0.1,
95
+ "model_type": "beit",
96
+ "num_attention_heads": 12,
97
+ "num_channels": 3,
98
+ "num_hidden_layers": 12,
99
+ "out_indices": [
100
+ 3,
101
+ 5,
102
+ 7,
103
+ 11
104
+ ],
105
+ "patch_size": 16,
106
+ "pool_scales": [
107
+ 1,
108
+ 2,
109
+ 3,
110
+ 6
111
+ ],
112
+ "problem_type": "single_label_classification",
113
+ "semantic_loss_ignore_index": 255,
114
+ "torch_dtype": "float32",
115
+ "transformers_version": "4.26.1",
116
+ "use_absolute_position_embeddings": true,
117
+ "use_auxiliary_head": true,
118
+ "use_mask_token": true,
119
+ "use_mean_pooling": true,
120
+ "use_relative_position_bias": false,
121
+ "use_shared_relative_position_bias": false,
122
+ "vocab_size": 8192
123
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2688a934ca7754ae040008d5f5bdac9f2f7daf20a8a540f93e7914813b35be94
3
+ size 343337441
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dda515b08665b1489abc8eb5e65ebf5d76720749d6c65515430a3ffaa52d2b65
3
+ size 3643