Views
No views yet

khoin68/Qwen2.5-Coder-7B-Vietnamese-LoRA (v1.0).| Phân loại | Tên Dataset nguồn | Số lượng | Trọng tâm năng lực |
|---|---|---|---|
| Tool Calling | glaiveai/glaive-function-calling-v2 | 40.000 mẫu | Kỹ năng gọi hàm JSON qua thẻ <tool_call> |
| Code Chuyên Sâu | m-a-p/CodeFeedback-Filtered-Instruction | 30.000 mẫu | Giải thuật, Clean Code, Debug và Refactoring |
| Tiếng Việt Đời Sống | nguyenphuthien/vietnamese_ultrachat_200k | 20.000 mẫu | Hội thoại giao tiếp tự nhiên bản xứ |
| Tư Duy Logic | 5CD-AI/Vietnamese-alpaca-gpt4-gg-translated | 10.000 mẫu | Nghe hiểu mệnh lệnh và phân tích logic GPT-4 |
| TỔNG CỘNG | 5 Bộ Dataset mở hàng đầu | 100.000 mẫu | Nền móng toàn diện 100% |
unsloth/Qwen2.5-Coder-7B-Instruct-bnb-4bit (kế thừa trọng số v1.0).SFTTrainer).32 | LoRA Alpha ($\alpha$): 32 | Dropout: 0.0.["q_proj", "k_proj", "v_proj", "o_proj", "gate_proj", "up_proj", "down_proj"].80,740,352 / 7,696,356,864 (1.05% tổng tham số).1,500 steps (~3.6 giờ tính toán liên tục trên Kaggle Tesla T4).1e-4 (Cosine Decay Scheduler).2, Gradient Accumulation = 4 (Effective Batch = 8).1import torch
2from unsloth import FastLanguageModel
3
4# 1. Nạp Model nền móng 100K mẫu
5model, tokenizer = FastLanguageModel.from_pretrained(
6 model_name = "khoin68/Qwen2.5-Coder-7B-Stage1-100K-LoRA",
7 max_seq_length = 2048,
8 dtype = None,
9 load_in_4bit = True,
10)
11
12# 2. Bật chế độ suy luận nhanh
13FastLanguageModel.for_inference(model)
14
15# 3. Gửi câu hỏi kiểm tra khả năng gọi tool
16messages = [
17 {"role": "system", "content": "Bạn là trợ lý AI thông minh hỗ trợ gọi hàm hệ thống qua thẻ <tool_call>."},
18 {"role": "user", "content": "Kiểm tra danh sách các file trong thư mục src/ và đọc nội dung file config.json giúp tôi."}
19]
20
21inputs = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt").to("cuda")
22outputs = model.generate(input_ids=inputs, max_new_tokens=256, temperature=0.3)
23print(tokenizer.batch_decode(outputs)[0])