Testing Alibaba Ovis-OCR2: Compact 0.8B Model for Document Parsing

VideoFahd MirzaDemo

Fahd Mirza tests Alibaba Ovis-OCR2, an open-source 0.8B document parsing model that outputs clean Markdown. Despite tiny hardware requirements, the end-to-end model outperforms traditional pipeline methods on major OCR benchmarks.
Playing loads YouTube (youtube-nocookie.com).

Key points

  1. Ovis-OCR2 is built on Qwen 3.5 0.8B and trained using SFT, reinforcement learning, and an OPD technique.
  2. The training relies on a dual-pipeline data engine combining real-world scanned documents with synthetic HTML templates rendered via Playwright.
  3. According to benchmark data, it tops OmniDocBench and PureDocBench, outperforming multi-stage pipeline methods across text accuracy, tables, and reading order.
  4. Running locally via Gradio, the model uses under 2 GB of VRAM, making it suitable for deployment on standard CPUs.
  5. Demonstrations show accurate parsing of handwritten letters, physics formulas, dense historical newspapers, forms, and multi-page tabular PDFs.
  6. Language coverage is limited: an attempt with Russian text looped and failed, confirming primary optimisation for English and Chinese.

Why it matters

Document parsing traditionally relies on complex, chained OCR and layout-analysis pipelines. Ovis-OCR2 shows that a tiny 0.8B end-to-end model can match or exceed pipeline accuracy while running locally on minimal compute resources.

Analysis

The 0.8B footprint is particularly attractive for privacy-conscious edge setups or high-throughput batch parsing where larger vision models are cost-prohibitive. Its ability to output clean Markdown tables and LaTeX directly from raw images resolves a major bottleneck in RAG ingestion pipelines, provided the target documents are in English or Chinese.

Transcript

Show the full transcript (1,655 words)
Alibaba just open sourced Ovis-OCR2, a tiny but ridiculously powerful document parsing model that punches so well above its weight that it's almost unfair. At just 0.8 billion parameters, this little model takes any document page you throw at it, whether it's packed with complex tables, nasty LaTeX formulas, dense paragraphs, or embedded images and spits out clean, structured Markdown in natural reading order. This model has been built on top of Qwen 3.5 0.8 billion and trained through carefully engineered multistage recipe, combining supervised fine-tuning, reinforcement learning, and a technique called as OPD, which I will describe shortly. This Ovis-OCR2 isn't just another OCR model, if you go through its whole technical report, it's a full end-to-end document intelligence engine that fits anywhere. This is Fahd Mirza and I welcome you to the channel. You can see that we have been covering these Ovis models for quite some time. Let's get right into it, we will install it and then we are going to test it out. I'm going to use this Ubuntu system. I have one GPU card, an NVIDIA RTX A6000 with 48 GB of VRAM. If you're looking to rent a GPU on very good price, you can find the link to Massed Compute with a discount coupon code of 50% for range of GPUs. Also, I have recently started this free weekly AI newsletter, which you can subscribe at fahdmirza.substack.com. What I have done here is, I have gone into their model card, grabbed this code and put a Gradio interface on top of it. So, this is what I'm going to run and I will drop the link to it in video's description. The model card you can also check it out. Let me run this script, which is going to download the model first. The model is being downloaded. It's a small model, as you can see, not really that huge. So, the Gradio demo is running, let me open it in the browser. And this is what it looks like. Let me quickly show you the VRAM consumption. There you go, so just under 2 GB of VRAM, you can easily run it on your own CPU. Okay, so let me upload an image just to convert it into structured Markdown and render it. I'm just going to select something from my local system. So first, let's do this handwritten letter and I am just going to run an OCR on top of it. It is working through it. There is only one page, there you go. So if we check it out, I think so far so good. Even the punctuation marks are there. I'm quickly go through it as I speak. Yep, looks pretty good to me. What do you think? Even the brackets are there. And this is the Markdown. Yeah, looks pretty good, again. Okay, so handwritten looks good. Let's do another one. Let's click on replace. And I'm just going to go with some physics equation, again, handwritten. Let's see if it is able to do that. The speed is quite good as you can already see. Fairly good. And you see the demo is already, you know, fixing it. I'm just very closely checking it out. Let me let it finish and then I will check and let you know. OCR is done and as far as I can see, it has done fairly good. You see even this M bound system, it was able to do it. You see even this, you know, postscript and also all of these indentations are there. Really good. There were even some, you know, different signs in maths and it was able to do that. Let's check the Markdown even better. There you go. Really good stuff. Okay, let's do another one. So I'm just going to do a quick multilingual. Maybe I'll just pick up this Russian and see if it is able to do that Russian one or not. So it is doing something. If you are from Russia, please let us know. This looks, I think it is just repeating it. Doesn't seem like it is multilingual. You see it is just simply repeating it. Okay, I will just stop this and do another one. And I think it is just bilingual English and Chinese. But anyway, let's try out this form. And should be fun to see. There you go, so text frame. And then even this question mark and this axis here. And then it is checking out all the fields and even the text from the fields. Yep, looks pretty good and these buttons are also there. Add help test, that is there. And this is our Markdown. Fairly good. Let's check out this very old newspaper, from New Zealand. I think this is from quite old, I guess. So, there you go. So it has started doing that, you see the even this one, I'll just make it bit bigger, you see. Makes money, money and it has really extracted that, it was quite tiny font. The model quality is really good. I'm just going to scroll here. And I think it is doing fairly well here, really good. I think this is a very good quality model, I just remember the size is very small. And while it generates, let me show you a very interesting bit. Look at this diagram. This tells you the architectural story, which is quite clever. They have built a dual pipeline data engine. One side processes real-world document images through specialized OCR tools, converts them to Markdown via rule-based parsing, and manually quality checks the result. The other side runs the synthetic pipeline, where hard failure cases are mined, fed into multimodal LLM to generate HTML templates diversified by an agent, rendered by playwright, and then paired back as image text training examples with iterative quality control at every step. Both streams feed into a single high-quality training corpus. It's the kind of obsessive data engineering that separates models that benchmark well from models that actually work, and as far as benchmarks are concerned, they are quite wild, I would say. This model doesn't just compete with the giants, it even tops the OmniDocBench leaderboard outright, becoming the first end-to-end model to ever beat the pipeline-based models that previously dominated it across every single dimensions, like text accuracy, formula recognition, table parsing, and reading order. It either leads the pack or sits right at the very top, beating models many times its size, including heavy hitters from Google, Alibaba itself, and various specialized OCR pipelines. For example, on PureDocBench, it claims the highest average score there too. I think this is quite rare, where small doesn't mean compromised, it means efficient, deployable, and quite state-of-the-art, as we are just looking at this result. So huge. Even all the visual regions are there, and then it has extracted it very, very well. Very impressive. Okay, let's do another one. So I'm just checking out this invoice, which has some tabular data, some numbers. Um, so let's see how it goes. So far so good as you can see. The things which we have done already, I think this seems like a trivial task for this. But the table recognition, rows, columns, I think that intelligence is there. There you go. So it is generating fairly good. What happened there? It is still parsing it, there you go. It takes bit of a time, I think the pipeline which we were discussing, it was going through it and going back and forth. And it has completed that table, all the rows are there, and the whole dataset is also there. This one, it was, I think it would look better in the Markdown. There you go. The whole Markdown is there. Fairly good. Let's do maybe a spreadsheet maybe, which are this one is better. Let's do this table one. I think this is even simpler than the previous one. There you go. I just want to check out how exactly it goes with this column. There you go. Yeah, doing pretty well. So you can see that so far, the results are flawless, really good stuff. So, it can even just put the placeholders here and really good. Okay, let me show you maybe a PDF file. And just to change the flavor, I am just going to go with this PDF, and going with the Chinese. There you go. Chinese is even faster. So maybe it's a native language. And I'll just make it bit bigger so that you can also see. By just visually looking at it, I think it has done really good. All the numbers are there, the Chinese characters are there. Of course, I mean, I can't be certain there, but if you are Chinese native speaker or just let us know in the comments, please, what do you think? So far, I think it has done really, really good. And it works with multipage. This is a multipage one and you can see that already. It is doing it page by page. And this is the Markdown if you are wondering. And it has moved on to the page 2. Finally, let's do a quick one on the chart. Let's try this one. And should be fun to see if it is able to get these numbers with percentages. Yep, the numbers are there and even percentages are there. And you can see that document is 5.9, but it has gone with 5.1. 4.9, which was OCR, so OCR and this, this order is not there, but I think it is just going line by line like this, and this is the Markdown. So look, very impressive. Let me know what do you think about this model. If you want to help out the channel, please become a member. Thank you for all the support.

Links and tools from this entry

Summary generated by AI (Gemini 3.8 Flash, 27 September 2026). It may contain errors – the original source is authoritative.

Similar in content, found by the AI search.

  • Link:ATH-MaaS

    OvisOCR2: Compact 0.8B End-to-End Model for Document Parsing

    ATH-MaaS has released OvisOCR2, a lightweight 0.8-billion parameter multimodal model designed for page-level document parsing. Built on Qwen3.5-0.8B, it converts document page images directly into Markdown containing tables, LaTeX formulas, and visual bounding boxes.

    AI & LLMs· Tool

  • Link:docling.ai

    Docling: Open-Source Document Intelligence for AI and RAG

    Docling is an open-source tool hosted by LF AI & Data that converts complex documents like PDFs, Office files, and images into structured data for AI applications. It operates locally and fully offline, preserves layouts and table structures, and provides interfaces for Python, CLI, REST APIs, and MCP.

    AI & LLMs· Tool

  • Repository:docling-project/docling

    Docling: Document Parsing for Generative AI

    Docling is an open-source Python tool designed to parse documents across multiple formats—such as PDF, office files, audio, and HTML—to prepare them for generative AI workflows.

    66kstarsPython

    AI & LLMs· Tool

Let's talk about your project

Locations

  • Mattersburg
    Johann Nepomuk Bergerstraße 7/2/14
    7210 Mattersburg, Austria
  • Vienna
    Ungargasse 64-66/3/404
    1030 Wien, Austria

Parts of this content were created with the assistance of AI.