Upload TrOCRForCausalLM
Browse files- config.json +33 -0
- generation_config.json +9 -0
- model.safetensors +3 -0
config.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation_dropout": 0.0,
|
| 3 |
+
"activation_function": "relu",
|
| 4 |
+
"add_cross_attention": true,
|
| 5 |
+
"architectures": [
|
| 6 |
+
"TrOCRForCausalLM"
|
| 7 |
+
],
|
| 8 |
+
"attention_dropout": 0.0,
|
| 9 |
+
"bos_token_id": 0,
|
| 10 |
+
"classifier_dropout": 0.0,
|
| 11 |
+
"cross_attention_hidden_size": 8,
|
| 12 |
+
"d_model": 8,
|
| 13 |
+
"decoder_attention_heads": 2,
|
| 14 |
+
"decoder_ffn_dim": 8,
|
| 15 |
+
"decoder_layerdrop": 0.0,
|
| 16 |
+
"decoder_layers": 2,
|
| 17 |
+
"decoder_start_token_id": 2,
|
| 18 |
+
"dropout": 0.1,
|
| 19 |
+
"eos_token_id": 2,
|
| 20 |
+
"init_std": 0.02,
|
| 21 |
+
"is_decoder": true,
|
| 22 |
+
"layernorm_embedding": true,
|
| 23 |
+
"max_position_embeddings": 512,
|
| 24 |
+
"model_type": "trocr",
|
| 25 |
+
"pad_token_id": 1,
|
| 26 |
+
"scale_embedding": true,
|
| 27 |
+
"tie_word_embeddings": false,
|
| 28 |
+
"torch_dtype": "float32",
|
| 29 |
+
"transformers_version": "4.36.0",
|
| 30 |
+
"use_cache": false,
|
| 31 |
+
"use_learned_position_embeddings": true,
|
| 32 |
+
"vocab_size": 64044
|
| 33 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 0,
|
| 4 |
+
"decoder_start_token_id": 2,
|
| 5 |
+
"eos_token_id": 2,
|
| 6 |
+
"pad_token_id": 1,
|
| 7 |
+
"transformers_version": "4.36.0",
|
| 8 |
+
"use_cache": false
|
| 9 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f66c239f60335cfd2dc156b2ea8d611d5d8f721bf72ffa1d4bcebf9b21c3b1b1
|
| 3 |
+
size 4127728
|