snunlp / KR-ELECTRA-generator

huggingface.co
Total runs: 40.4K
24-hour runs: 0
7-day runs: -383
30-day runs: -688
Model's Last Updated: May 04 2022
fill-mask

Introduction of KR-ELECTRA-generator

Model Details of KR-ELECTRA-generator

KoRean based ELECTRA (KR-ELECTRA)

This is a release of a Korean-specific ELECTRA model with comparable or better performances developed by the Computational Linguistics Lab at Seoul National University. Our model shows remarkable performances on tasks related to informal texts such as review documents, while still showing comparable results on other kinds of tasks.

Released Model

We pre-trained our KR-ELECTRA model following a base-scale model of ELECTRA . We trained the model based on Tensorflow-v1 using a v3-8 TPU of Google Cloud Platform.

Model Details

We followed the training parameters of the base-scale model of ELECTRA .

Hyperparameters
model # of layers embedding size hidden size # of heads
Discriminator 12 768 768 12
Generator 12 768 256 4
Pretraining
batch size train steps learning rates max sequence length generator size
256 700000 2e-4 128 0.33333
Training Dataset

34GB Korean texts including Wikipedia documents, news articles, legal texts, news comments, product reviews, and so on. These texts are balanced, consisting of the same ratios of written and spoken data.

Vocabulary

vocab size 30,000 We used morpheme-based unit tokens for our vocabulary based on the Mecab-Ko morpheme analyzer.

Download Link
  • Tensorflow-v1 model ( download )

  • PyTorch models on HuggingFace

from transformers import ElectraModel, ElectraTokenizer

model = ElectraModel.from_pretrained("snunlp/KR-ELECTRA-discriminator")
tokenizer = ElectraTokenizer.from_pretrained("snunlp/KR-ELECTRA-discriminator")
Finetuning

We used and slightly edited the finetuning codes from KoELECTRA , with additionally adjusted hyperparameters. You can download the codes and config files that we used for our model from our github .

Experimental Results
NSMC
(acc)
Naver NER
(F1)
PAWS
(acc)
KorNLI
(acc)
KorSTS
(spearman)
Question Pair
(acc)
KorQuaD (Dev)
(EM/F1)
Korean-Hate-Speech (Dev)
(F1)
KoBERT 89.59 87.92 81.25 79.62 81.59 94.85 51.75 / 79.15 66.21
XLM-Roberta-Base 89.03 86.65 82.80 80.23 78.45 93.80 64.70 / 88.94 64.06
HanBERT 90.06 87.70 82.95 80.32 82.73 94.72 78.74 / 92.02 68.32
KoELECTRA-Base 90.33 87.18 81.70 80.64 82.00 93.54 60.86 / 89.28 66.09
KoELECTRA-Base-v2 89.56 87.16 80.70 80.72 82.30 94.85 84.01 / 92.40 67.45
KoELECTRA-Base-v3 90.63 88.11 84.45 82.24 85.53 95.25 84.83 / 93.45 67.61
KR-ELECTRA (ours) 91.168 87.90 82.05 82.51 85.41 95.51 84.93 / 93.04 74.50

The baseline results are brought from KoELECTRA 's.

Citation
@misc{kr-electra,
  author = {Lee, Sangah and Hyopil Shin},
  title = {KR-ELECTRA: a KoRean-based ELECTRA model},
  year = {2022},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/snunlp/KR-ELECTRA}}
}

Runs of snunlp KR-ELECTRA-generator on huggingface.co

40.4K
Total runs
0
24-hour runs
22
3-day runs
-383
7-day runs
-688
30-day runs

More Information About KR-ELECTRA-generator huggingface.co Model

KR-ELECTRA-generator huggingface.co

KR-ELECTRA-generator huggingface.co is an AI model on huggingface.co that provides KR-ELECTRA-generator's model effect (), which can be used instantly with this snunlp KR-ELECTRA-generator model. huggingface.co supports a free trial of the KR-ELECTRA-generator model, and also provides paid use of the KR-ELECTRA-generator. Support call KR-ELECTRA-generator model through api, including Node.js, Python, http.

KR-ELECTRA-generator huggingface.co Url

https://huggingface.co/snunlp/KR-ELECTRA-generator

snunlp KR-ELECTRA-generator online free

KR-ELECTRA-generator huggingface.co is an online trial and call api platform, which integrates KR-ELECTRA-generator's modeling effects, including api services, and provides a free online trial of KR-ELECTRA-generator, you can try KR-ELECTRA-generator online for free by clicking the link below.

snunlp KR-ELECTRA-generator online free url in huggingface.co:

https://huggingface.co/snunlp/KR-ELECTRA-generator

KR-ELECTRA-generator install

KR-ELECTRA-generator is an open source model from GitHub that offers a free installation service, and any user can find KR-ELECTRA-generator on GitHub to install. At the same time, huggingface.co provides the effect of KR-ELECTRA-generator install, users can directly use KR-ELECTRA-generator installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

KR-ELECTRA-generator install url in huggingface.co:

https://huggingface.co/snunlp/KR-ELECTRA-generator

Url of KR-ELECTRA-generator

KR-ELECTRA-generator huggingface.co Url

Provider of KR-ELECTRA-generator huggingface.co

snunlp
ORGANIZATIONS

Other API from snunlp

huggingface.co

Total runs: 165.4K
Run Growth: -191.9K
Growth Rate: -116.07%
Updated:April 28 2022
huggingface.co

Total runs: 350
Run Growth: 218
Growth Rate: 62.29%
Updated:November 22 2021
huggingface.co

Total runs: 348
Run Growth: -75
Growth Rate: -21.55%
Updated:April 28 2022
huggingface.co

Total runs: 11
Run Growth: 6
Growth Rate: 54.55%
Updated:March 24 2024
huggingface.co

Total runs: 7
Run Growth: 3
Growth Rate: 42.86%
Updated:March 24 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 31 2024