npx skills add ...
npx skills add reason-machines/trending-skills --skill deepseek-ocr
Expert skill for using DeepSeek-OCR, a vision-language model for optical character recognition with context optical compression supporting documents, PDFs, and images.
npx skills add reason-machines/trending-skills --skill deepseek-ocr
Skill by ara.so — Daily 2026 Skills collection.
DeepSeek-OCR is a vision-language model for Optical Character Recognition with "Contexts Optical Compression." It supports native and dynamic resolutions, multiple prompt modes (document-to-markdown, free OCR, figure parsing, grounding), and can be run via vLLM (high-throughput) or HuggingFace Transformers. It processes images and PDFs, outputting structured text or markdown.
Model is available on HuggingFace: deepseek-ai/DeepSeek-OCR
| Use Case | Prompt |
|---|---|
| Document → Markdown | `[Image blocked: No description]\n< |
| General OCR | `[Image blocked: No description]\n< |
| Free OCR (no layout) | <image>\nFree OCR. |
| Parse figure/chart | <image>\nParse the figure. |
| General description | <image>\nDescribe this image in detail. |
| Grounded REC | <image>\nLocate <|ref|>TARGET_TEXT<|/ref|> in the image. |
| Mode | Resolution | Vision Tokens |
|---|---|---|
| Tiny | 512×512 | 64 |
| Small | 640×640 | 100 |
| Base | 1024×1024 | 256 |
| Large | 1280×1280 | 400 |
| Gundam (dynamic) | n×640×640 + 1×1024×1024 | variable |
Edit DeepSeek-OCR-master/DeepSeek-OCR-vllm/config.py:
transformers version conflict with vLLMvLLM 0.8.5 requires transformers>=4.51.1 — if running both in the same env, this error is safe to ignore per the project docs.
base_size=512 or base_size=640crop_mode=False to avoid multi-crop dynamic resolutionEnsure NGramPerReqLogitsProcessor is passed to LLM — this is required for proper decoding:
Add table token IDs to the whitelist: