Downloads · 30 days
0
JINIIII/korean-chatbot-lora
korean-chatbot-lora is a text generation model from JINIIII. Use it when you need the model to write or continue text. The card lists the license as mit.
Downloads · 30 days
0
Access
Public
Updated Nov 2, 2025
Repo size
2.4 MB
Likes
0
Public
Click a slice to open those files.
.json4.4 MB · 70%
From the Hugging Face model README
이 모델은 한국어 대화 모델입니다.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
# 베이스 모델 로드
base_model = AutoModelForCausalLM.from_pretrained(
"beomi/open-llama-2-ko-7b",
device_map="auto",
torch_dtype=torch.float16
)
# LoRA 어댑터 로드
model = PeftModel.from_pretrained(base_model, "JINIIII/korean-chatbot-lora")
tokenizer = AutoTokenizer.from_pretrained("JINIIII/korean-chatbot-lora")
# 추론
prompt = "질문: 인공지능이란 무엇인가요?\n답변:"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_length=200, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
MIT License
나는야 진수야ㅏ
Note: 이 모델은 교육 목적으로 만들어졌습니다.