There are quite few multimodal proxies and bridges already there (including mine) that turn text only models like V4 into a multimodal one.
however all use regular vlms to process multimodal info. I am curious has anyone worked with specialized image only vlms, like deepseek ocr2? It seems to a perfect match for the job and can be harnessed by the bridge/proxy.
Got this idea while looking for new implementations for metal that just dropped like crazy in last days.
# DeepSeek-OCR-2
DeepSeek-OCR-2 is a powerful OCR model based on the SAM + Qwen2 encoder architecture, optimized for document understanding, text extraction, and visual grounding tasks.
## Model Architecture
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Dynamic Resolution β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
Local Patches β 768Γ768 β SAM (12Γ12Γ896) β Qwen2 (144Γ896) β Proj (144Γ1280) β
(1-6 patches) β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
Global View β 1024Γ1024 β SAM (16Γ16Γ896) β Qwen2 (256Γ896) β Proj (256Γ1280)β
(1 image) β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
[local_patches, global_view, view_separator]
β
Language Model (DeepSeek-V2)
## Prompt Formats
### Document to Markdown
Convert a document image to structured markdown format:
<|grounding|>Convert the document to markdown.
```
General OCR
Extract all text from an image:
<image>
<|grounding|>OCR this image.
Free OCR (without layout)
Extract text without preserving layout structure:
<image>
Free OCR.
Parse Figures
Extract and describe figures/charts in documents:
<image>
Parse the figure.
Image Description
Get a detailed description of the image:
<image>
Describe this image in detail.
Text Localization (Grounding)
Locate specific text in the image and get bounding box coordinates:
<image>
Locate <|ref|>your text here<|/ref|> in the image.
Output format: <|/ref|><|det|>[[x1, y1, x2, y2]]<|/det|>
Coordinates are normalized to 0-1000 range.