Downloads · 30 days
5
12% of all-time downloads
sarcasticcoder/qwen2.5-vl-7b-cord-lora
qwen2.5-vl-7b-cord-lora is a image-text-to-text model from sarcasticcoder. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
QLoRA adapter that fine-tunes Qwen/Qwen2.5-VL-7B-Instruct to read a document image and emit structured JSON (receipt fields + line items), trained on a small CORD subset.
Downloads · 30 days
5
12% of all-time downloads
All-time downloads
42
Public
Repo size
173 MB
Likes
0
Public
Click a slice to open those files.
.safetensors162 MB · 93%
From the Hugging Face model README
QLoRA adapter that fine-tunes Qwen/Qwen2.5-VL-7B-Instruct to read a document image and emit structured JSON (receipt fields + line items), trained on a small CORD subset.
Qwen/Qwen2.5-VL-7B-Instruct| Field EM | Field F1 | Line-item F1 | |
|---|---|---|---|
| Zero-shot v3 prompt | 0.869 | 0.834 | 0.934 |
| This LoRA | 0.865 | 0.830 | 0.957 |
Matches the already-strong prompt baseline on fields and lifts line-item F1 +0.02.
from peft import PeftModel
from transformers import Qwen2_5_VLForConditionalGeneration, AutoProcessor
base = Qwen2_5_VLForConditionalGeneration.from_pretrained("Qwen/Qwen2.5-VL-7B-Instruct", device_map="auto")
model = PeftModel.from_pretrained(base, "sarcasticcoder/qwen2.5-vl-7b-cord-lora")
proc = AutoProcessor.from_pretrained("Qwen/Qwen2.5-VL-7B-Instruct")