jonomon commited on
Commit
64398ef
·
1 Parent(s): b7ec260

Upload 7 files

Browse files
Files changed (7) hide show
  1. README.md +18 -0
  2. config.json +28 -0
  3. flax_model.msgpack +3 -0
  4. pytorch_model.bin +3 -0
  5. tf_model.h5 +3 -0
  6. tokenizer_config.json +6 -0
  7. vocab.txt +0 -0
README.md ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: ko
3
+ tags:
4
+ - text-generation
5
+ ---
6
+
7
+ # Bert base model for Korean
8
+
9
+ * 70GB Korean text dataset and 42000 lower-cased subwords are used
10
+ * Check the model performance and other language models for Korean in [github](https://github.com/kiyoungkim1/LM-kor)
11
+
12
+ ```python
13
+ from transformers import BertTokenizerFast, GPT2LMHeadModel
14
+ tokenizer_gpt3 = BertTokenizerFast.from_pretrained("kykim/gpt3-kor-small_based_on_gpt2")
15
+ input_ids = tokenizer_gpt3.encode("text to tokenize")[1:] # remove cls token
16
+
17
+ model_gpt3 = GPT2LMHeadModel.from_pretrained("kykim/gpt3-kor-small_based_on_gpt2")
18
+ ```
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_function": "gelu_new",
3
+ "architectures": [
4
+ "GPT2LMHeadModel"
5
+ ],
6
+ "attn_pdrop": 0.1,
7
+ "bos_token_id": 3,
8
+ "embd_pdrop": 0.1,
9
+ "eos_token_id": 3,
10
+ "gradient_checkpointing": false,
11
+ "initializer_range": 0.02,
12
+ "layer_norm_epsilon": 1e-05,
13
+ "model_type": "gpt2",
14
+ "n_ctx": 2048,
15
+ "n_embd": 768,
16
+ "n_head": 12,
17
+ "n_inner": null,
18
+ "n_layer": 12,
19
+ "n_positions": 2048,
20
+ "resid_pdrop": 0.1,
21
+ "summary_activation": null,
22
+ "summary_first_dropout": 0.1,
23
+ "summary_proj_to_labels": true,
24
+ "summary_type": "cls_index",
25
+ "summary_use_proj": true,
26
+ "use_cache": true,
27
+ "vocab_size": 42000
28
+ }
flax_model.msgpack ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e85928f3a07718f939b31cd8d638d403d9b5cdf3c4fb034df4bfcb2c6146710b
3
+ size 475544331
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee4d397c62f57ae051a730dc611a67720bbcd180c600c738232190da5e2dc3f6
3
+ size 525899459
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b51889e01d4e7f8686fd79de2bce64834d07bab85c7306ea8c7fee3cf4615d0
3
+ size 475713872
tokenizer_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "do_lower_case": true,
3
+ "strip_accents": false,
4
+ "model_max_length": 2048,
5
+ "tokenizer_class": "BertTokenizer"
6
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff