KyujinHan/Poly-platypus-ko

Polyglot-Ko를 기반으로 KOpen-platypus dataset을 이용하여 fine-tuning한 model

2

stars

8

commits

Oct 3, 2023

updated

README

Poly-platypus-ko

KO-platypus Korean-Open-platypus를 활용하여 Polyglot-ko를 fine-tuning한 Korean-Platypus model

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

Model description

Poly-platypus-ko-12.8b🥮: Hugging Face
KOpen-Platypus🥮: Hugging Face

Polyglot-ko + KO-Platypus


CoTy-platypus-ko-12.8b: Hugging Face
KoCoT_2000: Hugging Face

Polyglot-ko + CoT-llama2-ko


KO-platypus2 & CoT-llama2-ko

KO-platypus2
CoT-llama2-ko

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-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-7B0.75170.78680.80090.8239
Poly-platypus-ko-12.8b(ours)0.78760.80990.80080.8239

HellaSwag (F1)

Model0-shot5-shot10-shot50-shot
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-7B0.44320.43820.45500.4534
Poly-platypus-ko-12.8b(ours)0.48380.48580.50050.5062

BoolQ (F1)

Model0-shot5-shot10-shot50-shot
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-7B0.61420.67570.68390.6878
Poly-platypus-ko-12.8b(ours)0.48880.65200.65680.6835

SentiNeg (F1)

Model0-shot5-shot10-shot50-shot
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-7B0.61270.71990.75310.8381
Poly-platypus-ko-12.8b(ours)0.84900.95970.97230.9847

References

Kopen-Platypus🥮
MarkrAI/kyujin-Poly-platypus-ko-12.8b🥮
Platypus
Polyglot-ko-12.8b
ko-lm-evaluation-harness

Additional info about image

I made the image, inspired by Platypus-LLM.
I used Playground AI, then applying prompt engineering. (For example, img2img, guidance etc...)

img
When I made Poly-platypus image, I use prompt like above image.

Contributors

KyujinHan

8 commits

KyujinHan/Poly-platypus-ko

Polyglot-Ko를 기반으로 KOpen-platypus dataset을 이용하여 fine-tuning한 model

2

stars

8

commits

Oct 3, 2023

updated

README

Poly-platypus-ko

KO-platypus Korean-Open-platypus를 활용하여 Polyglot-ko를 fine-tuning한 Korean-Platypus model

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

Model description

Poly-platypus-ko-12.8b🥮: Hugging Face
KOpen-Platypus🥮: Hugging Face

Polyglot-ko + KO-Platypus


CoTy-platypus-ko-12.8b: Hugging Face
KoCoT_2000: Hugging Face

Polyglot-ko + CoT-llama2-ko


KO-platypus2 & CoT-llama2-ko

KO-platypus2
CoT-llama2-ko

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-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-7B0.75170.78680.80090.8239
Poly-platypus-ko-12.8b(ours)0.78760.80990.80080.8239

HellaSwag (F1)

Model0-shot5-shot10-shot50-shot
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-7B0.44320.43820.45500.4534
Poly-platypus-ko-12.8b(ours)0.48380.48580.50050.5062

BoolQ (F1)

Model0-shot5-shot10-shot50-shot
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-7B0.61420.67570.68390.6878
Poly-platypus-ko-12.8b(ours)0.48880.65200.65680.6835

SentiNeg (F1)

Model0-shot5-shot10-shot50-shot
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-7B0.61270.71990.75310.8381
Poly-platypus-ko-12.8b(ours)0.84900.95970.97230.9847

References

Kopen-Platypus🥮
MarkrAI/kyujin-Poly-platypus-ko-12.8b🥮
Platypus
Polyglot-ko-12.8b
ko-lm-evaluation-harness

Additional info about image

I made the image, inspired by Platypus-LLM.
I used Playground AI, then applying prompt engineering. (For example, img2img, guidance etc...)

img
When I made Poly-platypus image, I use prompt like above image.

Contributors

KyujinHan

8 commits