Instructions to use yzk/paddleocr-vl-vedic-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use yzk/paddleocr-vl-vedic-lora with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Configuration Parsing Warning:In adapter_config.json: "peft.task_type" must be a string
PaddleOCR-VL-1.6 LoRA for printed Vedic Sanskrit (MS + KS)
A LoRA adapter for PaddleOCR-VL-1.6, revision c5630abae1d940eafe0697512a0325494b02ab42. It reads single printed text lines of the Maitrāyaṇī Saṃhitā (MS) and Kāṭhaka Saṃhitā (KS) editions by L. von Schroeder. The output is ISO 15919 transliteration with Vedic accents, written as acute and grave.
Training
- Data: every MS and KS line of
yzk/veda-ocrv1.3.1 (revisiond47c1451a9785175f116ae542a5a0542fa3d6bad). There are 23,592 training lines. About 5% of pages (1,297 lines) were held back for checkpoint selection. TS is not included. - LoRA: r=16, alpha=32, dropout 0.05, all linear layers of both the vision and language sides.
- Optimiser: lr 2e-4, effective batch 16, 5 epochs, bf16, seed 42.
- Provenance: the code is veda-ocr-knowledge commit
f555a2f9(Slurm job 2215). Full provenance is inprovenance.json. - Prompt:
OCR:(no thinking); max_new_tokens 512.
Quality
- Page-level 5-fold cross-validation with the same settings on v1.3.1: CER 2.31% ± 0.10, accent-stripped CER 2.22%, accent F1 0.989.
- The checkpoint-selection pages: CER 2.15%. These pages chose the checkpoint, so this is not a held-out estimate.
Input
- Grayscale line crops cut like the
yzk/veda-ocrlines:- the band runs to the midpoint with each neighbouring line;
- ink from neighbouring lines is cleaned off;
- a small margin is left.
- Multi-line images must be segmented into lines first.
Licence
- Adapter: CC BY-NC 4.0, following the training data.
- Base model: its own licence applies.
- Downloads last month
- 4
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for yzk/paddleocr-vl-vedic-lora
Base model
PaddlePaddle/PaddleOCR-VL-1.6