zilongwang commited on
Commit
38b4d33
·
verified ·
1 Parent(s): 69e1150

Re-upload complete LayoutReader base checkpoint

Browse files

Replaces the original upload, which was saved via BertModel and silently dropped all LayoutReader-specific tensors (2D position embeddings x/y/h/w_position_embeddings and the cls.predictions head).

This commit contains the full original checkpoint: 207 tensors, 113M params, fp32.
The previous incomplete version remains available at revision "v1-old".

Files changed (3) hide show
  1. config.json +1 -7
  2. model.safetensors +2 -2
  3. pytorch_model.bin +3 -0
config.json CHANGED
@@ -1,11 +1,9 @@
1
  {
2
- "_name_or_path": "model/layoutreader-base",
3
  "architectures": [
4
- "BertModel"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
7
  "base_model_type": "layoutlm",
8
- "classifier_dropout": null,
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
@@ -20,13 +18,9 @@
20
  "num_attention_heads": 12,
21
  "num_hidden_layers": 12,
22
  "pad_token_id": 0,
23
- "position_embedding_type": "absolute",
24
  "source_type_id": 0,
25
  "target_type_id": 1,
26
- "torch_dtype": "float32",
27
- "transformers_version": "4.41.2",
28
  "type_vocab_size": 2,
29
- "use_cache": true,
30
  "vocab_size": 30522,
31
  "vocab_size_or_config_json_file": 30522
32
  }
 
1
  {
 
2
  "architectures": [
3
+ "LayoutlmForSequenceToSequence"
4
  ],
5
  "attention_probs_dropout_prob": 0.1,
6
  "base_model_type": "layoutlm",
 
7
  "hidden_act": "gelu",
8
  "hidden_dropout_prob": 0.1,
9
  "hidden_size": 768,
 
18
  "num_attention_heads": 12,
19
  "num_hidden_layers": 12,
20
  "pad_token_id": 0,
 
21
  "source_type_id": 0,
22
  "target_type_id": 1,
 
 
23
  "type_vocab_size": 2,
 
24
  "vocab_size": 30522,
25
  "vocab_size_or_config_json_file": 30522
26
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5dae7d63cd84f75940fad22e0ecdede63c8e2bbf5119bd8f7428583a6d5e4012
3
- size 439524192
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75285cc4b69ffcd2b96a93257621291f292acfb8f79c4329457fc98b26e825aa
3
+ size 452119264
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d22ddf88466c9c97ae5a67de59dfb1d0b1ff805f4b7f2106c670ecbfd2ccf611
3
+ size 452182454