CoolFace
Modelpublic

YUN657/Arabic-English-handwritten-OCR-Qwen3-VL-4B

sourceHugging Faceapache-2.0updated 6mo agoView on Hugging Face
0likes13downloads
Model Card

<p align="center"> <img src="d93f4651-06cd-4e4c-938e-fae97d6cd60c.png" width="400"/> <p>

<p align="center"> ๐Ÿ’œ <a href="https://github.com/sherif1313/"><b>Github</b></a>&nbsp&nbsp | &nbsp&nbsp๐Ÿค— <a href="https://huggingface.co/sherif1313/Arabic-English-handwritten-OCR-Qwen3-VL-4B">Hugging Face</a>&nbsp&nbsp | &nbsp&nbsp๐Ÿ“š <a href="https://github.com/sherif1313/Arabic-English-handwritten-OCR-v3/tree/main">Cookbooks</a>&nbsp&nbsp <br> ๐Ÿ–ฅ๏ธ <a href="https://huggingface.co/spaces/sherif1313/Arabic-English-handwritten-OCR">Demo</a>&nbsp&nbsp </a> </p>

Knowledge Transfer for Improved Arabic-English Handwritten OCR with Qwen3-VL

Note: This model is intended for research purposes only and is not recommended for production deployment without significant optimization and testing.

Overview

This model enhances Optical Character Recognition (OCR) for sherif1313/Arabic-English-handwritten-OCR-Qwen3-VL-4B texts with high accuracy. The model features successful knowledge transfer from previous versions sherif1313/Arabic-English-handwritten-OCR-v3, providing a strong foundation for further customized training.

๐Ÿ”„ Knowledge Transfer

๐Ÿ“Š Transfer Statistics

MetricValueInterpretation
Transfer Ratio95%Percentage of successfully transferred weights
Time Savings90%Compared to training from scratch
Eval Loss17%From 0.45 to 0.2982
Performance Impact-10%Lower than the old model
Processing Speed+400%Slower than the old model

### Key Features:

Knowledge transfer from Qwen2.5-VL model to Qwen3-VL Efficient adaptation using LoRA (Low-Rank Adaptation) technique Optimized for Arabic and English handwritten text recognition Scalable for additional OCR tasks

๐Ÿ› ๏ธ Layer Mapping

python

# Mapping model layers between versions
TARGET_MODULES_MAPPING = {
    "language_model.model.layers.{layer}.self_attn.q_proj": 
        "model.layers.{layer}.self_attn.q_proj",
    "language_model.model.layers.{layer}.self_attn.v_proj": 
        "model.layers.{layer}.self_attn.v_proj",
    "language_model.model.layers.{layer}.mlp.gate_proj": 
        "model.layers.{layer}.mlp.gate_proj",
    "language_model.model.layers.{layer}.mlp.up_proj": 
        "model.layers.{layer}.mlp.up_proj",
    "language_model.model.layers.{layer}.mlp.down_proj": 
        "model.layers.{layer}.mlp.down_proj"
}

Model Limitations###

Application Performance: 400% slower than previous version 10% lower accuracy in practical applications

WARNING: This model is for research only

  1. 1.โŒ Not designed for production use
  2. 2.โš ๏ธ Performance is lower than previous versions, but it's better for handwriting in English.
  3. 3.๐ŸŒ Very slow inference speed
  4. 4.๐Ÿ”ฌ For academic and research purposes only
  5. 5.๐Ÿ“š Case study in knowledge transfer between generations
Suggested Research Areas

Knowledge Transfer Optimization: Study impact of structural mismatch Develop automatic transfer tools Analyze information loss during transfer Performance Enhancement: Reduce inference time Increase accuracy on Arabic text Improve handling of diverse handwriting styles Task Expansion: Number and symbol recognition Multi-page document processing Support for additional languages

Support and Contribution

Reporting Issues

Open an Issue in the model repository Include: Error text Usage code Runtime environment Input examples

Contributing to Development

Contributions are welcome for:

Performance optimization Additional language support Documentation improvements Bug fixes

Models and Data

Qwen3-VL-4B-Instruct

  • โ€”Base model Arabic-English-handwritten-OCR-v3
  • โ€”Knowledge source PEFT
  • โ€”Efficient adaptation

๐Ÿท๏ธ Citation

If you use this model in your research or project, please cite:

python
@software{Arabic-English-handwritten-OCR,
  title={Arabic-English Handwritten OCR v3 (Qwen3-VL)},
  author={sherif1313},
  year={2026},
  url={https://huggingface.co/sherif1313/Arabic-English-handwritten-OCR-Qwen3-VL-4B}
}