Downloads · 30 days
19
6% of all-time downloads
Chhagan005/Chhagan_ML-VL-OCR-v1
Chhagan_ML-VL-OCR-v1 is a image-text-to-text model from Chhagan005. 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.
Multilingual OCR model for government ID cards, fine-tuned with LoRA on Qwen2.5-VL-3B.
Downloads · 30 days
19
6% of all-time downloads
All-time downloads
299
Public
Parameters
3.8B
23.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors15.3 GB · 100%
From the Hugging Face model README
Multilingual OCR model for government ID cards, fine-tuned with LoRA on Qwen2.5-VL-3B.
English, Arabic (عربي), Hindi (हिन्दी), Urdu (اردو)
from transformers import Qwen2_5_VLForConditionalGeneration, AutoProcessor
from peft import PeftModel
base = Qwen2_5_VLForConditionalGeneration.from_pretrained("Qwen/Qwen2.5-VL-3B-Instruct")
model = PeftModel.from_pretrained(base, "Chhagan005/Chhagan_ML-VL-OCR-v1")
processor = AutoProcessor.from_pretrained("Chhagan005/Chhagan_ML-VL-OCR-v1")
from transformers import Qwen2_5_VLForConditionalGeneration, AutoProcessor
model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
"Chhagan005/Chhagan_ML-VL-OCR-v1",
torch_dtype=torch.float16, device_map="auto"
)
processor = AutoProcessor.from_pretrained("Chhagan005/Chhagan_ML-VL-OCR-v1")