0

Document Parsing using DeepSeek-OCR/DeepSeek-OCR-2 and OpenVINO

More details can be found in the paper, original repository and model card.

Example · مثال

Content

Document Parsing using DeepSeek-OCR/DeepSeek-OCR-2 and OpenVINO

DeepSeek-OCR-2

DeepSeek-OCR-2 is an advanced vision-language model (VLM) designed for efficient and accurate document understanding and optical character recognition (OCR). Building upon the success of DeepSeek-OCR, version 2 introduces enhanced capabilities with a deep vision encoder and a mixture-of-experts decoder architecture. DeepSeek-OCR-2 employs innovative vision-text compression techniques to maintain high accuracy while ensuring manageable computational requirements for processing high-resolution documents.

More details can be found in the paper, original repository and model card.

DeepSeek-OCR

DeepSeek-OCR is a VLM designed as a preliminary proof-of-concept for efficient vision-text compression. DeepSeek-OCR consists of two components: DeepEncoder and DeepSeek3B-MoE-A570M as the decoder. Specifically, DeepEncoder serves as the core engine, designed to maintain low activations under high-resolution input while achieving high compression ratios to ensure an optimal and manageable number of vision tokens.

More details can be found in the paper, original repository and model card.

---

In this tutorial we consider how to convert and run DeepSeek-OCR models using OpenVINO and optimize it using NNCF.

Notebook contents

The tutorial consists from following steps:

  • Install requirements
  • Convert and Optimize model
  • Run OpenVINO model inference
  • Launch Interactive demo

In this demonstration, you'll create interactive chatbot that can answer questions about provided image's content.

Installation instructions

This is a self-contained example that relies solely on its own code.</br> We recommend running the notebook in a virtual environment. You only need a Jupyter server to start. For details, please refer to [Installation Guide](../../README.md).

⚠️ EXPERIMENTAL NOTEBOOK

This notebook demonstrates a model that has not been fully validated with OpenVINO. It may be fully supported and validated in the future.

Source and license

Source
Intel OpenVINO Notebooks
Original
openvinotoolkit/openvino_notebooks/notebooks/deepseek-ocr
License
Apache-2.0