KoichiYasuoka commited on
Commit
e8a1658
·
1 Parent(s): 904882b

initial release

Browse files
README.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - "th"
4
+ tags:
5
+ - "thai"
6
+ - "masked-lm"
7
+ - "wikipedia"
8
+ license: "apache-2.0"
9
+ pipeline_tag: "fill-mask"
10
+ mask_token: "[MASK]"
11
+ ---
12
+
13
+ # deberta-base-thai
14
+
15
+ ## Model Description
16
+
17
+ This is a DeBERTa(V2) model pre-trained on Thai Wikipedia texts. You can fine-tune `deberta-base-thai` for downstream tasks, such as [POS-tagging](https://huggingface.co/KoichiYasuoka/deberta-base-thai-upos), dependency-parsing, and so on.
18
+
19
+ ## How to Use
20
+
21
+ ```py
22
+ from transformers import AutoTokenizer,AutoModelForMaskedLM
23
+ tokenizer=AutoTokenizer.from_pretrained("KoichiYasuoka/deberta-base-thai")
24
+ model=AutoModelForMaskedLM.from_pretrained("KoichiYasuoka/deberta-base-thai")
25
+ ```
26
+
config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "DebertaV2ForMaskedLM"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "hidden_act": "gelu",
7
+ "hidden_dropout_prob": 0.1,
8
+ "hidden_size": 768,
9
+ "initializer_range": 0.02,
10
+ "intermediate_size": 3072,
11
+ "layer_norm_eps": 1e-07,
12
+ "max_position_embeddings": 512,
13
+ "max_relative_positions": -1,
14
+ "model_type": "deberta-v2",
15
+ "num_attention_heads": 12,
16
+ "num_hidden_layers": 12,
17
+ "pad_token_id": 0,
18
+ "pooler_dropout": 0,
19
+ "pooler_hidden_act": "gelu",
20
+ "pooler_hidden_size": 768,
21
+ "pos_att_type": null,
22
+ "position_biased_input": true,
23
+ "relative_attention": false,
24
+ "tokenizer_class": "DebertaV2TokenizerFast",
25
+ "torch_dtype": "float32",
26
+ "transformers_version": "4.19.2",
27
+ "type_vocab_size": 0,
28
+ "vocab_size": 3000
29
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aae5ca6dee9919446aedf425af5b921345fb9eb15be5f48e2f65189e5b0c8df0
3
+ size 353465581
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": "[CLS]", "eos_token": "[SEP]", "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"do_lower_case": false, "bos_token": "[CLS]", "eos_token": "[SEP]", "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "split_by_punct": true, "keep_accents": true, "model_max_length": 512, "tokenizer_class": "DebertaV2TokenizerFast"}