5CD-AI/Vietnamese-alpaca-gpt4-gg-translated
Viewer • Updated • 52k • 439 • 20
How to use hahaso1304/lab21-qwen2.5-3b-r16 with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen2.5-3B-bnb-4bit")
model = PeftModel.from_pretrained(base_model, "hahaso1304/lab21-qwen2.5-3b-r16")LoRA adapter fine-tune Qwen2.5-3B cho instruction-following tiếng Việt. Sản phẩm Lab 21 — AICB-P2T3 (VinUniversity).
Đây là một LoRA adapter (QLoRA 4-bit) huấn luyện trên Qwen2.5-3B để model trả lời hướng dẫn (instruction) bằng tiếng Việt theo format Alpaca. Adapter chỉ chứa phần low-rank update (~0.12% tham số), dùng kèm base model gốc.
Qwen2.5-3B theo license riêng của Qwen.unsloth/Qwen2.5-3B-bnb-4bitSinh văn bản trả lời các instruction tiếng Việt (giải thích khái niệm, viết code, tóm tắt, liệt kê...). Dùng cho mục đích học tập, demo fine-tuning.
Không dùng cho production thật, tư vấn y tế/pháp lý/tài chính, hay nội dung yêu cầu độ chính xác cao — model 3B fine-tune trên 300 mẫu có thể bịa thông tin (hallucinate).
q_proj/v_proj → thay đổi style/format là chính, không bổ sung kiến thức mới.