KyujinHan/KoT-platypus

CoT 방식을 활용하여 KO-platypus fine-tuning

2

stars

5

commits

Oct 1, 2023

updated

README

KoT-platypus

KO-platypus CoT 방식을 활용하여 KO-platypus2를 fine-tuning한 model

KoT-platypus2-7B🥮: Hugging Face
KoCoT_2000: Hugging Face

  • 본 연구는 (주)마커와 (주)미디어그룹사람과숲의 오픈소스 LLM 연구 컨소시엄에서 진행되었습니다.

KO-platypus2

KO-platypus2

Training Hyperparameters

HyperparametersValue
batch_size64
micro_batch_size1
Epochs15
learning_rate1e-5
cutoff_len4096
lr_schedulerlinear
base_modelkyujinpy/KO-Platypus2-7B-ex

Performance

When I evaluated Ko-Platy, I used this repo.
And, implement below code.

# In colab,
!python main.py \
    --model gpt2 \ 
    --model_args pretrained=..your_model_name.. \
    --tasks kobest_hellaswag,kobest_copa,kobest_boolq,kobest_sentineg \
    --device cuda:0 \
    --num_fewshot 0 # 5, 10, 25, ...

COPA (F1)

Model0-shot5-shot10-shot50-shot
Polyglot-ko-1.3b0.71960.71930.72040.7206
Polyglot-ko-3.8b0.75950.76080.76380.7788
Polyglot-ko-5.8b0.77450.76760.77750.7887
Polyglot-ko-12.8b0.79370.81080.80370.8369
Llama-2-Ko-7b 20B0.73880.76260.78080.7979
Llama-2-Ko-7b 40B0.74360.79270.80370.8259
KO-platypus2-7B-EX0.75090.78990.80290.8290
KoT-platypus2-7B(ours)0.75170.78680.80090.8239

HellaSwag (F1)

Model0-shot5-shot10-shot50-shot
Polyglot-ko-1.3b0.52470.52600.52780.5427
Polyglot-ko-3.8b0.57070.58300.56700.5787
Polyglot-ko-5.8b0.59760.59980.59790.6208
Polyglot-ko-12.8b0.59540.63060.60980.6118
Llama-2-Ko-7b 20B0.45180.46680.47260.4828
Llama-2-Ko-7b 40B0.45620.46570.46980.4774
KO-platypus2-7B-EX0.45710.44610.43710.4525
KoT-platypus2-7B(ours)0.44320.43820.45500.4534

BoolQ (F1)

Model0-shot5-shot10-shot50-shot
Polyglot-ko-1.3b0.35520.47510.41090.4038
Polyglot-ko-3.8b0.43200.52630.49300.4038
Polyglot-ko-5.8b0.43560.56980.51870.5236
Polyglot-ko-12.8b0.48180.60410.62890.6448
Llama-2-Ko-7b 20B0.36070.67970.68010.6622
Llama-2-Ko-7b 40B0.57860.69770.70840.7144
KO-platypus2-7B-EX0.60280.69790.70160.6988
KoT-platypus2-7B(ours)0.61420.67570.68390.6878

SentiNeg (F1)

Model0-shot5-shot10-shot50-shot
Polyglot-ko-1.3b0.67900.62570.55140.7851
Polyglot-ko-3.8b0.48580.79500.73200.7851
Polyglot-ko-5.8b0.33940.88410.88080.9521
Polyglot-ko-12.8b0.91170.90150.93450.9723
Llama-2-Ko-7b 20B0.48550.82950.87110.8513
Llama-2-Ko-7b 40B0.45940.76110.72760.9370
KO-platypus2-7B-EX0.58210.76530.79910.8643
KoT-platypus2-7B(ours)0.61270.71990.75310.8381

References

KoCoT_2000🥮
KO-platypus
CoT-llama
Platypus
ko-lm-evaluation-harness

Contributors

KyujinHan

5 commits

KyujinHan/KoT-platypus

CoT 방식을 활용하여 KO-platypus fine-tuning

2

stars

5

commits

Oct 1, 2023

updated

README

KoT-platypus

KO-platypus CoT 방식을 활용하여 KO-platypus2를 fine-tuning한 model

KoT-platypus2-7B🥮: Hugging Face
KoCoT_2000: Hugging Face

  • 본 연구는 (주)마커와 (주)미디어그룹사람과숲의 오픈소스 LLM 연구 컨소시엄에서 진행되었습니다.

KO-platypus2

KO-platypus2

Training Hyperparameters

HyperparametersValue
batch_size64
micro_batch_size1
Epochs15
learning_rate1e-5
cutoff_len4096
lr_schedulerlinear
base_modelkyujinpy/KO-Platypus2-7B-ex

Performance

When I evaluated Ko-Platy, I used this repo.
And, implement below code.

# In colab,
!python main.py \
    --model gpt2 \ 
    --model_args pretrained=..your_model_name.. \
    --tasks kobest_hellaswag,kobest_copa,kobest_boolq,kobest_sentineg \
    --device cuda:0 \
    --num_fewshot 0 # 5, 10, 25, ...

COPA (F1)

Model0-shot5-shot10-shot50-shot
Polyglot-ko-1.3b0.71960.71930.72040.7206
Polyglot-ko-3.8b0.75950.76080.76380.7788
Polyglot-ko-5.8b0.77450.76760.77750.7887
Polyglot-ko-12.8b0.79370.81080.80370.8369
Llama-2-Ko-7b 20B0.73880.76260.78080.7979
Llama-2-Ko-7b 40B0.74360.79270.80370.8259
KO-platypus2-7B-EX0.75090.78990.80290.8290
KoT-platypus2-7B(ours)0.75170.78680.80090.8239

HellaSwag (F1)

Model0-shot5-shot10-shot50-shot
Polyglot-ko-1.3b0.52470.52600.52780.5427
Polyglot-ko-3.8b0.57070.58300.56700.5787
Polyglot-ko-5.8b0.59760.59980.59790.6208
Polyglot-ko-12.8b0.59540.63060.60980.6118
Llama-2-Ko-7b 20B0.45180.46680.47260.4828
Llama-2-Ko-7b 40B0.45620.46570.46980.4774
KO-platypus2-7B-EX0.45710.44610.43710.4525
KoT-platypus2-7B(ours)0.44320.43820.45500.4534

BoolQ (F1)

Model0-shot5-shot10-shot50-shot
Polyglot-ko-1.3b0.35520.47510.41090.4038
Polyglot-ko-3.8b0.43200.52630.49300.4038
Polyglot-ko-5.8b0.43560.56980.51870.5236
Polyglot-ko-12.8b0.48180.60410.62890.6448
Llama-2-Ko-7b 20B0.36070.67970.68010.6622
Llama-2-Ko-7b 40B0.57860.69770.70840.7144
KO-platypus2-7B-EX0.60280.69790.70160.6988
KoT-platypus2-7B(ours)0.61420.67570.68390.6878

SentiNeg (F1)

Model0-shot5-shot10-shot50-shot
Polyglot-ko-1.3b0.67900.62570.55140.7851
Polyglot-ko-3.8b0.48580.79500.73200.7851
Polyglot-ko-5.8b0.33940.88410.88080.9521
Polyglot-ko-12.8b0.91170.90150.93450.9723
Llama-2-Ko-7b 20B0.48550.82950.87110.8513
Llama-2-Ko-7b 40B0.45940.76110.72760.9370
KO-platypus2-7B-EX0.58210.76530.79910.8643
KoT-platypus2-7B(ours)0.61270.71990.75310.8381

References

KoCoT_2000🥮
KO-platypus
CoT-llama
Platypus
ko-lm-evaluation-harness

Contributors

KyujinHan

5 commits