hundredeuk2
commited on
Commit
•
6d4da96
1
Parent(s):
f59302f
Upload model
Browse files- config.json +10 -10
- pytorch_model.bin +2 -2
config.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "microsoft/layoutlmv2-
|
3 |
"architectures": [
|
4 |
-
"
|
5 |
],
|
6 |
"attention_probs_dropout_prob": 0.1,
|
7 |
"convert_sync_batchnorm": true,
|
8 |
-
"coordinate_size":
|
9 |
"detectron2_config_args": {
|
10 |
"MODEL.ANCHOR_GENERATOR.SIZES": [
|
11 |
[
|
@@ -97,34 +97,34 @@
|
|
97 |
"MODEL.RPN.PRE_NMS_TOPK_TEST": 1000,
|
98 |
"MODEL.RPN.PRE_NMS_TOPK_TRAIN": 2000
|
99 |
},
|
100 |
-
"fast_qkv":
|
101 |
"gradient_checkpointing": false,
|
102 |
"has_relative_attention_bias": true,
|
103 |
"has_spatial_attention_bias": true,
|
104 |
-
"has_visual_segment_embedding":
|
105 |
"hidden_act": "gelu",
|
106 |
"hidden_dropout_prob": 0.1,
|
107 |
-
"hidden_size":
|
108 |
"image_feature_pool_shape": [
|
109 |
7,
|
110 |
7,
|
111 |
256
|
112 |
],
|
113 |
"initializer_range": 0.02,
|
114 |
-
"intermediate_size":
|
115 |
"layer_norm_eps": 1e-12,
|
116 |
"max_2d_position_embeddings": 1024,
|
117 |
"max_position_embeddings": 512,
|
118 |
"max_rel_2d_pos": 256,
|
119 |
"max_rel_pos": 128,
|
120 |
"model_type": "layoutlmv2",
|
121 |
-
"num_attention_heads":
|
122 |
-
"num_hidden_layers":
|
123 |
"output_past": true,
|
124 |
"pad_token_id": 0,
|
125 |
"rel_2d_pos_bins": 64,
|
126 |
"rel_pos_bins": 32,
|
127 |
-
"shape_size":
|
128 |
"torch_dtype": "float32",
|
129 |
"transformers_version": "4.25.1",
|
130 |
"type_vocab_size": 2,
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "microsoft/layoutlmv2-large-uncased",
|
3 |
"architectures": [
|
4 |
+
"LayoutLMv2Model"
|
5 |
],
|
6 |
"attention_probs_dropout_prob": 0.1,
|
7 |
"convert_sync_batchnorm": true,
|
8 |
+
"coordinate_size": 171,
|
9 |
"detectron2_config_args": {
|
10 |
"MODEL.ANCHOR_GENERATOR.SIZES": [
|
11 |
[
|
|
|
97 |
"MODEL.RPN.PRE_NMS_TOPK_TEST": 1000,
|
98 |
"MODEL.RPN.PRE_NMS_TOPK_TRAIN": 2000
|
99 |
},
|
100 |
+
"fast_qkv": false,
|
101 |
"gradient_checkpointing": false,
|
102 |
"has_relative_attention_bias": true,
|
103 |
"has_spatial_attention_bias": true,
|
104 |
+
"has_visual_segment_embedding": false,
|
105 |
"hidden_act": "gelu",
|
106 |
"hidden_dropout_prob": 0.1,
|
107 |
+
"hidden_size": 1024,
|
108 |
"image_feature_pool_shape": [
|
109 |
7,
|
110 |
7,
|
111 |
256
|
112 |
],
|
113 |
"initializer_range": 0.02,
|
114 |
+
"intermediate_size": 4096,
|
115 |
"layer_norm_eps": 1e-12,
|
116 |
"max_2d_position_embeddings": 1024,
|
117 |
"max_position_embeddings": 512,
|
118 |
"max_rel_2d_pos": 256,
|
119 |
"max_rel_pos": 128,
|
120 |
"model_type": "layoutlmv2",
|
121 |
+
"num_attention_heads": 16,
|
122 |
+
"num_hidden_layers": 24,
|
123 |
"output_past": true,
|
124 |
"pad_token_id": 0,
|
125 |
"rel_2d_pos_bins": 64,
|
126 |
"rel_pos_bins": 32,
|
127 |
+
"shape_size": 170,
|
128 |
"torch_dtype": "float32",
|
129 |
"transformers_version": "4.25.1",
|
130 |
"type_vocab_size": 2,
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0199554fa54762483c3731bdfc69adae7ed0b513347a0f731a849cbabbbbd482
|
3 |
+
size 1705919876
|