Training in progress, epoch 1
Browse files- README.md +72 -3
- config.json +96 -0
- generation_config.json +38 -0
- model.safetensors +3 -0
- runs/Mar14_23-53-02_77b291cf41b2/events.out.tfevents.1773532382.77b291cf41b2.903.0 +3 -0
- runs/Mar14_23-53-02_77b291cf41b2/events.out.tfevents.1773534537.77b291cf41b2.903.1 +3 -0
- runs/Mar15_00-30-03_77b291cf41b2/events.out.tfevents.1773534603.77b291cf41b2.11106.0 +3 -0
- training_args.bin +3 -0
README.md
CHANGED
|
@@ -1,3 +1,72 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: TomasFAV/Pix2StructCzechInvoice
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
metrics:
|
| 8 |
+
- f1
|
| 9 |
+
model-index:
|
| 10 |
+
- name: Pix2StructCzechInvoiceV1
|
| 11 |
+
results: []
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 15 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 16 |
+
|
| 17 |
+
# Pix2StructCzechInvoiceV1
|
| 18 |
+
|
| 19 |
+
This model is a fine-tuned version of [TomasFAV/Pix2StructCzechInvoice](https://huggingface.co/TomasFAV/Pix2StructCzechInvoice) on an unknown dataset.
|
| 20 |
+
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 0.4679
|
| 22 |
+
- F1: 0.6432
|
| 23 |
+
|
| 24 |
+
## Model description
|
| 25 |
+
|
| 26 |
+
More information needed
|
| 27 |
+
|
| 28 |
+
## Intended uses & limitations
|
| 29 |
+
|
| 30 |
+
More information needed
|
| 31 |
+
|
| 32 |
+
## Training and evaluation data
|
| 33 |
+
|
| 34 |
+
More information needed
|
| 35 |
+
|
| 36 |
+
## Training procedure
|
| 37 |
+
|
| 38 |
+
### Training hyperparameters
|
| 39 |
+
|
| 40 |
+
The following hyperparameters were used during training:
|
| 41 |
+
- learning_rate: 0.0001
|
| 42 |
+
- train_batch_size: 8
|
| 43 |
+
- eval_batch_size: 1
|
| 44 |
+
- seed: 42
|
| 45 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 46 |
+
- lr_scheduler_type: cosine_with_restarts
|
| 47 |
+
- lr_scheduler_warmup_steps: 0.1
|
| 48 |
+
- num_epochs: 10
|
| 49 |
+
- mixed_precision_training: Native AMP
|
| 50 |
+
|
| 51 |
+
### Training results
|
| 52 |
+
|
| 53 |
+
| Training Loss | Epoch | Step | Validation Loss | F1 |
|
| 54 |
+
|:-------------:|:-----:|:----:|:---------------:|:------:|
|
| 55 |
+
| 0.1978 | 1.0 | 75 | 0.3757 | 0.5804 |
|
| 56 |
+
| 0.1031 | 2.0 | 150 | 0.3578 | 0.6399 |
|
| 57 |
+
| 0.0725 | 3.0 | 225 | 0.3504 | 0.6318 |
|
| 58 |
+
| 0.0512 | 4.0 | 300 | 0.3929 | 0.6396 |
|
| 59 |
+
| 0.0500 | 5.0 | 375 | 0.4072 | 0.6394 |
|
| 60 |
+
| 0.0462 | 6.0 | 450 | 0.4655 | 0.4377 |
|
| 61 |
+
| 0.0502 | 7.0 | 525 | 0.6320 | 0.3384 |
|
| 62 |
+
| 0.0528 | 8.0 | 600 | 0.4835 | 0.5018 |
|
| 63 |
+
| 0.0393 | 9.0 | 675 | 0.4679 | 0.6432 |
|
| 64 |
+
| 0.0392 | 10.0 | 750 | 0.5330 | 0.4931 |
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
### Framework versions
|
| 68 |
+
|
| 69 |
+
- Transformers 5.0.0
|
| 70 |
+
- Pytorch 2.10.0+cu128
|
| 71 |
+
- Datasets 4.0.0
|
| 72 |
+
- 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:b7c397026a886c650591eebd8b14f3c8176e86e6151245883696a8a8772bfdbb
|
| 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:e202322a62fefd2d5afdfa69bb2fc38549ed2345ece3cbd957ef65ae286c4bad
|
| 3 |
+
size 9034
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bd6e133d9d7cbd69f0474fc0ae2c121e589f9dc8bbee7515ed5e526c180572a7
|
| 3 |
+
size 5393
|