Downloads · 30 days
7
14% of all-time downloads
woohello/qwen3-0.6b-zh-lora
qwen3-0.6b-zh-lora is a text generation model from woohello. Use it when you need the model to write or continue text. It is set up for peft.
LoRA adapter for Qwen/Qwen3-0.6B, fine-tuned on the woohello/llm101-ai-history-sft-messages dataset (3683 中文 AI/LLM 发展史问答对,Ollama qwen3:8b 生成).
Downloads · 30 days
7
14% of all-time downloads
All-time downloads
50
Public
Repo size
51.9 MB
Likes
0
Public
Click a slice to open those files.
.safetensors40.4 MB · 78%
From the Hugging Face model README
LoRA adapter for Qwen/Qwen3-0.6B, fine-tuned on the woohello/llm101-ai-history-sft-messages dataset (3683 中文 AI/LLM 发展史问答对,Ollama qwen3:8b 生成).
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-0.6B", dtype=torch.bfloat16, device_map="auto")
tok = AutoTokenizer.from_pretrained("Qwen/Qwen3-0.6B")
model = PeftModel.from_pretrained(base, "woohello/qwen3-0.6b-zh-lora")
messages = [{"role": "user", "content": "请用中文简要介绍 LoRA 微调的核心思想。"}]
text = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
ids = tok(text, return_tensors="pt").to("cuda")
with torch.no_grad():
out = model.generate(**ids, max_new_tokens=300, do_sample=True, temperature=0.7, top_p=0.9)
print(tok.decode(out[0, ids["input_ids"].shape[1]:], skip_special_tokens=True))
woohello/llm101-ai-history-sft-messages (3683 消息格式 QAs)Qwen/Qwen3-0.6B (596M 参数, BF16)