Downloads · 30 days
0
minmingbb/kogpt2-chatbot-lora
kogpt2-chatbot-lora is a machine learning model from minmingbb. 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.
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
tokenizer_reload = AutoTokenizer.from_pretrained(model_name_upload)
# 2. 베이스 모델 불러오기
base_reload = AutoModelForCausalLM.from_pretrained("skt/kogpt2-base-v2")
# 3. 학습할 때와 똑같이 크기 조정
base_reload.resize_token_embeddings(len(tokenizer_reload))
base_reload.config.pad_token_id = tokenizer_reload.pad_token_id
# 4. LoRA 불러오기
model_reload = PeftModel.from_pretrained(base_reload, model_name_upload)