Downloads · 30 days
69
6% of all-time downloads
skplanet/dialog-koelectra-small-generator
dialog-koelectra-small-generator is a fill-mask model from skplanet. Use it when you need the model to fill a missing word. It is set up for transformers.
Github : https://github.com/skplanet/Dialog-KoELECTRA
Downloads · 30 days
69
6% of all-time downloads
All-time downloads
1.2K
Public
Parameters
14.7M
118 MB on disk
Likes
1
Public
Click a slice to open those files.
.bin59 MB · 50%
How the weights are stored.
F3214.7M · 100%
From the Hugging Face model README
Github : https://github.com/skplanet/Dialog-KoELECTRA
Dialog-KoELECTRA is a language model specialized for dialogue. It was trained with 22GB colloquial and written style Korean text data. Dialog-ELECTRA model is made based on the ELECTRA model. ELECTRA is a method for self-supervised language representation learning. It can be used to pre-train transformer networks using relatively little compute. ELECTRA models are trained to distinguish "real" input tokens vs "fake" input tokens generated by another neural network, similar to the discriminator of a GAN. At small scale, ELECTRA achieves strong results even when trained on a single GPU.
<br>We are initially releasing small version pre-trained model. The model was trained on Korean text. We hope to release other models, such as base/large models, in the future.
| Model | Layers | Hidden Size | Params | Max<br/>Seq Len | Learning<br/>Rate | Batch Size | Train Steps |
|---|---|---|---|---|---|---|---|
| Dialog-KoELECTRA-Small | 12 | 256 | 14M | 128 | 1e-4 | 512 | 700K |
Dialog-KoELECTRA shows strong performance in conversational downstream tasks.
| NSMC<br/>(acc) | Question Pair<br/>(acc) | Korean-Hate-Speech<br/>(F1) | Naver NER<br/>(F1) | KorNLI<br/>(acc) | KorSTS<br/>(spearman) | |
|---|---|---|---|---|---|---|
| DistilKoBERT | 88.60 | 92.48 | 60.72 | 84.65 | 72.00 | 72.59 |
| Dialog-KoELECTRA-Small | 90.01 | 94.99 | 68.26 | 85.51 | 78.54 | 78.96 |
We applied morpheme analysis using huggingface_konlpy when creating a vocabulary dictionary. As a result of the experiment, it showed better performance than a vocabulary dictionary created without applying morpheme analysis.
<table> <thead> <tr> <th>vocabulary size</th> <th>unused token size</th> <th>limit alphabet</th> <th>min frequency</th> </tr> </thead> <tbody> <tr> <td>40,000</td> <td>500</td> <td>6,000</td> <td>3</td> </tr> </tbody> </table> <br>