vaibhav1411 commited on
Commit
93bb9c7
·
verified ·
1 Parent(s): 8e35864

End of training

Browse files
Files changed (4) hide show
  1. README.md +12 -12
  2. config.json +8 -8
  3. model.safetensors +2 -2
  4. training_args.bin +1 -1
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  license: cc-by-nc-sa-4.0
3
- base_model: microsoft/layoutlmv2-base-uncased
4
  tags:
5
  - generated_from_trainer
6
  metrics:
@@ -18,13 +18,13 @@ should probably proofread and complete it, then remove this comment. -->
18
 
19
  # layoutlmv2-finetuned-piimask
20
 
21
- This model is a fine-tuned version of [microsoft/layoutlmv2-base-uncased](https://huggingface.co/microsoft/layoutlmv2-base-uncased) on the None dataset.
22
  It achieves the following results on the evaluation set:
23
- - Loss: nan
24
- - Precision: 0.0513
25
- - Recall: 0.0082
26
- - F1: 0.0141
27
- - Accuracy: 0.9011
28
 
29
  ## Model description
30
 
@@ -57,11 +57,11 @@ The following hyperparameters were used during training:
57
 
58
  | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
59
  |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
60
- | No log | 1.0 | 135 | nan | 0.3096 | 0.125 | 0.1781 | 0.9093 |
61
- | No log | 2.0 | 270 | nan | 0.0513 | 0.0082 | 0.0141 | 0.9011 |
62
- | No log | 3.0 | 405 | nan | 0.0513 | 0.0082 | 0.0141 | 0.9011 |
63
- | 0.1293 | 4.0 | 540 | nan | 0.0513 | 0.0082 | 0.0141 | 0.9011 |
64
- | 0.1293 | 5.0 | 675 | nan | 0.0513 | 0.0082 | 0.0141 | 0.9011 |
65
 
66
 
67
  ### Framework versions
 
1
  ---
2
  license: cc-by-nc-sa-4.0
3
+ base_model: microsoft/layoutlmv2-large-uncased
4
  tags:
5
  - generated_from_trainer
6
  metrics:
 
18
 
19
  # layoutlmv2-finetuned-piimask
20
 
21
+ This model is a fine-tuned version of [microsoft/layoutlmv2-large-uncased](https://huggingface.co/microsoft/layoutlmv2-large-uncased) on the None dataset.
22
  It achieves the following results on the evaluation set:
23
+ - Loss: 0.1939
24
+ - Precision: 0.7555
25
+ - Recall: 0.7775
26
+ - F1: 0.7663
27
+ - Accuracy: 0.9581
28
 
29
  ## Model description
30
 
 
57
 
58
  | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
59
  |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
60
+ | No log | 1.0 | 135 | 0.1473 | 0.7251 | 0.6697 | 0.6963 | 0.9499 |
61
+ | No log | 2.0 | 270 | 0.1400 | 0.6767 | 0.7573 | 0.7147 | 0.9621 |
62
+ | No log | 3.0 | 405 | 0.1543 | 0.7372 | 0.7753 | 0.7558 | 0.9612 |
63
+ | 0.3116 | 4.0 | 540 | 0.2355 | 0.7621 | 0.7775 | 0.7697 | 0.9560 |
64
+ | 0.3116 | 5.0 | 675 | 0.1939 | 0.7555 | 0.7775 | 0.7663 | 0.9581 |
65
 
66
 
67
  ### Framework versions
config.json CHANGED
@@ -1,11 +1,11 @@
1
  {
2
- "_name_or_path": "microsoft/layoutlmv2-base-uncased",
3
  "architectures": [
4
  "LayoutLMv2ForTokenClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
7
  "convert_sync_batchnorm": true,
8
- "coordinate_size": 128,
9
  "detectron2_config_args": {
10
  "MODEL.ANCHOR_GENERATOR.SIZES": [
11
  [
@@ -97,14 +97,14 @@
97
  "MODEL.RPN.PRE_NMS_TOPK_TEST": 1000,
98
  "MODEL.RPN.PRE_NMS_TOPK_TRAIN": 2000
99
  },
100
- "fast_qkv": true,
101
  "gradient_checkpointing": false,
102
  "has_relative_attention_bias": true,
103
  "has_spatial_attention_bias": true,
104
  "has_visual_segment_embedding": false,
105
  "hidden_act": "gelu",
106
  "hidden_dropout_prob": 0.1,
107
- "hidden_size": 768,
108
  "id2label": {
109
  "0": "I-others",
110
  "1": "I-password",
@@ -131,7 +131,7 @@
131
  256
132
  ],
133
  "initializer_range": 0.02,
134
- "intermediate_size": 3072,
135
  "label2id": {
136
  "I-OTP": 12,
137
  "I-account number": 14,
@@ -158,13 +158,13 @@
158
  "max_rel_2d_pos": 256,
159
  "max_rel_pos": 128,
160
  "model_type": "layoutlmv2",
161
- "num_attention_heads": 12,
162
- "num_hidden_layers": 12,
163
  "output_past": true,
164
  "pad_token_id": 0,
165
  "rel_2d_pos_bins": 64,
166
  "rel_pos_bins": 32,
167
- "shape_size": 128,
168
  "torch_dtype": "float32",
169
  "transformers_version": "4.42.3",
170
  "type_vocab_size": 2,
 
1
  {
2
+ "_name_or_path": "microsoft/layoutlmv2-large-uncased",
3
  "architectures": [
4
  "LayoutLMv2ForTokenClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
7
  "convert_sync_batchnorm": true,
8
+ "coordinate_size": 171,
9
  "detectron2_config_args": {
10
  "MODEL.ANCHOR_GENERATOR.SIZES": [
11
  [
 
97
  "MODEL.RPN.PRE_NMS_TOPK_TEST": 1000,
98
  "MODEL.RPN.PRE_NMS_TOPK_TRAIN": 2000
99
  },
100
+ "fast_qkv": false,
101
  "gradient_checkpointing": false,
102
  "has_relative_attention_bias": true,
103
  "has_spatial_attention_bias": true,
104
  "has_visual_segment_embedding": false,
105
  "hidden_act": "gelu",
106
  "hidden_dropout_prob": 0.1,
107
+ "hidden_size": 1024,
108
  "id2label": {
109
  "0": "I-others",
110
  "1": "I-password",
 
131
  256
132
  ],
133
  "initializer_range": 0.02,
134
+ "intermediate_size": 4096,
135
  "label2id": {
136
  "I-OTP": 12,
137
  "I-account number": 14,
 
158
  "max_rel_2d_pos": 256,
159
  "max_rel_pos": 128,
160
  "model_type": "layoutlmv2",
161
+ "num_attention_heads": 16,
162
+ "num_hidden_layers": 24,
163
  "output_past": true,
164
  "pad_token_id": 0,
165
  "rel_2d_pos_bins": 64,
166
  "rel_pos_bins": 32,
167
+ "shape_size": 170,
168
  "torch_dtype": "float32",
169
  "transformers_version": "4.42.3",
170
  "type_vocab_size": 2,
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:98111393f73205d6d2ceb2bcb9286cb8868df63eb0db8c86edc78425e5b078f9
3
- size 802099776
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9a2e5a30c41215586f260f5fcc95a108a4369800200d602c03765b99671ad47
3
+ size 1705787904
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3c4500f7aaa0ac7cc94cc93dbd3fc30e022dd4712029529e959139f35b1c6ff7
3
  size 5112
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f964dd6fc6ebf7476772c33ab970b6e430296d8dc49e672ba89784d642b3531
3
  size 5112