TomasFAV commited on
Commit
ed3631f
·
verified ·
1 Parent(s): 39443c5

Training in progress, epoch 1

Browse files
README.md CHANGED
@@ -1,3 +1,70 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - f1
7
+ model-index:
8
+ - name: Pix2StructCzechInvoiceV2
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # Pix2StructCzechInvoiceV2
16
+
17
+ This model was trained from scratch on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 0.2521
20
+ - F1: 0.7311
21
+
22
+ ## Model description
23
+
24
+ More information needed
25
+
26
+ ## Intended uses & limitations
27
+
28
+ More information needed
29
+
30
+ ## Training and evaluation data
31
+
32
+ More information needed
33
+
34
+ ## Training procedure
35
+
36
+ ### Training hyperparameters
37
+
38
+ The following hyperparameters were used during training:
39
+ - learning_rate: 0.0001
40
+ - train_batch_size: 8
41
+ - eval_batch_size: 1
42
+ - seed: 42
43
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
44
+ - lr_scheduler_type: cosine_with_restarts
45
+ - lr_scheduler_warmup_steps: 0.1
46
+ - num_epochs: 10
47
+ - mixed_precision_training: Native AMP
48
+
49
+ ### Training results
50
+
51
+ | Training Loss | Epoch | Step | Validation Loss | F1 |
52
+ |:-------------:|:-----:|:----:|:---------------:|:------:|
53
+ | 0.3432 | 1.0 | 115 | 0.2771 | 0.6644 |
54
+ | 0.1942 | 2.0 | 230 | 0.2611 | 0.6745 |
55
+ | 0.1934 | 3.0 | 345 | 0.2521 | 0.7311 |
56
+ | 0.1325 | 4.0 | 460 | 0.2665 | 0.7133 |
57
+ | 0.1131 | 5.0 | 575 | 0.2686 | 0.6762 |
58
+ | 0.1125 | 6.0 | 690 | 0.2601 | 0.7277 |
59
+ | 0.1011 | 7.0 | 805 | 0.2962 | 0.7118 |
60
+ | 0.1229 | 8.0 | 920 | 0.2893 | 0.7095 |
61
+ | 0.0861 | 9.0 | 1035 | 0.3019 | 0.6931 |
62
+ | 0.0860 | 10.0 | 1150 | 0.3167 | 0.7186 |
63
+
64
+
65
+ ### Framework versions
66
+
67
+ - Transformers 5.0.0
68
+ - Pytorch 2.10.0+cu128
69
+ - Datasets 4.0.0
70
+ - Tokenizers 0.22.2
config.json ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Pix2StructForConditionalGeneration"
4
+ ],
5
+ "decoder_start_token_id": 0,
6
+ "dtype": "float32",
7
+ "eos_token_id": 1,
8
+ "initializer_factor": 1.0,
9
+ "initializer_range": 0.02,
10
+ "is_encoder_decoder": true,
11
+ "is_vqa": true,
12
+ "model_type": "pix2struct",
13
+ "pad_token_id": 0,
14
+ "text_config": {
15
+ "add_cross_attention": false,
16
+ "bos_token_id": null,
17
+ "cross_attention_hidden_size": null,
18
+ "d_ff": 2048,
19
+ "d_kv": 64,
20
+ "decoder_start_token_id": 0,
21
+ "dense_act_fn": "gelu_new",
22
+ "dropout_rate": 0.1,
23
+ "dtype": "float32",
24
+ "encoder_hidden_size": 768,
25
+ "eos_token_id": 1,
26
+ "finetuning_task": null,
27
+ "hidden_size": 768,
28
+ "initializer_factor": 1.0,
29
+ "initializer_range": 0.02,
30
+ "is_decoder": true,
31
+ "is_encoder_decoder": true,
32
+ "layer_norm_epsilon": 1e-06,
33
+ "model_type": "pix2struct_text_model",
34
+ "num_heads": 12,
35
+ "num_layers": 12,
36
+ "pad_token_id": 0,
37
+ "prefix": null,
38
+ "pruned_heads": {},
39
+ "relative_attention_max_distance": 128,
40
+ "relative_attention_num_buckets": 32,
41
+ "sep_token_id": null,
42
+ "task_specific_params": null,
43
+ "tf_legacy_loss": false,
44
+ "tie_encoder_decoder": false,
45
+ "tie_word_embeddings": false,
46
+ "tokenizer_class": null,
47
+ "torchscript": false,
48
+ "use_bfloat16": false,
49
+ "use_cache": false,
50
+ "vocab_size": 50432
51
+ },
52
+ "tie_word_embeddings": false,
53
+ "transformers_version": "5.0.0",
54
+ "use_cache": false,
55
+ "vision_config": {
56
+ "add_cross_attention": false,
57
+ "attention_dropout": 0.0,
58
+ "bos_token_id": null,
59
+ "cross_attention_hidden_size": null,
60
+ "d_ff": 2048,
61
+ "d_kv": 64,
62
+ "decoder_start_token_id": null,
63
+ "dense_act_fn": "gelu_new",
64
+ "dropout_rate": 0.0,
65
+ "dtype": "float32",
66
+ "eos_token_id": null,
67
+ "finetuning_task": null,
68
+ "hidden_size": 768,
69
+ "initializer_factor": 1.0,
70
+ "initializer_range": 0.02,
71
+ "is_decoder": false,
72
+ "layer_norm_bias": false,
73
+ "layer_norm_eps": 1e-06,
74
+ "model_type": "pix2struct_vision_model",
75
+ "num_attention_heads": 12,
76
+ "num_channels": 3,
77
+ "num_hidden_layers": 12,
78
+ "pad_token_id": null,
79
+ "patch_embed_hidden_size": 768,
80
+ "patch_size": 16,
81
+ "prefix": null,
82
+ "projection_dim": 768,
83
+ "pruned_heads": {},
84
+ "relative_attention_max_distance": 128,
85
+ "relative_attention_num_buckets": 32,
86
+ "sep_token_id": null,
87
+ "seq_len": 4096,
88
+ "task_specific_params": null,
89
+ "tf_legacy_loss": false,
90
+ "tie_encoder_decoder": false,
91
+ "tie_word_embeddings": true,
92
+ "tokenizer_class": null,
93
+ "torchscript": false,
94
+ "use_bfloat16": false
95
+ }
96
+ }
generation_config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": false,
3
+ "assistant_confidence_threshold": 0.4,
4
+ "assistant_lookbehind": 10,
5
+ "decoder_start_token_id": 0,
6
+ "diversity_penalty": 0.0,
7
+ "do_sample": false,
8
+ "early_stopping": false,
9
+ "encoder_no_repeat_ngram_size": 0,
10
+ "encoder_repetition_penalty": 1.0,
11
+ "eos_token_id": 1,
12
+ "epsilon_cutoff": 0.0,
13
+ "eta_cutoff": 0.0,
14
+ "is_vqa": true,
15
+ "length_penalty": 1.0,
16
+ "max_length": 20,
17
+ "min_length": 0,
18
+ "no_repeat_ngram_size": 0,
19
+ "num_assistant_tokens": 20,
20
+ "num_assistant_tokens_schedule": "constant",
21
+ "num_beam_groups": 1,
22
+ "num_beams": 1,
23
+ "num_return_sequences": 1,
24
+ "output_attentions": false,
25
+ "output_hidden_states": false,
26
+ "output_scores": false,
27
+ "pad_token_id": 0,
28
+ "remove_invalid_values": false,
29
+ "repetition_penalty": 1.0,
30
+ "return_dict_in_generate": false,
31
+ "target_lookbehind": 10,
32
+ "temperature": 1.0,
33
+ "top_k": 50,
34
+ "top_p": 1.0,
35
+ "transformers_version": "5.0.0",
36
+ "typical_p": 1.0,
37
+ "use_cache": false
38
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2025bb54ee03a12e5d127646e7208f7c1538ce753393fcce2aa89280f02acc35
3
+ size 1130333048
runs/Mar14_23-53-02_77b291cf41b2/events.out.tfevents.1773532382.77b291cf41b2.903.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5deb0ca1f22b1c6f4aa4dcf486483e33fde84d1348f5ec24d1589b68d81d1fd
3
+ size 25741
runs/Mar14_23-53-02_77b291cf41b2/events.out.tfevents.1773534537.77b291cf41b2.903.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37aa2724b2be2089dd9468656452b1fabb68b7da7c33e70ff22e67cf08b5a5d4
3
+ size 405
runs/Mar15_00-30-03_77b291cf41b2/events.out.tfevents.1773534603.77b291cf41b2.11106.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72f24c1fe690d8f874459e307586323982609d2cf78a9f6d524f2aa47cfbdc8f
3
+ size 34181
runs/Mar15_00-30-03_77b291cf41b2/events.out.tfevents.1773537770.77b291cf41b2.11106.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bfc2a47ebb408e485129e1897c0b616fc2554252dc4a9f0ac79686856c21056f
3
+ size 405
runs/Mar15_01-23-47_77b291cf41b2/events.out.tfevents.1773537827.77b291cf41b2.25725.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3795eccc3966e84995b8eb0e89e07dd8f646f1c4b541d1e5df8b2eb1a1fd915
3
+ size 7171
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aab4f582fbe3d6e0c2db48c1dd72d916112b81c09827e8ea1b9f7dce7b25eb1b
3
+ size 5393