Unggi commited on
Commit
aff6f6a
1 Parent(s): 6961204
Files changed (3) hide show
  1. app.py +1 -1
  2. bertmodel/config.json +33 -0
  3. bertmodel/pytorch_model.bin +3 -0
app.py CHANGED
@@ -38,7 +38,7 @@ def load_model():
38
  pretrained_model_name = "kykim/bert-kor-base"
39
 
40
  tokenizer = BertTokenizerFast.from_pretrained(pretrained_model_name)
41
- model = AutoModel.from_pretrained(pretrained_model_name)
42
 
43
  return model, tokenizer
44
 
 
38
  pretrained_model_name = "kykim/bert-kor-base"
39
 
40
  tokenizer = BertTokenizerFast.from_pretrained(pretrained_model_name)
41
+ model = AutoModel.from_pretrained("./bertmodel/")
42
 
43
  return model, tokenizer
44
 
bertmodel/config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "kykim/bert-kor-base",
3
+ "architectures": [
4
+ "BertModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "directionality": "bidi",
9
+ "embedding_size": 768,
10
+ "gradient_checkpointing": false,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 3072,
16
+ "layer_norm_eps": 1e-12,
17
+ "max_position_embeddings": 512,
18
+ "model_type": "bert",
19
+ "num_attention_heads": 12,
20
+ "num_hidden_layers": 12,
21
+ "pad_token_id": 0,
22
+ "pooler_fc_size": 768,
23
+ "pooler_num_attention_heads": 12,
24
+ "pooler_num_fc_layers": 3,
25
+ "pooler_size_per_head": 128,
26
+ "pooler_type": "first_token_transform",
27
+ "position_embedding_type": "absolute",
28
+ "torch_dtype": "float32",
29
+ "transformers_version": "4.12.5",
30
+ "type_vocab_size": 2,
31
+ "use_cache": true,
32
+ "vocab_size": 42000
33
+ }
bertmodel/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a1600914f64f627a2fa12ceaf46c16f8626ec8b91f9802e00de5c184fcdfdc1
3
+ size 473267953