Downloads · 30 days
0
jihun-pae/kogpt2-chatbot-lora
kogpt2-chatbot-lora is a machine learning model from jihun-pae. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-nc-nd-4.0.
jihun-pae/kogpt2-chatbot-lora - LoRA 한국어 챗봇 - 교육용 실습 모델입니다. loraconfig = LoraConfig( r=16, loraalpha=32, targetmodules=["cattn", "cproj", "cfc"], loradropout=0.05, bias="none", tasktype=TaskType.CAUSALLM ) trainingarg…
Downloads · 30 days
0
Access
Public
Updated Nov 5, 2025
Repo size
324 MB
Likes
0
Public
Click a slice to open those files.
.safetensors324 MB · 99%
From the Hugging Face model README
jihun-pae/kogpt2-chatbot-lora
lora_config = LoraConfig(
r=16,
lora_alpha=32,
target_modules=["c_attn", "c_proj", "c_fc"],
lora_dropout=0.05,
bias="none",
task_type=TaskType.CAUSAL_LM
)
training_args = TrainingArguments(
output_dir="./lora_koqpt2_chatbot",
num_train_epochs=10,
per_device_train_batch_size=4,
per_device_eval_batch_size=8,
gradient_accumulation_steps=4,
learning_rate=0.0002,
warmup_steps=100,
logging_steps=50,
eval_strategy="epoch",
eval_steps=100,
save_strategy="epoch",
save_steps=100,
load_best_model_at_end=True,
fp16=True,
report_to="none",
weight_decay=0.01,
)
# 테스트
test_questions = [
"안녕하세요?",
"오늘 날씨가 어때?",
"배고픈데 뭐 먹을까?",
"주말에 뭐하지?"
]
print("=== 챗봇 테스트 ===")
for q in test_questions:
print(f"
질문: 강원도 설악산 근처 맛집 좀 추천해주세요.")
print(f"답변: 여행가봐도 좋을거 같아요.")