Saving best model to hub
Browse files- README.md +76 -0
- config.json +60 -0
- pytorch_model.bin +3 -0
- 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_aAURC_2
|
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_aAURC_2
|
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.3354
|
21 |
+
- Accuracy: 0.8788
|
22 |
+
- Brier Loss: 0.2243
|
23 |
+
- Nll: 1.0945
|
24 |
+
- F1 Micro: 0.8788
|
25 |
+
- F1 Macro: 0.8793
|
26 |
+
- Ece: 0.1094
|
27 |
+
- Aurc: 0.0303
|
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: 2
|
48 |
+
- eval_batch_size: 2
|
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 |
+
| 0.1996 | 1.0 | 8000 | 0.2395 | 0.8413 | 0.2593 | 1.3668 | 0.8413 | 0.8446 | 0.1016 | 0.0414 |
|
60 |
+
| 0.1357 | 2.0 | 16000 | 0.2446 | 0.8545 | 0.2435 | 1.2587 | 0.8545 | 0.8550 | 0.1066 | 0.0364 |
|
61 |
+
| 0.1083 | 3.0 | 24000 | 0.2702 | 0.8515 | 0.2584 | 1.2968 | 0.8515 | 0.8528 | 0.1126 | 0.0379 |
|
62 |
+
| 0.0578 | 4.0 | 32000 | 0.3397 | 0.8327 | 0.2931 | 1.3827 | 0.8327 | 0.8322 | 0.1391 | 0.0494 |
|
63 |
+
| 0.0294 | 5.0 | 40000 | 0.3407 | 0.8538 | 0.2662 | 1.3685 | 0.8537 | 0.8536 | 0.1280 | 0.0378 |
|
64 |
+
| 0.0099 | 6.0 | 48000 | 0.3489 | 0.8585 | 0.2602 | 1.2438 | 0.8585 | 0.8599 | 0.1254 | 0.0350 |
|
65 |
+
| 0.0058 | 7.0 | 56000 | 0.3433 | 0.868 | 0.2418 | 1.2328 | 0.868 | 0.8666 | 0.1172 | 0.0362 |
|
66 |
+
| 0.0026 | 8.0 | 64000 | 0.3414 | 0.87 | 0.2401 | 1.1910 | 0.87 | 0.8704 | 0.1162 | 0.0304 |
|
67 |
+
| 0.0026 | 9.0 | 72000 | 0.3460 | 0.8728 | 0.2357 | 1.1567 | 0.8728 | 0.8729 | 0.1143 | 0.0308 |
|
68 |
+
| 0.0024 | 10.0 | 80000 | 0.3354 | 0.8788 | 0.2243 | 1.0945 | 0.8788 | 0.8793 | 0.1094 | 0.0303 |
|
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:a0984069db8c2ba55595a12b153fd4dd7eddbea0a5431c1e17d23831f4b592e7
|
3 |
+
size 343312234
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6269448d16dc43dba1ed1d2c1519b9767c18cc605554126cd2a56ec313ae7cac
|
3 |
+
size 4920
|