Downloads · 30 days
3
12% of all-time downloads
chai1me/qwen2vl-receipt-lora
qwen2vl-receipt-lora is a machine learning model from chai1me. Use it for the machine learning 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.
LoRA adapter fine-tuning Qwen2-VL-2B-Instruct to extract structured JSON (line items and total) from receipt images. Trained with QLoRA (4-bit) on a single Kaggle T4 GPU.
Downloads · 30 days
3
12% of all-time downloads
All-time downloads
25
Public
Repo size
85.3 MB
Likes
0
Public
Click a slice to open those files.
.safetensors73.9 MB · 87%
From the Hugging Face model README
LoRA adapter fine-tuning Qwen2-VL-2B-Instruct to extract structured JSON (line items and total) from receipt images. Trained with QLoRA (4-bit) on a single Kaggle T4 GPU.
| Metric | Score |
|---|---|
| Valid JSON output | 100% |
| Total exact-match | 90% |
| Mean char-similarity on near-misses | 0.957 |
Qwen/Qwen2-VL-2B-Instruct (loaded 4-bit via unsloth/Qwen2-VL-2B-Instruct-bnb-4bit)from unsloth import FastVisionModel
model, tokenizer = FastVisionModel.from_pretrained("chai1me/qwen2vl-receipt-lora", load_in_4bit=True)
FastVisionModel.for_inference(model)
Trained on café/restaurant receipts (CORD). Other document types need retraining. Field extraction only; not a forgery- or tamper-detection system.
Full code and evaluation: GitHub