--- license: apache-2.0 base_model: Chhagan005/CSM-DocExtract-VL-HF pipeline_tag: image-text-to-text tags: - document-extraction - kyc - mrz-parsing - multilingual-ocr - vision-language-model - 4-bit - bitsandbytes - unsloth language: - en - ar - hi - ru - zh --- # 📄 CSM-DocExtract-VL (INT4 Quantized) **CSM-DocExtract-VL** is a highly optimized, multilingual Vision-Language Model (VLM) engineered specifically for **Identity Intelligence** automation. It transforms unstructured images of identity documents into clean, structured JSON data instantly. --- ## 💡 Overview (Layman Terms) Imagine having a digital assistant that can look at any identity document (Passport, ID card, Visa) from almost any country, read the text (even in Arabic, Hindi, Cyrillic, or Chinese), and instantly type out a perfectly structured JSON file. * **The Problem:** Manual data entry for KYC is slow, prone to human error, and expensive. * **The Solution:** This model acts as an ultra-fast, highly accurate data-entry expert that never sleeps. It natively understands both the **visual layout** of the card and the **textual languages**, bridging the gap seamlessly. --- ## ⚙️ Technical Specifications (For Engineers) This is the **4-bit NF4 quantized version** of our fine-tuned 8-Billion parameter Vision-Language Model, designed to run easily on consumer-grade hardware. * **Base Architecture**: Qwen3-VL-8B * **Training Framework**: Fine-tuned using `Unsloth` (2x faster training, lower VRAM) and `PyTorch`. * **Quantization**: `bitsandbytes` INT4 (NF4) with double quantization. This ensures zero accuracy loss while drastically reducing compute requirements. * **Adapters**: LoRA (Low-Rank Adaptation) applied to Vision, Language, Attention, and MLP modules (Rank=32). * **Context Window**: 1024 / 2048 Tokens. --- ## 🚀 Example Input & Output **Input Prompt:** *Extract information from this passport image and format it as JSON.* **Output Result:** ```json { "document_type": "Passport", "issuing_country": "IND", "full_name": "John Doe", "document_number": "Z1234567", "date_of_birth": "1990-01-01", "date_of_expiry": "2030-12-31", "mrz_data": { "line1": "P