bdpc commited on
Commit
4ba6c04
·
1 Parent(s): aa382b8

Saving best model to hub

Browse files
Files changed (4) hide show
  1. README.md +78 -0
  2. config.json +60 -0
  3. pytorch_model.bin +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: jordyvl/vit-base_rvl-cdip
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: vit-base_rvl_cdip_aurc
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # vit-base_rvl_cdip_aurc
17
+
18
+ This model is a fine-tuned version of [jordyvl/vit-base_rvl-cdip](https://huggingface.co/jordyvl/vit-base_rvl-cdip) on the None dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.2759
21
+ - Accuracy: 0.893
22
+ - Brier Loss: 0.1798
23
+ - Nll: 0.8614
24
+ - F1 Micro: 0.893
25
+ - F1 Macro: 0.8928
26
+ - Ece: 0.0750
27
+ - Aurc: 0.0215
28
+
29
+ ## Model description
30
+
31
+ More information needed
32
+
33
+ ## Intended uses & limitations
34
+
35
+ More information needed
36
+
37
+ ## Training and evaluation data
38
+
39
+ More information needed
40
+
41
+ ## Training procedure
42
+
43
+ ### Training hyperparameters
44
+
45
+ The following hyperparameters were used during training:
46
+ - learning_rate: 2e-05
47
+ - train_batch_size: 16
48
+ - eval_batch_size: 16
49
+ - seed: 42
50
+ - gradient_accumulation_steps: 2
51
+ - total_train_batch_size: 32
52
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
53
+ - lr_scheduler_type: linear
54
+ - lr_scheduler_warmup_ratio: 0.1
55
+ - num_epochs: 10
56
+
57
+ ### Training results
58
+
59
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Brier Loss | Nll | F1 Micro | F1 Macro | Ece | Aurc |
60
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:----------:|:------:|:--------:|:--------:|:------:|:------:|
61
+ | 0.0303 | 1.0 | 500 | 0.1865 | 0.8795 | 0.1840 | 1.2087 | 0.8795 | 0.8791 | 0.0495 | 0.0241 |
62
+ | 0.0262 | 2.0 | 1000 | 0.2146 | 0.8788 | 0.1909 | 1.1956 | 0.8788 | 0.8789 | 0.0603 | 0.0257 |
63
+ | 0.0121 | 3.0 | 1500 | 0.2117 | 0.886 | 0.1799 | 1.0878 | 0.886 | 0.8865 | 0.0611 | 0.0230 |
64
+ | 0.0057 | 4.0 | 2000 | 0.2279 | 0.8878 | 0.1803 | 1.0108 | 0.8878 | 0.8879 | 0.0678 | 0.0228 |
65
+ | 0.0038 | 5.0 | 2500 | 0.2491 | 0.8872 | 0.1827 | 0.9661 | 0.8872 | 0.8877 | 0.0725 | 0.0234 |
66
+ | 0.0028 | 6.0 | 3000 | 0.2398 | 0.89 | 0.1806 | 0.9378 | 0.89 | 0.8901 | 0.0725 | 0.0215 |
67
+ | 0.0016 | 7.0 | 3500 | 0.2736 | 0.891 | 0.1792 | 0.8975 | 0.891 | 0.8914 | 0.0744 | 0.0221 |
68
+ | 0.0014 | 8.0 | 4000 | 0.2357 | 0.8905 | 0.1811 | 0.8993 | 0.8905 | 0.8910 | 0.0764 | 0.0210 |
69
+ | 0.001 | 9.0 | 4500 | 0.2714 | 0.8898 | 0.1807 | 0.8650 | 0.8898 | 0.8897 | 0.0783 | 0.0213 |
70
+ | 0.0009 | 10.0 | 5000 | 0.2759 | 0.893 | 0.1798 | 0.8614 | 0.893 | 0.8928 | 0.0750 | 0.0215 |
71
+
72
+
73
+ ### Framework versions
74
+
75
+ - Transformers 4.33.3
76
+ - Pytorch 2.2.0.dev20231002
77
+ - Datasets 2.7.1
78
+ - Tokenizers 0.13.3
config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "jordyvl/vit-base_rvl-cdip",
3
+ "architectures": [
4
+ "ViTForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "encoder_stride": 16,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.0,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "letter",
13
+ "1": "form",
14
+ "2": "email",
15
+ "3": "handwritten",
16
+ "4": "advertisement",
17
+ "5": "scientific_report",
18
+ "6": "scientific_publication",
19
+ "7": "specification",
20
+ "8": "file_folder",
21
+ "9": "news_article",
22
+ "10": "budget",
23
+ "11": "invoice",
24
+ "12": "presentation",
25
+ "13": "questionnaire",
26
+ "14": "resume",
27
+ "15": "memo"
28
+ },
29
+ "image_size": 224,
30
+ "initializer_range": 0.02,
31
+ "intermediate_size": 3072,
32
+ "label2id": {
33
+ "advertisement": 4,
34
+ "budget": 10,
35
+ "email": 2,
36
+ "file_folder": 8,
37
+ "form": 1,
38
+ "handwritten": 3,
39
+ "invoice": 11,
40
+ "letter": 0,
41
+ "memo": 15,
42
+ "news_article": 9,
43
+ "presentation": 12,
44
+ "questionnaire": 13,
45
+ "resume": 14,
46
+ "scientific_publication": 6,
47
+ "scientific_report": 5,
48
+ "specification": 7
49
+ },
50
+ "layer_norm_eps": 1e-12,
51
+ "model_type": "vit",
52
+ "num_attention_heads": 12,
53
+ "num_channels": 3,
54
+ "num_hidden_layers": 12,
55
+ "patch_size": 16,
56
+ "problem_type": "single_label_classification",
57
+ "qkv_bias": true,
58
+ "torch_dtype": "float32",
59
+ "transformers_version": "4.33.3"
60
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fea866a5ceacf37051663d8828bc2b38f54e65c0e689f6032d9d409365e3c886
3
+ size 343312234
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4992def92b48a094b2babbbbc5c2225b67c4dea89b30dbee94c238986a4df32e
3
+ size 4856