Commit
·
2f74c46
1
Parent(s):
12216d3
add PaddleOCR-VL
Browse files
PaddlePaddle/PaddleOCR-VL/bert4torch_config.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "paddleocr_vl",
|
| 3 |
+
"template": "paddleocr_vl",
|
| 4 |
+
"bias": false,
|
| 5 |
+
"attention_dropout": 0.0,
|
| 6 |
+
"bos_token_id": 0,
|
| 7 |
+
"eos_token_id": 2,
|
| 8 |
+
"image_token_id": 100295,
|
| 9 |
+
"video_token_id": 101307,
|
| 10 |
+
"hidden_act": "silu",
|
| 11 |
+
"hidden_size": 1024,
|
| 12 |
+
"initializer_range": 0.02,
|
| 13 |
+
"intermediate_size": 3072,
|
| 14 |
+
"max_position_embeddings": 131072,
|
| 15 |
+
"max_window_layers": 28,
|
| 16 |
+
"attention_head_size": 128,
|
| 17 |
+
"num_attention_heads": 16,
|
| 18 |
+
"num_hidden_layers": 18,
|
| 19 |
+
"num_key_value_heads": 2,
|
| 20 |
+
"layer_norm_eps": 1e-05,
|
| 21 |
+
"rope_theta": 500000.0,
|
| 22 |
+
"sliding_window": null,
|
| 23 |
+
"tie_word_embeddings": false,
|
| 24 |
+
"torch_dtype": "bfloat16",
|
| 25 |
+
"_attn_implementation": "sdpa",
|
| 26 |
+
"use_sliding_window": false,
|
| 27 |
+
"skip_init": true,
|
| 28 |
+
"segment_vocab_size": 0,
|
| 29 |
+
"rope_rank": "updown",
|
| 30 |
+
"convert_logits_dtype": "float32",
|
| 31 |
+
"generation_config": {
|
| 32 |
+
"tokenizer_config": {
|
| 33 |
+
"skip_special_tokens": true
|
| 34 |
+
},
|
| 35 |
+
"eos_token_id": 2,
|
| 36 |
+
"max_length": 32768,
|
| 37 |
+
"repetition_penalty": 1.0,
|
| 38 |
+
"temperature": 0.01,
|
| 39 |
+
"top_p": 0.001,
|
| 40 |
+
"top_k": 1
|
| 41 |
+
},
|
| 42 |
+
"vision_start_token_id": 101305,
|
| 43 |
+
"vision_config": {
|
| 44 |
+
"architectures": [
|
| 45 |
+
"SiglipVisionModel"
|
| 46 |
+
],
|
| 47 |
+
"attention_dropout": 0.0,
|
| 48 |
+
"auto_map": {
|
| 49 |
+
"AutoConfig": "configuration_paddleocr_vl.PaddleOCRVLConfig",
|
| 50 |
+
"AutoModel": "modeling_paddleocr_vl.SiglipVisionModel"
|
| 51 |
+
},
|
| 52 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 53 |
+
"hidden_size": 1152,
|
| 54 |
+
"image_size": 384,
|
| 55 |
+
"intermediate_size": 4304,
|
| 56 |
+
"layer_norm_eps": 1e-06,
|
| 57 |
+
"model_type": "paddleocr_vl",
|
| 58 |
+
"num_attention_heads": 16,
|
| 59 |
+
"num_channels": 3,
|
| 60 |
+
"num_hidden_layers": 27,
|
| 61 |
+
"pad_token_id": 0,
|
| 62 |
+
"patch_size": 14,
|
| 63 |
+
"spatial_merge_size": 2,
|
| 64 |
+
"temporal_patch_size": 2,
|
| 65 |
+
"tokens_per_second": 2,
|
| 66 |
+
"torch_dtype": "bfloat16"
|
| 67 |
+
},
|
| 68 |
+
"rope_scaling": {
|
| 69 |
+
"type": "mrope",
|
| 70 |
+
"mrope_section": [
|
| 71 |
+
16,
|
| 72 |
+
24,
|
| 73 |
+
24
|
| 74 |
+
]
|
| 75 |
+
},
|
| 76 |
+
"vocab_size": 103424
|
| 77 |
+
}
|
baidu/ERNIE-4.5-0.3B-Base-PT/bert4torch_config.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "ernie4_5",
|
| 3 |
+
"template": "pretrained_text_continuation",
|
| 4 |
+
"hidden_act": "silu",
|
| 5 |
+
"attention_probs_dropout_prob": 0.0,
|
| 6 |
+
"bos_token_id": 1,
|
| 7 |
+
"eos_token_id": 2,
|
| 8 |
+
"pad_token_id": 0,
|
| 9 |
+
"intermediate_size": 3072,
|
| 10 |
+
"initializer_range": 0.02,
|
| 11 |
+
"layer_norm_eps": 1e-05,
|
| 12 |
+
"hidden_size": 1024,
|
| 13 |
+
"attention_head_size": 128,
|
| 14 |
+
"num_attention_heads": 16,
|
| 15 |
+
"num_hidden_layers": 18,
|
| 16 |
+
"num_key_value_heads": 2,
|
| 17 |
+
"rope_theta": 500000.0,
|
| 18 |
+
"tie_word_embeddings": true,
|
| 19 |
+
"torch_dtype": "bfloat16",
|
| 20 |
+
"vocab_size": 103424,
|
| 21 |
+
"segment_vocab_size": 0,
|
| 22 |
+
"skip_init": true,
|
| 23 |
+
"rope_rank": "adjacent",
|
| 24 |
+
"max_position_embeddings": 131072,
|
| 25 |
+
"convert_logits_dtype": "float32",
|
| 26 |
+
"generation_config": {
|
| 27 |
+
"tokenizer_config": {
|
| 28 |
+
"skip_special_tokens": true,
|
| 29 |
+
"add_special_tokens": false
|
| 30 |
+
},
|
| 31 |
+
"eos_token_id": [
|
| 32 |
+
2
|
| 33 |
+
],
|
| 34 |
+
"max_length": 131072
|
| 35 |
+
}
|
| 36 |
+
}
|