Upload tiny models for LayoutLMForQuestionAnswering

This commit is contained in:
Yih-Dar SHIEH 2022-11-23 19:22:00 +00:00
parent 58c63bbeac
commit 0d6a4bc614
7 changed files with 2454 additions and 0 deletions

26
config.json Normal file
View File

@ -0,0 +1,26 @@
{
"_name_or_path": "temp/dummy/layoutlm/LayoutLMForQuestionAnswering",
"architectures": [
"LayoutLMForQuestionAnswering"
],
"attention_probs_dropout_prob": 0.1,
"classifier_dropout": null,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 32,
"initializer_range": 0.02,
"intermediate_size": 37,
"layer_norm_eps": 1e-12,
"max_2d_position_embeddings": 1024,
"max_position_embeddings": 512,
"model_type": "layoutlm",
"num_attention_heads": 4,
"num_hidden_layers": 5,
"pad_token_id": 0,
"position_embedding_type": "absolute",
"torch_dtype": "float32",
"transformers_version": "4.25.0.dev0",
"type_vocab_size": 16,
"use_cache": true,
"vocab_size": 1124
}

BIN
pytorch_model.bin (Stored with Git LFS) Normal file

Binary file not shown.

7
special_tokens_map.json Normal file
View File

@ -0,0 +1,7 @@
{
"cls_token": "[CLS]",
"mask_token": "[MASK]",
"pad_token": "[PAD]",
"sep_token": "[SEP]",
"unk_token": "[UNK]"
}

BIN
tf_model.h5 (Stored with Git LFS) Normal file

Binary file not shown.

1274
tokenizer.json Normal file

File diff suppressed because it is too large Load Diff

17
tokenizer_config.json Normal file
View File

@ -0,0 +1,17 @@
{
"cls_token": "[CLS]",
"do_basic_tokenize": true,
"do_lower_case": true,
"mask_token": "[MASK]",
"max_len": 512,
"model_max_length": 512,
"name_or_path": "temp/dummy/layoutlm/processors",
"never_split": null,
"pad_token": "[PAD]",
"sep_token": "[SEP]",
"special_tokens_map_file": "/home/huggingface/.cache/huggingface/hub/models--microsoft--layoutlm-base-uncased/snapshots/ca841ce8d2f46b13b0ac3f635b8eb7d2e1d758d5/special_tokens_map.json",
"strip_accents": null,
"tokenize_chinese_chars": true,
"tokenizer_class": "LayoutLMTokenizer",
"unk_token": "[UNK]"
}

1124
vocab.txt Normal file

File diff suppressed because it is too large Load Diff