LysandreJik
commited on
Commit
•
7893af6
1
Parent(s):
5f900e9
Add TF model
Browse files- .gitattributes +1 -0
- config.json +6 -9
- tf_model.h5 +3 -0
.gitattributes
CHANGED
@@ -6,3 +6,4 @@
|
|
6 |
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
7 |
*.ot filter=lfs diff=lfs merge=lfs -text
|
8 |
*.onnx filter=lfs diff=lfs merge=lfs -text
|
|
|
|
6 |
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
7 |
*.ot filter=lfs diff=lfs merge=lfs -text
|
8 |
*.onnx filter=lfs diff=lfs merge=lfs -text
|
9 |
+
tf_model.h5 filter=lfs diff=lfs merge=lfs -text
|
config.json
CHANGED
@@ -1,25 +1,22 @@
|
|
1 |
{
|
|
|
2 |
"attention_probs_dropout_prob": 0.1,
|
3 |
-
"finetuning_task": null,
|
4 |
"hidden_act": "gelu",
|
5 |
"hidden_dropout_prob": 0.1,
|
6 |
"hidden_size": 768,
|
7 |
"initializer_range": 0.02,
|
8 |
"intermediate_size": 3072,
|
9 |
-
"is_decoder": false,
|
10 |
"layer_norm_eps": 1e-12,
|
11 |
-
"max_position_embeddings": 512,
|
12 |
"max_2d_position_embeddings": 1024,
|
|
|
13 |
"model_type": "layoutlm",
|
14 |
"num_attention_heads": 12,
|
15 |
"num_hidden_layers": 12,
|
16 |
-
"num_labels": 2,
|
17 |
-
"output_attentions": false,
|
18 |
-
"output_hidden_states": false,
|
19 |
"output_past": true,
|
20 |
-
"
|
21 |
-
"
|
|
|
22 |
"type_vocab_size": 2,
|
23 |
-
"
|
24 |
"vocab_size": 30522
|
25 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "microsoft/layoutlm-base-uncased",
|
3 |
"attention_probs_dropout_prob": 0.1,
|
|
|
4 |
"hidden_act": "gelu",
|
5 |
"hidden_dropout_prob": 0.1,
|
6 |
"hidden_size": 768,
|
7 |
"initializer_range": 0.02,
|
8 |
"intermediate_size": 3072,
|
|
|
9 |
"layer_norm_eps": 1e-12,
|
|
|
10 |
"max_2d_position_embeddings": 1024,
|
11 |
+
"max_position_embeddings": 512,
|
12 |
"model_type": "layoutlm",
|
13 |
"num_attention_heads": 12,
|
14 |
"num_hidden_layers": 12,
|
|
|
|
|
|
|
15 |
"output_past": true,
|
16 |
+
"pad_token_id": 0,
|
17 |
+
"position_embedding_type": "absolute",
|
18 |
+
"transformers_version": "4.4.0.dev0",
|
19 |
"type_vocab_size": 2,
|
20 |
+
"use_cache": true,
|
21 |
"vocab_size": 30522
|
22 |
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e54f47c023b343229b82721fe095e4a2ef40a36aa03b3a48270a332086a7e754
|
3 |
+
size 450781856
|