SeonggwanAhn/KoGLM

KoGLM (Korean General Language Model)

0

stars

75

commits

Python

primary language

Nov 20, 2022

updated

README

KoGLM

KoGLM(Korean General Language Model) is a Korean version of GLM(General Language Model).

Setup

  1. A conda environment is used

    $ conda env create -f koglm_environment.yml.

    You need to change prefix, name according to your environment.

  2. 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

Pretrain

$ bash scripts/koglm_pretrain.sh config/kor_block_base.sh

Finetune

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

Results

  • tasks: NSMC, ...
  • Best score among the patterns of each task.
ModelsNSMC
KoGLM91.11

I will make the README more detail soon...

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

Contributors

SeonggwanAhn

75 commits

SeonggwanAhn/KoGLM

KoGLM (Korean General Language Model)

0

stars

75

commits

Python

primary language

Nov 20, 2022

updated

README

KoGLM

KoGLM(Korean General Language Model) is a Korean version of GLM(General Language Model).

Setup

  1. A conda environment is used

    $ conda env create -f koglm_environment.yml.

    You need to change prefix, name according to your environment.

  2. 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

Pretrain

$ bash scripts/koglm_pretrain.sh config/kor_block_base.sh

Finetune

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

Results

  • tasks: NSMC, ...
  • Best score among the patterns of each task.
ModelsNSMC
KoGLM91.11

I will make the README more detail soon...

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

Contributors

SeonggwanAhn

75 commits

Languages

Python

93.6%

Shell

5.9%