--- library_name: transformers license: other license_name: ocria-1-license license_link: https://huggingface.co/llamaindex/OCRia-1/blob/main/LICENSE language: - en tags: - mtp - text-generation-inference - speculative-decoding - ocr - pdf - markdown - document-parsing - tables - charts - parsebench - MTP-Repacked base_model: - llamaindex/OCRia-1 pipeline_tag: image-text-to-text --- # **OCRia-1-MTP-Repacked** > **OCRia-1** is a 4B-parameter vision-language model developed by LlamaIndex on top of **Qwen3.5-4B** for high-fidelity single-page document parsing directly from page images without external OCR engines or text layers. Trained on 100,979 real and synthetic pages via supervised fine-tuning, GRPO reinforcement learning with verifiable dimension-specific rewards, and checkpoint averaging, it transcribes complex documents into structured Markdown—converting multi-level and merged-cell tables (`colspan`/`rowspan`) as well as plot charts into HTML `` elements, diagrams into Mermaid blocks, math and handwriting into LaTeX, and fine-grained formatting (strikethrough, underlines, highlights, checkboxes, page furniture, and watermarks) into semantic tags, with optional post-hoc visual grounding via `ocria_grounding`. Ranking as the top open-weight model on both **ParseBench 2** (85.24 overall across 4,317 pages) and **ParseBench 1** (84.65 overall across 2,078 pages, scoring 82.47 on charts), it is distributed in unoptimized BF16 weights (`10.35 GB`) for `vLLM`, `Transformers`, and `Ollama` under the custom **OCRia-1 Model and Code License** (free for research, personal use, and non-competing organizations under $2M in annual revenue and funding). > [!NOTE] > This repository contains the MTP-repackaged BF16 weights of OCRia-1 | The GGUF (MTP-supported) is available here — https://huggingface.co/prithivMLmods/OCRia-1-GGUF > [!NOTE] > For other inference setups, kindly refer to the original model card — https://huggingface.co/llamaindex/OCRia-1. It is recommended to follow the system message [prompt.txt](https://huggingface.co/llamaindex/OCRia-1/blob/main/prompt.txt) without providing any user text, with thinking turned off. ## MTP-Repacked [Transformers, BF16] | File Name | File Type | File Size | File Link | Description | |-----------|-----------|-----------|-----------|-------------| | chat_template.jinja | Jinja Template | 7.76 kB | [Link](https://huggingface.co/prithivMLmods/OCRia-1-MTP-Repacked/blob/main/chat_template.jinja) | Chat template for formatting conversations and prompts. | | config.json | JSON | 2.89 kB | [Link](https://huggingface.co/prithivMLmods/OCRia-1-MTP-Repacked/blob/main/config.json) | Core model architecture and configuration parameters. | | generation_config.json | JSON | 204 Bytes | [Link](https://huggingface.co/prithivMLmods/OCRia-1-MTP-Repacked/blob/main/generation_config.json) | Default text generation parameters (e.g., temperature, top_p). | | model.safetensors | Safetensors | 10.6 GB | [Link](https://huggingface.co/prithivMLmods/OCRia-1-MTP-Repacked/blob/main/model.safetensors) | Unsharded model weights. **Required** to load the model. | | processor_config.json | JSON | 1.3 kB | [Link](https://huggingface.co/prithivMLmods/OCRia-1-MTP-Repacked/blob/main/processor_config.json) | Configuration for the multimodal (vision/OCR) processor. | | tokenizer.json | JSON | 20 MB | [Link](https://huggingface.co/prithivMLmods/OCRia-1-MTP-Repacked/blob/main/tokenizer.json) | Complete tokenizer vocabulary and encoding rules. | | tokenizer_config.json | JSON | 1.1 kB | [Link](https://huggingface.co/prithivMLmods/OCRia-1-MTP-Repacked/blob/main/tokenizer_config.json) | Tokenizer-specific configuration parameters. | ## License and Attribution This model is based on and/or incorporates the following open-source projects and models: * **Qwen3.5-4B (Base):** [https://huggingface.co/Qwen/Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B) (licensed under the [Apache License 2.0](https://huggingface.co/Qwen/Qwen3.5-4B/blob/main/LICENSE)) * **OCRia-1:** [https://huggingface.co/llamaindex/OCRia-1](https://huggingface.co/llamaindex/OCRia-1) This model is released under the [ocria-1-license](https://huggingface.co/llamaindex/OCRia-1/blob/main/LICENSE).