Downloads · 30 days
41
11% of all-time downloads
cooler8/yejin-korean-3b-v2-sft
yejin-korean-3b-v2-sft is a text generation model from cooler8. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
Supervised fine-tuned version of the Yejin Korean 3B v2 base model.
Downloads · 30 days
41
11% of all-time downloads
All-time downloads
370
Public
Parameters
3B
6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6 GB · 100%
From the Hugging Face model README
Supervised fine-tuned version of the Yejin Korean 3B v2 base model.
This model is a 3-billion parameter Korean language model that has been supervised fine-tuned on high-quality instruction-following datasets.
Fine-tuned on curated Korean instruction-following datasets:
<s><|user|>
{instruction}<|end|>
<|assistant|>
{response}<|end|>
</s>
For multi-turn conversations:
<s><|user|>
{user_msg_1}<|end|>
<|assistant|>
{assistant_msg_1}<|end|>
<|user|>
{user_msg_2}<|end|>
<|assistant|>
{assistant_msg_2}<|end|>
</s>
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("cooler8/yejin-korean-3b-v2-sft")
tokenizer = AutoTokenizer.from_pretrained("cooler8/yejin-korean-3b-v2-sft")
messages = [{"role": "user", "content": "한국의 수도는 어디인가요?"}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt", return_dict=True)
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=False))
Apache 2.0