Downloads · 30 days
13
22% of all-time downloads
Leerimegic/chatoss
chatoss is a text generation model from Leerimegic. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
이 모델은 unsloth/gpt-oss-20b를 기반으로 maywell/koreantextbooks 데이터셋으로 파인튜닝된 한국어 교육 전용 모델입니다. LoRA(Low-Rank Adaptation) 기술을 사용하여 효율적으로 학습되었으며, 한국어 교육 콘텐츠 생성에 특화되어 있습니다.
Downloads · 30 days
13
22% of all-time downloads
All-time downloads
58
Public
Repo size
43.8 MB
Likes
0
Public
Click a slice to open those files.
.json27.9 MB · 64%
From the Hugging Face model README
이 모델은 unsloth/gpt-oss-20b를 기반으로 maywell/korean_textbooks 데이터셋으로 파인튜닝된 한국어 교육 전용 모델입니다. LoRA(Low-Rank Adaptation) 기술을 사용하여 효율적으로 학습되었으며, 한국어 교육 콘텐츠 생성에 특화되어 있습니다.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
# 베이스 모델 로드
base_model = AutoModelForCausalLM.from_pretrained(
"unsloth/gpt-oss-20b",
torch_dtype=torch.float16,
device_map="auto",
trust_remote_code=True
)
# LoRA 어댑터 로드
model = PeftModel.from_pretrained(base_model, "Leerimegic/chatoss")
# 토크나이저 로드
tokenizer = AutoTokenizer.from_pretrained("Leerimegic/chatoss")
messages = [
{"role": "system", "content": "당신은 한국어로 교육 내용을 설명하는 도움이 되는 어시스턴트입니다."},
{"role": "user", "content": "2의 거듭제곱에 대해 설명해주세요."}
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
return_tensors="pt",
return_dict=True
).to(model.device)
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=512,
do_sample=True,
temperature=0.7,
top_p=0.9,
pad_token_id=tokenizer.eos_token_id
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
이 모델은 다음 분야에서 우수한 성능을 보입니다:
이 모델은 베이스 모델인 unsloth/gpt-oss-20b의 라이선스를 따릅니다.