Downloads · 30 days
0
0208suin/lora_model_qwen3_tave
lora_model_qwen3_tave is a machine learning model from 0208suin. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
- Developed by: 0208suin - License: apache-2.0 - Finetuned from model : unsloth/qwen3-14b-unsloth-bnb-4bit
Downloads · 30 days
0
Access
Public
Updated Jul 25, 2025
Repo size
514 MB
Likes
0
Public
Click a slice to open those files.
.safetensors514 MB · 100%
From the Hugging Face model README
This qwen3 model was trained 2x faster with Unsloth and Huggingface's TRL library.
이 모델은
unsloth/qwen3-14b-unsloth-bnb-4bit를 기반으로, Unsloth + TRL(Transformers Reinforcement Learning) 기반 파인튜닝을 통해 한국어 일기/행동 기록 텍스트로부터 핵심 키워드(5~10개)를 추출할 수 있도록 학습된 모델입니다.
파인튜닝 방식: PEFT + LoRA + TRL (DPO/GRPO 준비 가능)
지원 언어: 한국어 (추론 중심, 한국어 최적화 프롬프트 사용)
적용 분야:
from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
import torch
model_id = "0208suin/qwen3-14b-keyword-lora" # 실제 모델 경로로 변경
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", trust_remote_code=True)
messages = [
{
"role": "user",
"content": (
"다음 일기를 읽고 핵심 키워드를 5개 이상 10개 이하로 논리적으로 도출해줘:\n\n"
"오늘은 오랜만에 혼자 한강에 갔다. 벚꽃이 흐드러지게 피어 있어서 산책하는 내내 기분이 좋았다. "
"이어폰으로 좋아하는 음악을 들으면서 걷다 보니, 쌓였던 스트레스가 조금은 풀리는 것 같았다. "
"날씨도 따뜻하고 바람도 선선해서, 오히려 마음이 차분해졌다. "
"혼자만의 시간이 이렇게 소중하게 느껴진 건 정말 오랜만이었다."
)
}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
streamer = TextStreamer(tokenizer, skip_prompt=True)
model.generate(
**tokenizer(text, return_tensors="pt").to(model.device),
max_new_tokens=256,
temperature=0.6,
top_p=0.95,
top_k=20,
streamer=streamer
)
원천 데이터: 한국어 일기 및 행동관찰 보고서 텍스트 11,000건
라벨링: 전문가가 수작업으로 추출한 키워드 (5~10개)
두 가지 모드로 학습됨:
| 항목 | 내용 |
|---|---|
| 프레임워크 | Unsloth |
| 모델 크기 | Qwen3-14B (bnb-4bit) |
| 학습 방식 | LoRA (adapter model only) |
| 컨텍스트 길이 | 최대 32K tokens |
| 사용 라이브러리 | Hugging Face Transformers + TRL + PEFT |