bustamiyusoef/Nougat_Base_Edv_En_De_01
Browse files- README.md +78 -0
- config.json +193 -0
- generation_config.json +8 -0
- model.safetensors +3 -0
- preprocessor_config.json +27 -0
- training_args.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: cc-by-nc-4.0
|
| 4 |
+
base_model: facebook/nougat-base
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
model-index:
|
| 8 |
+
- name: _Nougat_Base_Edv_En_De_01
|
| 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 |
+
# _Nougat_Base_Edv_En_De_01
|
| 16 |
+
|
| 17 |
+
This model is a fine-tuned version of [facebook/nougat-base](https://huggingface.co/facebook/nougat-base) on an unknown dataset.
|
| 18 |
+
It achieves the following results on the evaluation set:
|
| 19 |
+
- Loss: 1700.0442
|
| 20 |
+
|
| 21 |
+
## Model description
|
| 22 |
+
|
| 23 |
+
More information needed
|
| 24 |
+
|
| 25 |
+
## Intended uses & limitations
|
| 26 |
+
|
| 27 |
+
More information needed
|
| 28 |
+
|
| 29 |
+
## Training and evaluation data
|
| 30 |
+
|
| 31 |
+
More information needed
|
| 32 |
+
|
| 33 |
+
## Training procedure
|
| 34 |
+
|
| 35 |
+
### Training hyperparameters
|
| 36 |
+
|
| 37 |
+
The following hyperparameters were used during training:
|
| 38 |
+
- learning_rate: 0.0001
|
| 39 |
+
- train_batch_size: 8
|
| 40 |
+
- eval_batch_size: 8
|
| 41 |
+
- seed: 42
|
| 42 |
+
- gradient_accumulation_steps: 10
|
| 43 |
+
- total_train_batch_size: 80
|
| 44 |
+
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 45 |
+
- lr_scheduler_type: linear
|
| 46 |
+
- num_epochs: 20
|
| 47 |
+
|
| 48 |
+
### Training results
|
| 49 |
+
|
| 50 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
| 51 |
+
|:-------------:|:-------:|:----:|:---------------:|
|
| 52 |
+
| No log | 1.0 | 42 | 1.9061 |
|
| 53 |
+
| 22.7823 | 2.0 | 84 | 7.8791 |
|
| 54 |
+
| 68.1139 | 3.0 | 126 | 88.5974 |
|
| 55 |
+
| 829.2286 | 4.0 | 168 | 220.7463 |
|
| 56 |
+
| 2312.5455 | 5.0 | 210 | 283.3206 |
|
| 57 |
+
| 3190.685 | 6.0 | 252 | 408.0313 |
|
| 58 |
+
| 3190.685 | 7.0 | 294 | 772.9317 |
|
| 59 |
+
| 5969.3912 | 8.0 | 336 | 1039.8457 |
|
| 60 |
+
| 9675.3725 | 9.0 | 378 | 1248.5635 |
|
| 61 |
+
| 12223.905 | 10.0 | 420 | 1398.6156 |
|
| 62 |
+
| 14010.6213 | 11.0 | 462 | 1496.1117 |
|
| 63 |
+
| 15064.8962 | 12.0 | 504 | 1564.3519 |
|
| 64 |
+
| 15064.8962 | 13.0 | 546 | 1613.9442 |
|
| 65 |
+
| 15790.6938 | 14.0 | 588 | 1647.9702 |
|
| 66 |
+
| 16285.0438 | 15.0 | 630 | 1669.3680 |
|
| 67 |
+
| 16505.9075 | 16.0 | 672 | 1684.0092 |
|
| 68 |
+
| 16716.44 | 17.0 | 714 | 1693.2450 |
|
| 69 |
+
| 16915.6488 | 18.0 | 756 | 1698.5161 |
|
| 70 |
+
| 16915.6488 | 19.0 | 798 | 1699.9650 |
|
| 71 |
+
| 16804.3288 | 19.5251 | 820 | 1700.0442 |
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
### Framework versions
|
| 75 |
+
|
| 76 |
+
- Transformers 4.47.1
|
| 77 |
+
- Pytorch 2.5.1+cu121
|
| 78 |
+
- Tokenizers 0.21.0
|
config.json
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "facebook/nougat-base",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"VisionEncoderDecoderModel"
|
| 5 |
+
],
|
| 6 |
+
"decoder": {
|
| 7 |
+
"_attn_implementation_autoset": false,
|
| 8 |
+
"_name_or_path": "",
|
| 9 |
+
"activation_dropout": 0.0,
|
| 10 |
+
"activation_function": "gelu",
|
| 11 |
+
"add_cross_attention": true,
|
| 12 |
+
"add_final_layer_norm": true,
|
| 13 |
+
"architectures": null,
|
| 14 |
+
"attention_dropout": 0.0,
|
| 15 |
+
"bad_words_ids": null,
|
| 16 |
+
"begin_suppress_tokens": null,
|
| 17 |
+
"bos_token_id": 0,
|
| 18 |
+
"chunk_size_feed_forward": 0,
|
| 19 |
+
"classifier_dropout": 0.0,
|
| 20 |
+
"cross_attention_hidden_size": null,
|
| 21 |
+
"d_model": 1024,
|
| 22 |
+
"decoder_attention_heads": 16,
|
| 23 |
+
"decoder_ffn_dim": 4096,
|
| 24 |
+
"decoder_layerdrop": 0.0,
|
| 25 |
+
"decoder_layers": 10,
|
| 26 |
+
"decoder_start_token_id": null,
|
| 27 |
+
"diversity_penalty": 0.0,
|
| 28 |
+
"do_sample": false,
|
| 29 |
+
"dropout": 0.1,
|
| 30 |
+
"early_stopping": false,
|
| 31 |
+
"encoder_attention_heads": 16,
|
| 32 |
+
"encoder_ffn_dim": 4096,
|
| 33 |
+
"encoder_layerdrop": 0.0,
|
| 34 |
+
"encoder_layers": 12,
|
| 35 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 36 |
+
"eos_token_id": 2,
|
| 37 |
+
"exponential_decay_length_penalty": null,
|
| 38 |
+
"finetuning_task": null,
|
| 39 |
+
"forced_bos_token_id": null,
|
| 40 |
+
"forced_eos_token_id": 2,
|
| 41 |
+
"id2label": {
|
| 42 |
+
"0": "LABEL_0",
|
| 43 |
+
"1": "LABEL_1"
|
| 44 |
+
},
|
| 45 |
+
"init_std": 0.02,
|
| 46 |
+
"is_decoder": true,
|
| 47 |
+
"is_encoder_decoder": false,
|
| 48 |
+
"label2id": {
|
| 49 |
+
"LABEL_0": 0,
|
| 50 |
+
"LABEL_1": 1
|
| 51 |
+
},
|
| 52 |
+
"length_penalty": 1.0,
|
| 53 |
+
"max_length": 20,
|
| 54 |
+
"max_position_embeddings": 4096,
|
| 55 |
+
"min_length": 0,
|
| 56 |
+
"model_type": "mbart",
|
| 57 |
+
"no_repeat_ngram_size": 0,
|
| 58 |
+
"num_beam_groups": 1,
|
| 59 |
+
"num_beams": 1,
|
| 60 |
+
"num_hidden_layers": 12,
|
| 61 |
+
"num_return_sequences": 1,
|
| 62 |
+
"output_attentions": false,
|
| 63 |
+
"output_hidden_states": false,
|
| 64 |
+
"output_scores": false,
|
| 65 |
+
"pad_token_id": 1,
|
| 66 |
+
"prefix": null,
|
| 67 |
+
"problem_type": null,
|
| 68 |
+
"pruned_heads": {},
|
| 69 |
+
"remove_invalid_values": false,
|
| 70 |
+
"repetition_penalty": 1.0,
|
| 71 |
+
"return_dict": true,
|
| 72 |
+
"return_dict_in_generate": false,
|
| 73 |
+
"scale_embedding": true,
|
| 74 |
+
"sep_token_id": null,
|
| 75 |
+
"suppress_tokens": null,
|
| 76 |
+
"task_specific_params": null,
|
| 77 |
+
"temperature": 1.0,
|
| 78 |
+
"tf_legacy_loss": false,
|
| 79 |
+
"tie_encoder_decoder": false,
|
| 80 |
+
"tie_word_embeddings": false,
|
| 81 |
+
"tokenizer_class": null,
|
| 82 |
+
"top_k": 50,
|
| 83 |
+
"top_p": 1.0,
|
| 84 |
+
"torch_dtype": null,
|
| 85 |
+
"torchscript": false,
|
| 86 |
+
"typical_p": 1.0,
|
| 87 |
+
"use_bfloat16": false,
|
| 88 |
+
"use_cache": true,
|
| 89 |
+
"vocab_size": 50000
|
| 90 |
+
},
|
| 91 |
+
"decoder_start_token_id": 0,
|
| 92 |
+
"encoder": {
|
| 93 |
+
"_attn_implementation_autoset": false,
|
| 94 |
+
"_name_or_path": "",
|
| 95 |
+
"add_cross_attention": false,
|
| 96 |
+
"architectures": null,
|
| 97 |
+
"attention_probs_dropout_prob": 0.0,
|
| 98 |
+
"bad_words_ids": null,
|
| 99 |
+
"begin_suppress_tokens": null,
|
| 100 |
+
"bos_token_id": null,
|
| 101 |
+
"chunk_size_feed_forward": 0,
|
| 102 |
+
"cross_attention_hidden_size": null,
|
| 103 |
+
"decoder_start_token_id": null,
|
| 104 |
+
"depths": [
|
| 105 |
+
2,
|
| 106 |
+
2,
|
| 107 |
+
14,
|
| 108 |
+
2
|
| 109 |
+
],
|
| 110 |
+
"diversity_penalty": 0.0,
|
| 111 |
+
"do_sample": false,
|
| 112 |
+
"drop_path_rate": 0.1,
|
| 113 |
+
"early_stopping": false,
|
| 114 |
+
"embed_dim": 128,
|
| 115 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 116 |
+
"eos_token_id": null,
|
| 117 |
+
"exponential_decay_length_penalty": null,
|
| 118 |
+
"finetuning_task": null,
|
| 119 |
+
"forced_bos_token_id": null,
|
| 120 |
+
"forced_eos_token_id": null,
|
| 121 |
+
"hidden_act": "gelu",
|
| 122 |
+
"hidden_dropout_prob": 0.0,
|
| 123 |
+
"hidden_size": 1024,
|
| 124 |
+
"id2label": {
|
| 125 |
+
"0": "LABEL_0",
|
| 126 |
+
"1": "LABEL_1"
|
| 127 |
+
},
|
| 128 |
+
"image_size": [
|
| 129 |
+
896,
|
| 130 |
+
672
|
| 131 |
+
],
|
| 132 |
+
"initializer_range": 0.02,
|
| 133 |
+
"is_decoder": false,
|
| 134 |
+
"is_encoder_decoder": false,
|
| 135 |
+
"label2id": {
|
| 136 |
+
"LABEL_0": 0,
|
| 137 |
+
"LABEL_1": 1
|
| 138 |
+
},
|
| 139 |
+
"layer_norm_eps": 1e-05,
|
| 140 |
+
"length_penalty": 1.0,
|
| 141 |
+
"max_length": 20,
|
| 142 |
+
"min_length": 0,
|
| 143 |
+
"mlp_ratio": 4.0,
|
| 144 |
+
"model_type": "donut-swin",
|
| 145 |
+
"no_repeat_ngram_size": 0,
|
| 146 |
+
"num_beam_groups": 1,
|
| 147 |
+
"num_beams": 1,
|
| 148 |
+
"num_channels": 3,
|
| 149 |
+
"num_heads": [
|
| 150 |
+
4,
|
| 151 |
+
8,
|
| 152 |
+
16,
|
| 153 |
+
32
|
| 154 |
+
],
|
| 155 |
+
"num_layers": 4,
|
| 156 |
+
"num_return_sequences": 1,
|
| 157 |
+
"output_attentions": false,
|
| 158 |
+
"output_hidden_states": false,
|
| 159 |
+
"output_scores": false,
|
| 160 |
+
"pad_token_id": null,
|
| 161 |
+
"patch_size": 4,
|
| 162 |
+
"prefix": null,
|
| 163 |
+
"problem_type": null,
|
| 164 |
+
"pruned_heads": {},
|
| 165 |
+
"qkv_bias": true,
|
| 166 |
+
"remove_invalid_values": false,
|
| 167 |
+
"repetition_penalty": 1.0,
|
| 168 |
+
"return_dict": true,
|
| 169 |
+
"return_dict_in_generate": false,
|
| 170 |
+
"sep_token_id": null,
|
| 171 |
+
"suppress_tokens": null,
|
| 172 |
+
"task_specific_params": null,
|
| 173 |
+
"temperature": 1.0,
|
| 174 |
+
"tf_legacy_loss": false,
|
| 175 |
+
"tie_encoder_decoder": false,
|
| 176 |
+
"tie_word_embeddings": true,
|
| 177 |
+
"tokenizer_class": null,
|
| 178 |
+
"top_k": 50,
|
| 179 |
+
"top_p": 1.0,
|
| 180 |
+
"torch_dtype": null,
|
| 181 |
+
"torchscript": false,
|
| 182 |
+
"typical_p": 1.0,
|
| 183 |
+
"use_absolute_embeddings": false,
|
| 184 |
+
"use_bfloat16": false,
|
| 185 |
+
"window_size": 7
|
| 186 |
+
},
|
| 187 |
+
"is_encoder_decoder": true,
|
| 188 |
+
"model_type": "vision-encoder-decoder",
|
| 189 |
+
"pad_token_id": 1,
|
| 190 |
+
"tie_word_embeddings": false,
|
| 191 |
+
"torch_dtype": "bfloat16",
|
| 192 |
+
"transformers_version": "4.47.1"
|
| 193 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 0,
|
| 4 |
+
"eos_token_id": 2,
|
| 5 |
+
"forced_eos_token_id": 2,
|
| 6 |
+
"pad_token_id": 1,
|
| 7 |
+
"transformers_version": "4.47.1"
|
| 8 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be9646d8e32a3ea02697420817baf42bc9eaa7a53fc6ce1b39c04efd89d8b2a7
|
| 3 |
+
size 697843112
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_align_long_axis": false,
|
| 3 |
+
"do_crop_margin": true,
|
| 4 |
+
"do_normalize": true,
|
| 5 |
+
"do_pad": true,
|
| 6 |
+
"do_rescale": true,
|
| 7 |
+
"do_resize": true,
|
| 8 |
+
"do_thumbnail": true,
|
| 9 |
+
"image_mean": [
|
| 10 |
+
0.485,
|
| 11 |
+
0.456,
|
| 12 |
+
0.406
|
| 13 |
+
],
|
| 14 |
+
"image_processor_type": "NougatImageProcessor",
|
| 15 |
+
"image_std": [
|
| 16 |
+
0.229,
|
| 17 |
+
0.224,
|
| 18 |
+
0.225
|
| 19 |
+
],
|
| 20 |
+
"processor_class": "NougatProcessor",
|
| 21 |
+
"resample": 2,
|
| 22 |
+
"rescale_factor": 0.00392156862745098,
|
| 23 |
+
"size": {
|
| 24 |
+
"height": 896,
|
| 25 |
+
"width": 672
|
| 26 |
+
}
|
| 27 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:61ac04637e054ad1dec504d339ed88ae20192aac2f1ab6ab4330409ae5470c8c
|
| 3 |
+
size 5496
|