Skip to content
ModelListedExternal

Arabic OCR DeepSeek OCR 2

This repository contains the bfloat16 merged version of the DeepSeek-OCR-2 (3B) Model, fine-tuned by loay for the specific task of performing high-precision Optical Character Recognition (OCR) and structural layout...

KindOtherBase modelunsloth/DeepSeek-OCR-2VersionRevision 3b27977Bgrade

Model source

Kind
Other
File size
6.31 GB
Base model
unsloth/DeepSeek-OCR-2
Version
vRevision 3b27977
Updated
Sep 18, 2026
Downloads
39
Source
Hugging Face

Source description

Arabic-OCR-DeepSeek-OCR-2-3B

This repository contains the bfloat16 merged version of the DeepSeek-OCR-2 (3B) Model, fine-tuned by loay for the specific task of performing high-precision Optical Character Recognition (OCR) and structural layout analysis on Arabic text from images.

The model was created by fine-tuning the unsloth/DeepSeek-OCR-2 model using LoRA adapters. The high-performance training was made possible by the Unsloth library, and the adapters were then merged back into the base model for easy deployment.

Model Details

  • Fine-tuned by: loay
  • Base Model: unsloth/DeepSeek-OCR-2
  • Fine-tuning Task: Arabic Optical Character Recognition, specialized for the "Free OCR" instruction.
  • Training Data: The model was trained on a high-quality dataset of 35,921 images of real Arabic scanned books and their corresponding structured transcriptions, generated using Gemini 2 Flash.
  • Hardware & Performance: Training was conducted on an NVIDIA H100 (80GB VRAM) leveraging native bfloat16 precision and Flash Attention 2 for optimal quality and speed.
  • LoRA Configuration: High-capacity adaptation was achieved using a rank of r=64 and lora_alpha=128. The targeted modules include ["q_proj", "k_proj", "v_proj", "o_proj", "gate_proj", "up_proj", "down_proj"].
  • Vision Strategy: The model utilizes high-resolution dynamic multi-patch cropping (crop_mode=True) to handle varying large page sizes correctly without downscaling text artifacts.
  • Output Format: This is a native bfloat16 precision model.

Sources

1 source
Hugging FacePrimaryVersion 3b279774135bf21835e2bfe6071663f5da227e1c
huggingface.co/loay/Arabic-OCR-DeepSeek-OCR-2/tree/3b279774135bf21835e2bfe6071663f5da227e1c

Verified Sep 3

Model artifacts

1 artifact

model-00001-of-000001.safetensors

safetensors · 6.31 GB · SHA-256 4309dcadddb8…5a83 · Hugging Face

Download shard

Source excerpts

2 excerpts

--- license: apache-2.0 language: - en - ar library_name: transformers tags: - unsloth - deepseek - deepseek-ocr - arabic - ocr - vision - text-extraction - merged - lora pipeline_tag: image-to-text base_model: unsloth/DeepSeek-OCR-2 --- # Arabic-OCR-DeepSeek-OCR-2-3B This repository contains the `bfloat16` merged version of the DeepSeek-OCR-2 (3B) Model, fine-tuned by **loay** for the specific task of performing high-precision Optical Character Recognition (OCR) and structural layout analysis on Arabic text from images. The model was created by fine-tuning the `unsloth/DeepSeek-OCR-2` model using LoRA adapters. The high-performance training was made possible by the **Unsloth** library, and the adapters were then merged back into the base model for easy deployment. ## Model Details - **Fine-tuned by:** [loay](https://huggingface.co/loay) - **Base Model:** `unsloth/DeepSeek-OCR-2` - **Fine-tuning Task:** Arabic Optical Character Recognition, specialized for the **"Free OCR"** instruction. - **Training Data:** The model was trained on a high-quality dataset of 35,921 images of real Arabic scanned books and their corresponding structured transcriptions, generated using Gemini 2 Flash. - **Hardware & Performance:** Training was conducted on an NVIDIA H100 (80GB VRAM) leveraging native `bfloat16` precision and Flash Attention 2 for optimal quality and speed. - **LoRA Configuration:** High-capacity adaptation was achieved using a rank of `r=64` and `lora_alpha=128`. The targeted modules include `["q_proj", "k_proj", "v_proj", "o_proj", "gate_proj", "up_proj", "down_proj"]`. - **Vision Strategy:** The model utilizes high-resolution dynamic multi-patch cropping (`crop_mode=True`) to handle varying large page sizes correctly without downscaling text artifacts. - **Output Format:** This is a native `bfloat16` precision model.

Source context: 39 downloads · 0 likes · Pipeline image-to-text · Library transformers · Repo loay/Arabic-OCR-DeepSeek-OCR-2