Downloads · 30 days
3
1% of all-time downloads
minhduc168/Qwen3-VL-2B-Instruct-unsloth-bnb-4bit-Vietnamese-LoRA
Qwen3-VL-2B-Instruct-unsloth-bnb-4bit-Vietnamese-LoRA is a image-to-text model from minhduc168. Use it when you need a caption or text from an image. It is set up for peft. The card lists the license as apache-2.0.
Đây là LoRA Adapter được fine-tune để trích xuất thông tin từ hóa đơn, phiếu thu và đơn thuốc tiếng Việt. Adapter được huấn luyện dựa trên mô hình gốc unsloth/Qwen3-VL-2B-Instruct-bnb-4bit nhằm tối ưu khả năng hiểu tà…
Downloads · 30 days
3
1% of all-time downloads
All-time downloads
511
Public
Repo size
81.2 MB
Likes
0
Public
Click a slice to open those files.
.safetensors69.8 MB · 81%
From the Hugging Face model README
Đây là LoRA Adapter được fine-tune để trích xuất thông tin từ hóa đơn, phiếu thu và đơn thuốc tiếng Việt.
Adapter được huấn luyện dựa trên mô hình gốc unsloth/Qwen3-VL-2B-Instruct-bnb-4bit nhằm tối ưu khả năng hiểu tài liệu và trả về dữ liệu có cấu trúc.
Để sử dụng Adapter này, bạn cần tải base model trước, sau đó nạp LoRA bằng thư viện peft.
from transformers import Qwen2VLForConditionalGeneration, AutoProcessor
from peft import PeftModel
import torch
base_model_id = "unsloth/Qwen3-VL-2B-Instruct-bnb-4bit"
adapter_id = "minhduc168/Qwen3-VL-2B-Instruct-Vietnamese-LoRA"
# 1️⃣ Load base model
model = Qwen2VLForConditionalGeneration.from_pretrained(
base_model_id,
device_map="auto"
)
# 2️⃣ Load LoRA adapter
model = PeftModel.from_pretrained(model, adapter_id)
# 3️⃣ Load processor
processor = AutoProcessor.from_pretrained(base_model_id)
model.eval()
print("Model và LoRA adapter đã sẵn sàng!")
pip install peft transformers bitsandbytes
Model được huấn luyện trên:minhduc168/dataset-qwen-vlm-extract-bill
Bao gồm:
Định dạng instruction-following giúp model tạo ra kết quả JSON chính xác và ổn định hơn.
👉 Khi bạn muốn:
Nếu bạn muốn sử dụng phiên bản đã merge trọng số hoặc GGUF để chạy local, tham khảo tại:minhduc168/Qwen3-VL-2B-Instruct-Vietnamese
Apache-2.0
Nếu có câu hỏi về dataset hoặc quá trình training, vui lòng mở Discussion tại repository này!