hundredeuk2 commited on
Commit
6d4da96
1 Parent(s): f59302f

Upload model

Browse files
Files changed (2) hide show
  1. config.json +10 -10
  2. pytorch_model.bin +2 -2
config.json CHANGED
@@ -1,11 +1,11 @@
1
  {
2
- "_name_or_path": "microsoft/layoutlmv2-base-uncased",
3
  "architectures": [
4
- "LayoutLMv2ForQuestionAnswering"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
7
  "convert_sync_batchnorm": true,
8
- "coordinate_size": 128,
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": true,
101
  "gradient_checkpointing": false,
102
  "has_relative_attention_bias": true,
103
  "has_spatial_attention_bias": true,
104
- "has_visual_segment_embedding": true,
105
  "hidden_act": "gelu",
106
  "hidden_dropout_prob": 0.1,
107
- "hidden_size": 768,
108
  "image_feature_pool_shape": [
109
  7,
110
  7,
111
  256
112
  ],
113
  "initializer_range": 0.02,
114
- "intermediate_size": 3072,
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": 12,
122
- "num_hidden_layers": 12,
123
  "output_past": true,
124
  "pad_token_id": 0,
125
  "rel_2d_pos_bins": 64,
126
  "rel_pos_bins": 32,
127
- "shape_size": 128,
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:4a511c494e8d7062ef988c6a7277915f2949c0db133cd107041c1c2d0ec9c603
3
- size 802220763
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0199554fa54762483c3731bdfc69adae7ed0b513347a0f731a849cbabbbbd482
3
+ size 1705919876