Upload folder using huggingface_hub
Browse files- README.md +26 -0
- config.json +197 -0
- generation_config.json +9 -0
- onnx/decoder_model.onnx +3 -0
- onnx/decoder_model_bnb4.onnx +3 -0
- onnx/decoder_model_fp16.onnx +3 -0
- onnx/decoder_model_int8.onnx +3 -0
- onnx/decoder_model_q4.onnx +3 -0
- onnx/decoder_model_q4f16.onnx +3 -0
- onnx/decoder_model_quantized.onnx +3 -0
- onnx/decoder_model_uint8.onnx +3 -0
- onnx/encoder_model.onnx +3 -0
- onnx/encoder_model_bnb4.onnx +3 -0
- onnx/encoder_model_fp16.onnx +3 -0
- onnx/encoder_model_int8.onnx +3 -0
- onnx/encoder_model_q4.onnx +3 -0
- onnx/encoder_model_q4f16.onnx +3 -0
- onnx/encoder_model_quantized.onnx +3 -0
- onnx/encoder_model_uint8.onnx +3 -0
- preprocessor_config.json +35 -0
- quantize_config.json +18 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer_config.json +206 -0
README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-sa-4.0
|
| 3 |
+
library_name: transformers.js
|
| 4 |
+
base_model:
|
| 5 |
+
- vikp/texify
|
| 6 |
+
pipeline_tag: image-to-text
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
# texify (ONNX)
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
This is an ONNX version of [vikp/texify](https://huggingface.co/vikp/texify). It was automatically converted and uploaded using [this Hugging Face Space](https://huggingface.co/spaces/onnx-community/convert-to-onnx).
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
## Usage with Transformers.js
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
See the pipeline documentation for `image-to-text`: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.ImageToTextPipeline
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
OCR equation images and text to latex. See [texify](https://github.com/VikParuchuri/texify).
|
config.json
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_attn_implementation_autoset": true,
|
| 3 |
+
"_name_or_path": "vikp/texify",
|
| 4 |
+
"architectures": [
|
| 5 |
+
"VisionEncoderDecoderModel"
|
| 6 |
+
],
|
| 7 |
+
"decoder": {
|
| 8 |
+
"_attn_implementation_autoset": false,
|
| 9 |
+
"_name_or_path": "",
|
| 10 |
+
"activation_dropout": 0.0,
|
| 11 |
+
"activation_function": "gelu",
|
| 12 |
+
"add_cross_attention": true,
|
| 13 |
+
"add_final_layer_norm": true,
|
| 14 |
+
"architectures": null,
|
| 15 |
+
"attention_dropout": 0.0,
|
| 16 |
+
"bad_words_ids": null,
|
| 17 |
+
"begin_suppress_tokens": null,
|
| 18 |
+
"bos_token_id": 0,
|
| 19 |
+
"chunk_size_feed_forward": 0,
|
| 20 |
+
"classifier_dropout": 0.0,
|
| 21 |
+
"cross_attention_hidden_size": null,
|
| 22 |
+
"d_model": 1024,
|
| 23 |
+
"decoder_attention_heads": 16,
|
| 24 |
+
"decoder_ffn_dim": 4096,
|
| 25 |
+
"decoder_layerdrop": 0.0,
|
| 26 |
+
"decoder_layers": 8,
|
| 27 |
+
"decoder_start_token_id": null,
|
| 28 |
+
"diversity_penalty": 0.0,
|
| 29 |
+
"do_sample": false,
|
| 30 |
+
"dropout": 0.1,
|
| 31 |
+
"early_stopping": false,
|
| 32 |
+
"encoder_attention_heads": 16,
|
| 33 |
+
"encoder_ffn_dim": 4096,
|
| 34 |
+
"encoder_layerdrop": 0.0,
|
| 35 |
+
"encoder_layers": 12,
|
| 36 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 37 |
+
"eos_token_id": 2,
|
| 38 |
+
"exponential_decay_length_penalty": null,
|
| 39 |
+
"finetuning_task": null,
|
| 40 |
+
"forced_bos_token_id": null,
|
| 41 |
+
"forced_eos_token_id": 2,
|
| 42 |
+
"id2label": {
|
| 43 |
+
"0": "LABEL_0",
|
| 44 |
+
"1": "LABEL_1"
|
| 45 |
+
},
|
| 46 |
+
"init_std": 0.02,
|
| 47 |
+
"is_decoder": true,
|
| 48 |
+
"is_encoder_decoder": false,
|
| 49 |
+
"label2id": {
|
| 50 |
+
"LABEL_0": 0,
|
| 51 |
+
"LABEL_1": 1
|
| 52 |
+
},
|
| 53 |
+
"length_penalty": 1.0,
|
| 54 |
+
"max_length": 20,
|
| 55 |
+
"max_position_embeddings": 1536,
|
| 56 |
+
"min_length": 0,
|
| 57 |
+
"model_type": "mbart",
|
| 58 |
+
"no_repeat_ngram_size": 0,
|
| 59 |
+
"num_beam_groups": 1,
|
| 60 |
+
"num_beams": 1,
|
| 61 |
+
"num_hidden_layers": 12,
|
| 62 |
+
"num_return_sequences": 1,
|
| 63 |
+
"output_attentions": false,
|
| 64 |
+
"output_hidden_states": false,
|
| 65 |
+
"output_scores": false,
|
| 66 |
+
"pad_token_id": 1,
|
| 67 |
+
"prefix": null,
|
| 68 |
+
"problem_type": null,
|
| 69 |
+
"pruned_heads": {},
|
| 70 |
+
"remove_invalid_values": false,
|
| 71 |
+
"repetition_penalty": 1.0,
|
| 72 |
+
"return_dict": true,
|
| 73 |
+
"return_dict_in_generate": false,
|
| 74 |
+
"scale_embedding": true,
|
| 75 |
+
"sep_token_id": null,
|
| 76 |
+
"suppress_tokens": null,
|
| 77 |
+
"task_specific_params": null,
|
| 78 |
+
"temperature": 1.0,
|
| 79 |
+
"tf_legacy_loss": false,
|
| 80 |
+
"tie_encoder_decoder": false,
|
| 81 |
+
"tie_word_embeddings": false,
|
| 82 |
+
"tokenizer_class": null,
|
| 83 |
+
"top_k": 50,
|
| 84 |
+
"top_p": 1.0,
|
| 85 |
+
"torch_dtype": "float32",
|
| 86 |
+
"torchscript": false,
|
| 87 |
+
"typical_p": 1.0,
|
| 88 |
+
"use_bfloat16": false,
|
| 89 |
+
"use_cache": true,
|
| 90 |
+
"vocab_size": 50000
|
| 91 |
+
},
|
| 92 |
+
"decoder_start_token_id": 0,
|
| 93 |
+
"encoder": {
|
| 94 |
+
"_attn_implementation_autoset": false,
|
| 95 |
+
"_name_or_path": "",
|
| 96 |
+
"add_cross_attention": false,
|
| 97 |
+
"architectures": null,
|
| 98 |
+
"attention_probs_dropout_prob": 0.0,
|
| 99 |
+
"bad_words_ids": null,
|
| 100 |
+
"begin_suppress_tokens": null,
|
| 101 |
+
"bos_token_id": null,
|
| 102 |
+
"chunk_size_feed_forward": 0,
|
| 103 |
+
"cross_attention_hidden_size": null,
|
| 104 |
+
"decoder_start_token_id": null,
|
| 105 |
+
"depths": [
|
| 106 |
+
2,
|
| 107 |
+
2,
|
| 108 |
+
14,
|
| 109 |
+
2
|
| 110 |
+
],
|
| 111 |
+
"diversity_penalty": 0.0,
|
| 112 |
+
"do_sample": false,
|
| 113 |
+
"drop_path_rate": 0.1,
|
| 114 |
+
"early_stopping": false,
|
| 115 |
+
"embed_dim": 128,
|
| 116 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 117 |
+
"eos_token_id": null,
|
| 118 |
+
"exponential_decay_length_penalty": null,
|
| 119 |
+
"finetuning_task": null,
|
| 120 |
+
"forced_bos_token_id": null,
|
| 121 |
+
"forced_eos_token_id": null,
|
| 122 |
+
"hidden_act": "gelu",
|
| 123 |
+
"hidden_dropout_prob": 0.0,
|
| 124 |
+
"hidden_size": 1024,
|
| 125 |
+
"id2label": {
|
| 126 |
+
"0": "LABEL_0",
|
| 127 |
+
"1": "LABEL_1"
|
| 128 |
+
},
|
| 129 |
+
"image_size": [
|
| 130 |
+
420,
|
| 131 |
+
420
|
| 132 |
+
],
|
| 133 |
+
"initializer_range": 0.02,
|
| 134 |
+
"is_decoder": false,
|
| 135 |
+
"is_encoder_decoder": false,
|
| 136 |
+
"label2id": {
|
| 137 |
+
"LABEL_0": 0,
|
| 138 |
+
"LABEL_1": 1
|
| 139 |
+
},
|
| 140 |
+
"layer_norm_eps": 1e-05,
|
| 141 |
+
"length_penalty": 1.0,
|
| 142 |
+
"max_length": 20,
|
| 143 |
+
"min_length": 0,
|
| 144 |
+
"mlp_ratio": 4.0,
|
| 145 |
+
"model_type": "donut-swin",
|
| 146 |
+
"no_repeat_ngram_size": 0,
|
| 147 |
+
"num_beam_groups": 1,
|
| 148 |
+
"num_beams": 1,
|
| 149 |
+
"num_channels": 3,
|
| 150 |
+
"num_heads": [
|
| 151 |
+
4,
|
| 152 |
+
8,
|
| 153 |
+
16,
|
| 154 |
+
32
|
| 155 |
+
],
|
| 156 |
+
"num_layers": 4,
|
| 157 |
+
"num_return_sequences": 1,
|
| 158 |
+
"output_attentions": false,
|
| 159 |
+
"output_hidden_states": false,
|
| 160 |
+
"output_scores": false,
|
| 161 |
+
"pad_token_id": null,
|
| 162 |
+
"patch_size": 4,
|
| 163 |
+
"path_norm": true,
|
| 164 |
+
"prefix": null,
|
| 165 |
+
"problem_type": null,
|
| 166 |
+
"pruned_heads": {},
|
| 167 |
+
"qkv_bias": true,
|
| 168 |
+
"remove_invalid_values": false,
|
| 169 |
+
"repetition_penalty": 1.0,
|
| 170 |
+
"return_dict": true,
|
| 171 |
+
"return_dict_in_generate": false,
|
| 172 |
+
"sep_token_id": null,
|
| 173 |
+
"suppress_tokens": null,
|
| 174 |
+
"task_specific_params": null,
|
| 175 |
+
"temperature": 1.0,
|
| 176 |
+
"tf_legacy_loss": false,
|
| 177 |
+
"tie_encoder_decoder": false,
|
| 178 |
+
"tie_word_embeddings": true,
|
| 179 |
+
"tokenizer_class": null,
|
| 180 |
+
"top_k": 50,
|
| 181 |
+
"top_p": 1.0,
|
| 182 |
+
"torch_dtype": "float32",
|
| 183 |
+
"torchscript": false,
|
| 184 |
+
"typical_p": 1.0,
|
| 185 |
+
"use_2d_embeddings": false,
|
| 186 |
+
"use_absolute_embeddings": false,
|
| 187 |
+
"use_bfloat16": false,
|
| 188 |
+
"window_size": 5
|
| 189 |
+
},
|
| 190 |
+
"is_encoder_decoder": true,
|
| 191 |
+
"model_type": "vision-encoder-decoder",
|
| 192 |
+
"pad_token_id": 1,
|
| 193 |
+
"tie_word_embeddings": false,
|
| 194 |
+
"torch_dtype": "float32",
|
| 195 |
+
"transformers_version": "4.49.0",
|
| 196 |
+
"use_cache": false
|
| 197 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 0,
|
| 4 |
+
"decoder_start_token_id": 0,
|
| 5 |
+
"eos_token_id": 2,
|
| 6 |
+
"forced_eos_token_id": 2,
|
| 7 |
+
"pad_token_id": 1,
|
| 8 |
+
"transformers_version": "4.49.0"
|
| 9 |
+
}
|
onnx/decoder_model.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:757aec88b70e02714a3f036d04fd74606a452f77e7a19ef9fab034ef8e73d309
|
| 3 |
+
size 953696050
|
onnx/decoder_model_bnb4.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:46f23fddee8aed4576e4de1e01fe0fa29161a0e496775f4e3f0af1e89109b743
|
| 3 |
+
size 316335319
|
onnx/decoder_model_fp16.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c53da13e94c07e461d190ab0d0dc55df2a0318c96194de6e4dc7be50529adb4
|
| 3 |
+
size 476991515
|
onnx/decoder_model_int8.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f62fa92d345eba64ffa3a99b954c771d6094cbad5a26ee45fd3092a2dc670c3a
|
| 3 |
+
size 239219193
|
onnx/decoder_model_q4.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aa6e3eb47a331de8313af7686e67ee8334f77d1de06266438698109e6524ed36
|
| 3 |
+
size 327923271
|
onnx/decoder_model_q4f16.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f02918efdb984ef6f9849e6b9ec0d0b3a4411f8ced8724eadf5109b79062a5ec
|
| 3 |
+
size 210465583
|
onnx/decoder_model_quantized.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f62fa92d345eba64ffa3a99b954c771d6094cbad5a26ee45fd3092a2dc670c3a
|
| 3 |
+
size 239219193
|
onnx/decoder_model_uint8.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5c6f38ac34f98f418432a7daf8701955c8c70d24db4eef3be725ff8d9bad56bd
|
| 3 |
+
size 239219236
|
onnx/encoder_model.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:377f33a5126e917e0cffff8308853745a4272662b32727504ec320c28afeb149
|
| 3 |
+
size 298483180
|
onnx/encoder_model_bnb4.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c476eef8c7d8f1c312da737e5642683938e6035d4c278977d22d155a45924f4
|
| 3 |
+
size 44386818
|
onnx/encoder_model_fp16.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9677e0a1a6c4203ce39d462fd32c0c032226eb2cde14207c1e81489975f9beb2
|
| 3 |
+
size 149956885
|
onnx/encoder_model_int8.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a34dbedc0105178f9c7b76d15982d25440de6ae04d64c00b15af2b4ffe2a1437
|
| 3 |
+
size 76854984
|
onnx/encoder_model_q4.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9ed7e08242077a46ad672131c4fcc52bd1bdfe13754c9c5aec6f07d36a675f8a
|
| 3 |
+
size 49006131
|
onnx/encoder_model_q4f16.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:679c8bb5226c9e15c9c64c81ac3ebfba1f416df1bbfae00d157cc9399db588f9
|
| 3 |
+
size 43708765
|
onnx/encoder_model_quantized.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c8d4606a5dfda1ba39d807deb56655ce56b72843d89d9f3a2e447fd7f5960da
|
| 3 |
+
size 76855041
|
onnx/encoder_model_uint8.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c8d4606a5dfda1ba39d807deb56655ce56b72843d89d9f3a2e447fd7f5960da
|
| 3 |
+
size 76855041
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_align_long_axis": false,
|
| 3 |
+
"do_normalize": false,
|
| 4 |
+
"do_pad": false,
|
| 5 |
+
"do_rescale": false,
|
| 6 |
+
"do_resize": false,
|
| 7 |
+
"do_thumbnail": false,
|
| 8 |
+
"image_mean": [
|
| 9 |
+
0.485,
|
| 10 |
+
0.456,
|
| 11 |
+
0.406
|
| 12 |
+
],
|
| 13 |
+
"image_processor_type": "DonutFeatureExtractor",
|
| 14 |
+
"image_std": [
|
| 15 |
+
0.229,
|
| 16 |
+
0.224,
|
| 17 |
+
0.225
|
| 18 |
+
],
|
| 19 |
+
"max_size": {
|
| 20 |
+
"height": 420,
|
| 21 |
+
"width": 420
|
| 22 |
+
},
|
| 23 |
+
"patch_size": [
|
| 24 |
+
4,
|
| 25 |
+
4
|
| 26 |
+
],
|
| 27 |
+
"processor_class": "VariableDonutProcessor",
|
| 28 |
+
"resample": 2,
|
| 29 |
+
"rescale_factor": 0.00392156862745098,
|
| 30 |
+
"size": {
|
| 31 |
+
"height": 420,
|
| 32 |
+
"width": 420
|
| 33 |
+
},
|
| 34 |
+
"train": false
|
| 35 |
+
}
|
quantize_config.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"modes": [
|
| 3 |
+
"fp16",
|
| 4 |
+
"q8",
|
| 5 |
+
"int8",
|
| 6 |
+
"uint8",
|
| 7 |
+
"q4",
|
| 8 |
+
"q4f16",
|
| 9 |
+
"bnb4"
|
| 10 |
+
],
|
| 11 |
+
"per_channel": false,
|
| 12 |
+
"reduce_range": false,
|
| 13 |
+
"block_size": null,
|
| 14 |
+
"is_symmetric": true,
|
| 15 |
+
"accuracy_level": null,
|
| 16 |
+
"quant_type": 1,
|
| 17 |
+
"op_block_list": null
|
| 18 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<s>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"eos_token": {
|
| 10 |
+
"content": "</s>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": {
|
| 17 |
+
"content": "<pad>",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
"unk_token": {
|
| 24 |
+
"content": "<unk>",
|
| 25 |
+
"lstrip": false,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false
|
| 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,206 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"added_tokens_decoder": {
|
| 3 |
+
"0": {
|
| 4 |
+
"content": "<s>",
|
| 5 |
+
"lstrip": false,
|
| 6 |
+
"normalized": false,
|
| 7 |
+
"rstrip": false,
|
| 8 |
+
"single_word": false,
|
| 9 |
+
"special": true
|
| 10 |
+
},
|
| 11 |
+
"1": {
|
| 12 |
+
"content": "<pad>",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false,
|
| 17 |
+
"special": true
|
| 18 |
+
},
|
| 19 |
+
"2": {
|
| 20 |
+
"content": "</s>",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false,
|
| 25 |
+
"special": true
|
| 26 |
+
},
|
| 27 |
+
"3": {
|
| 28 |
+
"content": "<unk>",
|
| 29 |
+
"lstrip": false,
|
| 30 |
+
"normalized": false,
|
| 31 |
+
"rstrip": false,
|
| 32 |
+
"single_word": false,
|
| 33 |
+
"special": true
|
| 34 |
+
},
|
| 35 |
+
"4": {
|
| 36 |
+
"content": "[START_REF]",
|
| 37 |
+
"lstrip": false,
|
| 38 |
+
"normalized": false,
|
| 39 |
+
"rstrip": false,
|
| 40 |
+
"single_word": false,
|
| 41 |
+
"special": true
|
| 42 |
+
},
|
| 43 |
+
"5": {
|
| 44 |
+
"content": "[END_REF]",
|
| 45 |
+
"lstrip": false,
|
| 46 |
+
"normalized": false,
|
| 47 |
+
"rstrip": false,
|
| 48 |
+
"single_word": false,
|
| 49 |
+
"special": true
|
| 50 |
+
},
|
| 51 |
+
"6": {
|
| 52 |
+
"content": "[IMAGE]",
|
| 53 |
+
"lstrip": false,
|
| 54 |
+
"normalized": false,
|
| 55 |
+
"rstrip": false,
|
| 56 |
+
"single_word": false,
|
| 57 |
+
"special": true
|
| 58 |
+
},
|
| 59 |
+
"7": {
|
| 60 |
+
"content": "<fragments>",
|
| 61 |
+
"lstrip": false,
|
| 62 |
+
"normalized": false,
|
| 63 |
+
"rstrip": false,
|
| 64 |
+
"single_word": false,
|
| 65 |
+
"special": true
|
| 66 |
+
},
|
| 67 |
+
"8": {
|
| 68 |
+
"content": "</fragments>",
|
| 69 |
+
"lstrip": false,
|
| 70 |
+
"normalized": false,
|
| 71 |
+
"rstrip": false,
|
| 72 |
+
"single_word": false,
|
| 73 |
+
"special": true
|
| 74 |
+
},
|
| 75 |
+
"9": {
|
| 76 |
+
"content": "<work>",
|
| 77 |
+
"lstrip": false,
|
| 78 |
+
"normalized": false,
|
| 79 |
+
"rstrip": false,
|
| 80 |
+
"single_word": false,
|
| 81 |
+
"special": true
|
| 82 |
+
},
|
| 83 |
+
"10": {
|
| 84 |
+
"content": "</work>",
|
| 85 |
+
"lstrip": false,
|
| 86 |
+
"normalized": false,
|
| 87 |
+
"rstrip": false,
|
| 88 |
+
"single_word": false,
|
| 89 |
+
"special": true
|
| 90 |
+
},
|
| 91 |
+
"11": {
|
| 92 |
+
"content": "[START_SUP]",
|
| 93 |
+
"lstrip": false,
|
| 94 |
+
"normalized": false,
|
| 95 |
+
"rstrip": false,
|
| 96 |
+
"single_word": false,
|
| 97 |
+
"special": true
|
| 98 |
+
},
|
| 99 |
+
"12": {
|
| 100 |
+
"content": "[END_SUP]",
|
| 101 |
+
"lstrip": false,
|
| 102 |
+
"normalized": false,
|
| 103 |
+
"rstrip": false,
|
| 104 |
+
"single_word": false,
|
| 105 |
+
"special": true
|
| 106 |
+
},
|
| 107 |
+
"13": {
|
| 108 |
+
"content": "[START_SUB]",
|
| 109 |
+
"lstrip": false,
|
| 110 |
+
"normalized": false,
|
| 111 |
+
"rstrip": false,
|
| 112 |
+
"single_word": false,
|
| 113 |
+
"special": true
|
| 114 |
+
},
|
| 115 |
+
"14": {
|
| 116 |
+
"content": "[END_SUB]",
|
| 117 |
+
"lstrip": false,
|
| 118 |
+
"normalized": false,
|
| 119 |
+
"rstrip": false,
|
| 120 |
+
"single_word": false,
|
| 121 |
+
"special": true
|
| 122 |
+
},
|
| 123 |
+
"15": {
|
| 124 |
+
"content": "[START_DNA]",
|
| 125 |
+
"lstrip": false,
|
| 126 |
+
"normalized": false,
|
| 127 |
+
"rstrip": false,
|
| 128 |
+
"single_word": false,
|
| 129 |
+
"special": true
|
| 130 |
+
},
|
| 131 |
+
"16": {
|
| 132 |
+
"content": "[END_DNA]",
|
| 133 |
+
"lstrip": false,
|
| 134 |
+
"normalized": false,
|
| 135 |
+
"rstrip": false,
|
| 136 |
+
"single_word": false,
|
| 137 |
+
"special": true
|
| 138 |
+
},
|
| 139 |
+
"17": {
|
| 140 |
+
"content": "[START_AMINO]",
|
| 141 |
+
"lstrip": false,
|
| 142 |
+
"normalized": false,
|
| 143 |
+
"rstrip": false,
|
| 144 |
+
"single_word": false,
|
| 145 |
+
"special": true
|
| 146 |
+
},
|
| 147 |
+
"18": {
|
| 148 |
+
"content": "[END_AMINO]",
|
| 149 |
+
"lstrip": false,
|
| 150 |
+
"normalized": false,
|
| 151 |
+
"rstrip": false,
|
| 152 |
+
"single_word": false,
|
| 153 |
+
"special": true
|
| 154 |
+
},
|
| 155 |
+
"19": {
|
| 156 |
+
"content": "[START_SMILES]",
|
| 157 |
+
"lstrip": false,
|
| 158 |
+
"normalized": false,
|
| 159 |
+
"rstrip": false,
|
| 160 |
+
"single_word": false,
|
| 161 |
+
"special": true
|
| 162 |
+
},
|
| 163 |
+
"20": {
|
| 164 |
+
"content": "[END_SMILES]",
|
| 165 |
+
"lstrip": false,
|
| 166 |
+
"normalized": false,
|
| 167 |
+
"rstrip": false,
|
| 168 |
+
"single_word": false,
|
| 169 |
+
"special": true
|
| 170 |
+
},
|
| 171 |
+
"21": {
|
| 172 |
+
"content": "[START_I_SMILES]",
|
| 173 |
+
"lstrip": false,
|
| 174 |
+
"normalized": false,
|
| 175 |
+
"rstrip": false,
|
| 176 |
+
"single_word": false,
|
| 177 |
+
"special": true
|
| 178 |
+
},
|
| 179 |
+
"22": {
|
| 180 |
+
"content": "[END_I_SMILES]",
|
| 181 |
+
"lstrip": false,
|
| 182 |
+
"normalized": false,
|
| 183 |
+
"rstrip": false,
|
| 184 |
+
"single_word": false,
|
| 185 |
+
"special": true
|
| 186 |
+
}
|
| 187 |
+
},
|
| 188 |
+
"additional_special_tokens": [],
|
| 189 |
+
"bos_token": "<s>",
|
| 190 |
+
"clean_up_tokenization_spaces": false,
|
| 191 |
+
"eos_token": "</s>",
|
| 192 |
+
"extra_special_tokens": {},
|
| 193 |
+
"max_length": 4096,
|
| 194 |
+
"model_max_length": 768,
|
| 195 |
+
"pad_to_multiple_of": null,
|
| 196 |
+
"pad_token": "<pad>",
|
| 197 |
+
"pad_token_type_id": 0,
|
| 198 |
+
"padding_side": "right",
|
| 199 |
+
"processor_class": "VariableDonutProcessor",
|
| 200 |
+
"stride": 0,
|
| 201 |
+
"tokenizer_class": "NougatTokenizer",
|
| 202 |
+
"truncation_side": "right",
|
| 203 |
+
"truncation_strategy": "longest_first",
|
| 204 |
+
"unk_token": "<unk>",
|
| 205 |
+
"vocab_file": null
|
| 206 |
+
}
|