Update tiny models for PPFormulaNetForConditionalGeneration
Browse files- config.json +65 -0
- generation_config.json +12 -0
- model.safetensors +3 -0
- preprocessor_config.json +30 -0
- tokenizer.json +0 -0
- tokenizer_config.json +22 -0
config.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"PPFormulaNetForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"dtype": "float32",
|
| 6 |
+
"is_encoder_decoder": true,
|
| 7 |
+
"model_type": "pp_formulanet",
|
| 8 |
+
"num_hidden_layers": 1,
|
| 9 |
+
"text_config": {
|
| 10 |
+
"activation_dropout": 0.0,
|
| 11 |
+
"activation_function": "gelu",
|
| 12 |
+
"attention_dropout": 0.0,
|
| 13 |
+
"bos_token_id": 0,
|
| 14 |
+
"d_model": 48,
|
| 15 |
+
"decoder_attention_heads": 16,
|
| 16 |
+
"decoder_ffn_dim": 16,
|
| 17 |
+
"decoder_layerdrop": 0.0,
|
| 18 |
+
"decoder_layers": 1,
|
| 19 |
+
"decoder_start_token_id": 2,
|
| 20 |
+
"dropout": 0.1,
|
| 21 |
+
"encoder_attention_heads": 16,
|
| 22 |
+
"encoder_layers": 12,
|
| 23 |
+
"eos_token_id": 2,
|
| 24 |
+
"forced_eos_token_id": 2,
|
| 25 |
+
"init_std": 0.02,
|
| 26 |
+
"max_position_embeddings": 2560,
|
| 27 |
+
"model_type": "pp_formulanet",
|
| 28 |
+
"pad_token_id": 1,
|
| 29 |
+
"scale_embedding": true,
|
| 30 |
+
"tie_word_embeddings": false,
|
| 31 |
+
"use_cache": true,
|
| 32 |
+
"vocab_size": 50000
|
| 33 |
+
},
|
| 34 |
+
"transformers_version": "5.16.0.dev0",
|
| 35 |
+
"vision_config": {
|
| 36 |
+
"attention_dropout": 0.0,
|
| 37 |
+
"decoder_hidden_size": 48,
|
| 38 |
+
"global_attn_indexes": [
|
| 39 |
+
1,
|
| 40 |
+
1,
|
| 41 |
+
1,
|
| 42 |
+
1
|
| 43 |
+
],
|
| 44 |
+
"hidden_act": "gelu",
|
| 45 |
+
"hidden_size": 48,
|
| 46 |
+
"image_size": 768,
|
| 47 |
+
"initializer_range": 1e-10,
|
| 48 |
+
"layer_norm_eps": 1e-06,
|
| 49 |
+
"mlp_dim": 1,
|
| 50 |
+
"model_type": "",
|
| 51 |
+
"num_attention_heads": 2,
|
| 52 |
+
"num_channels": 3,
|
| 53 |
+
"num_hidden_layers": 1,
|
| 54 |
+
"output_channels": 16,
|
| 55 |
+
"patch_size": 16,
|
| 56 |
+
"post_conv_in_channels": 16,
|
| 57 |
+
"post_conv_mid_channels": 16,
|
| 58 |
+
"post_conv_out_channels": 16,
|
| 59 |
+
"qkv_bias": true,
|
| 60 |
+
"use_abs_pos": true,
|
| 61 |
+
"use_rel_pos": true,
|
| 62 |
+
"window_size": 14,
|
| 63 |
+
"windows_size": 14
|
| 64 |
+
}
|
| 65 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 0,
|
| 4 |
+
"decoder_start_token_id": 2,
|
| 5 |
+
"eos_token_id": 2,
|
| 6 |
+
"forced_eos_token_id": 2,
|
| 7 |
+
"output_attentions": false,
|
| 8 |
+
"output_hidden_states": false,
|
| 9 |
+
"pad_token_id": 1,
|
| 10 |
+
"transformers_version": "5.16.0.dev0",
|
| 11 |
+
"use_cache": true
|
| 12 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e5524a1262cc2264593d3f86ac1172b7503c7f60d22d88ffe19709e30db84a19
|
| 3 |
+
size 20451836
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"crop_size": {
|
| 3 |
+
"height": 768,
|
| 4 |
+
"width": 768
|
| 5 |
+
},
|
| 6 |
+
"do_align_long_axis": false,
|
| 7 |
+
"do_crop_margin": true,
|
| 8 |
+
"do_normalize": true,
|
| 9 |
+
"do_pad": true,
|
| 10 |
+
"do_rescale": true,
|
| 11 |
+
"do_resize": true,
|
| 12 |
+
"do_thumbnail": true,
|
| 13 |
+
"image_mean": [
|
| 14 |
+
0.7931,
|
| 15 |
+
0.7931,
|
| 16 |
+
0.7931
|
| 17 |
+
],
|
| 18 |
+
"image_processor_type": "PPFormulaNetImageProcessor",
|
| 19 |
+
"image_std": [
|
| 20 |
+
0.1738,
|
| 21 |
+
0.1738,
|
| 22 |
+
0.1738
|
| 23 |
+
],
|
| 24 |
+
"resample": 2,
|
| 25 |
+
"rescale_factor": 0.00392156862745098,
|
| 26 |
+
"size": {
|
| 27 |
+
"height": 768,
|
| 28 |
+
"width": 768
|
| 29 |
+
}
|
| 30 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<s>",
|
| 4 |
+
"clean_up_tokenization_spaces": false,
|
| 5 |
+
"eos_token": "</s>",
|
| 6 |
+
"errors": "replace",
|
| 7 |
+
"extra_special_tokens": [],
|
| 8 |
+
"is_local": true,
|
| 9 |
+
"local_files_only": false,
|
| 10 |
+
"max_length": 4096,
|
| 11 |
+
"model_max_length": 768,
|
| 12 |
+
"pad_to_multiple_of": null,
|
| 13 |
+
"pad_token": "<pad>",
|
| 14 |
+
"pad_token_type_id": 0,
|
| 15 |
+
"padding_side": "right",
|
| 16 |
+
"processor_class": "NougatProcessor",
|
| 17 |
+
"stride": 0,
|
| 18 |
+
"tokenizer_class": "NougatTokenizer",
|
| 19 |
+
"truncation_side": "right",
|
| 20 |
+
"truncation_strategy": "longest_first",
|
| 21 |
+
"unk_token": "<unk>"
|
| 22 |
+
}
|