KoGLM(Korean General Language Model) is a Korean version of GLM(General Language Model).
A conda environment is used
$ conda env create -f koglm_environment.yml.
You need to change prefix, name according to your environment.
Install apex
Additionaly, you need to install apex.
git clone https://github.com/NVIDIA/apex.git && cd apex && python setup.py install --cpp_ext --cuda_ext
$ bash scripts/koglm_pretrain.sh config/kor_block_base.sh
On NSMC task
$ bash scripts/finetune_superglue.sh config_tasks/koglm_blocklm_base.sh config_tasks/task_nsmc_pattern.sh (pattern-id)
If you want to develop your own PET(Pattern-Exploiting Training), refer to here
| Models | NSMC |
|---|---|
| KoGLM | 91.11 |
GLM is a General Language Model pretrained with an autoregressive blank-filling objective and can be finetuned on various natural language understanding and generation tasks.
Please refer to our paper for a detailed description of GLM:
GLM: General Language Model Pretraining with Autoregressive Blank Infilling
75 commits
Python
93.6%
Shell
5.9%
KoGLM(Korean General Language Model) is a Korean version of GLM(General Language Model).
A conda environment is used
$ conda env create -f koglm_environment.yml.
You need to change prefix, name according to your environment.
Install apex
Additionaly, you need to install apex.
git clone https://github.com/NVIDIA/apex.git && cd apex && python setup.py install --cpp_ext --cuda_ext
$ bash scripts/koglm_pretrain.sh config/kor_block_base.sh
On NSMC task
$ bash scripts/finetune_superglue.sh config_tasks/koglm_blocklm_base.sh config_tasks/task_nsmc_pattern.sh (pattern-id)
If you want to develop your own PET(Pattern-Exploiting Training), refer to here
| Models | NSMC |
|---|---|
| KoGLM | 91.11 |
GLM is a General Language Model pretrained with an autoregressive blank-filling objective and can be finetuned on various natural language understanding and generation tasks.
Please refer to our paper for a detailed description of GLM:
GLM: General Language Model Pretraining with Autoregressive Blank Infilling
75 commits
Python
93.6%
Shell
5.9%