KakaoBrain project KoGPT (Korean Generative Pre-trained Transformer) https://github.com/kakaobrain/kogpt https://huggingface.co/kakaobrain/kogpt
Pretrained GPT2 with expanded n_ctx up to 2048(also with expanded embedding dimension to 1536) in Korean.
Detailed results can be found here
| Metric | Value |
|---|---|
| Avg. | 24.27 |
| ARC (25-shot) | 21.16 |
| HellaSwag (10-shot) | 28.11 |
| MMLU (5-shot) | 26.56 |
| TruthfulQA (0-shot) | 42.06 |
| Winogrande (5-shot) | 49.09 |
| GSM8K (5-shot) | 0.0 |
| DROP (3-shot) | 2.89 |
from openmind import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained('pretrainmodel/kogpt')
model = AutoModel.from_pretrained('pretrainmodel/kogpt')
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
print(output)