LoRA Fine-tuned Model

이 모델은 Qwen/Qwen3-0.6B을 기반으로 LoRA(Low-Rank Adaptation) 기법을 사용해 파인튜닝된 어댑터입니다.

모델 정보

  • 베이스 모델: Qwen/Qwen3-0.6B
  • 파인튜닝 방법: LoRA (Low-Rank Adaptation)
  • 데이터셋: tatsu-lab/alpaca

사용 방법

from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel

# 베이스 모델과 토크나이저 로드
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-0.6B", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    "Qwen/Qwen3-0.6B",
    trust_remote_code=True,
    torch_dtype=torch.bfloat16,
    device_map="auto"
)

# LoRA 어댑터 로드
model = PeftModel.from_pretrained(model, "Whitewinter/model-lora")

# 추론
prompt = "### Instruction:\nExplain what machine learning is.\n\n### Response:\n"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=200, temperature=0.7)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
Downloads last month
2
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Whitewinter/model-lora

Finetuned
Qwen/Qwen3-0.6B
Adapter
(501)
this model

Dataset used to train Whitewinter/model-lora