IndicFinDoc-DeepSeek-OCR-3B-LoRA
a DeepSeek-OCR adapter for financial documents
2 min readupdated
This is an experimental LoRA (a lightweight add-on for a base model) for the DeepSeek-OCR 3B vision-language model, trained to handle financial and business paperwork. Its primary job is OCR (optical character recognition) and extracting structured JSON data, with a focus on Hindi and bilingual Hindi-English files. It digitizes invoices, receipts, and payment orders while preserving their original layout and reading order. The project is built for researchers and developers creating document workflow automation pipelines.
Key features
- Specialization: tailored for financial and business documents (invoices, receipts, credit notes).
- Multilingual support: covers Hindi and English in its underlying dataset.
- Architecture: a LoRA adaptation built on DeepSeek-OCR 3B using the Unsloth and PEFT libraries.
- Structured output: extracts visible document fields directly into ready-to-use JSON representations.
What you can do
- Digitize invoices: run scans and digital copies of Hindi and English business documents through automated processing pipelines.
- Extract fields: automate pulling key financial details into a structured format.
- Run research: test multilingual document recognition and benchmark the quality of VLMs (vision-language models).
- Integrate into workflows: pair the adapter with the base DeepSeek-OCR model to build end-to-end document processing pipelines.
Example
Loading the adapter via the Hugging Face Hub library:
from huggingface_hub import snapshot_download
adapter_path = snapshot_download(
repo_id="learner-subodh/IndicFinDoc-DeepSeek-OCR-3B-LoRA"
)
print("Adapter downloaded to:", adapter_path)Read more
DetailsBase model: deepseek-ai/DeepSeek-OCR
Training: Google Colab on an NVIDIA T4 (LoRA rank 16, alpha 16)
Dataset: Hyperbots Synthetic Hindi Business Documents (CC BY 4.0)
Limitations: requires a compatible base model; prone to hallucinations and errors on complex tables










Comments