bdpc commited on
Commit
8f16fe3
1 Parent(s): a75e86b

Saving best model to hub

Browse files
Files changed (4) hide show
  1. README.md +76 -0
  2. config.json +60 -0
  3. pytorch_model.bin +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-N1K_AURC_128
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-N1K_AURC_128
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.2754
21
+ - Accuracy: 0.8962
22
+ - Brier Loss: 0.1742
23
+ - Nll: 0.8794
24
+ - F1 Micro: 0.8962
25
+ - F1 Macro: 0.8963
26
+ - Ece: 0.0736
27
+ - Aurc: 0.0200
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: 128
48
+ - eval_batch_size: 128
49
+ - seed: 42
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: linear
52
+ - lr_scheduler_warmup_ratio: 0.1
53
+ - num_epochs: 10
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Brier Loss | Nll | F1 Micro | F1 Macro | Ece | Aurc |
58
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:----------:|:------:|:--------:|:--------:|:------:|:------:|
59
+ | No log | 1.0 | 125 | 0.1357 | 0.8898 | 0.1657 | 1.2064 | 0.8898 | 0.8907 | 0.0492 | 0.0181 |
60
+ | No log | 2.0 | 250 | 0.1615 | 0.898 | 0.1602 | 1.0955 | 0.898 | 0.8986 | 0.0473 | 0.0181 |
61
+ | No log | 3.0 | 375 | 0.1795 | 0.896 | 0.1630 | 1.0031 | 0.8960 | 0.8959 | 0.0599 | 0.0180 |
62
+ | 0.0132 | 4.0 | 500 | 0.2094 | 0.8978 | 0.1662 | 0.9561 | 0.8978 | 0.8977 | 0.0633 | 0.0187 |
63
+ | 0.0132 | 5.0 | 625 | 0.2290 | 0.898 | 0.1692 | 0.9249 | 0.898 | 0.8979 | 0.0665 | 0.0190 |
64
+ | 0.0132 | 6.0 | 750 | 0.2430 | 0.898 | 0.1714 | 0.9150 | 0.898 | 0.8981 | 0.0690 | 0.0194 |
65
+ | 0.0132 | 7.0 | 875 | 0.2567 | 0.898 | 0.1718 | 0.8888 | 0.898 | 0.8979 | 0.0702 | 0.0196 |
66
+ | 0.0022 | 8.0 | 1000 | 0.2740 | 0.8975 | 0.1734 | 0.8800 | 0.8975 | 0.8975 | 0.0718 | 0.0199 |
67
+ | 0.0022 | 9.0 | 1125 | 0.2715 | 0.896 | 0.1743 | 0.8824 | 0.8960 | 0.8960 | 0.0737 | 0.0199 |
68
+ | 0.0022 | 10.0 | 1250 | 0.2754 | 0.8962 | 0.1742 | 0.8794 | 0.8962 | 0.8963 | 0.0736 | 0.0200 |
69
+
70
+
71
+ ### Framework versions
72
+
73
+ - Transformers 4.33.3
74
+ - Pytorch 2.2.0.dev20231002
75
+ - Datasets 2.7.1
76
+ - 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:aec3d3970f8b2937edbb6246b45f5a9a863ff3124f11593db78c37a0440fc830
3
+ size 343312234
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1e66c0a39c02ff946ddfd0c8bed39307d034046037dbf1ac8b80bf7de79ca75
3
+ size 4920