Deepseek ocr 2 amd 64 ready to deploy image- POST /ocr/image POST ocr/pdf GET /health
2.8K
DeepSeek-OCR-2-Dockerized A high-performance, containerized OCR service based on DeepSeek-OCR 2. This image uses the vLLM backend for ultra-fast inference and provides a simple FastAPI interface to process images and PDFs.
Gundam mode (dynamic resolutions).docker run --gpus all \
-p 8000:8000 \
-e MAX_CONCURRENCY=5 \
-e GPU_MEMORY_UTILIZATION=0.9 \
shrey2003/deepseek-ocr2-dockerized:amd64
URL: /ocr/image
Method: POST
Payload: multipart/form-data
file: (Image binary)prompt: (Optional) e.g., <image>\n<|grounding|>Convert the document to markdown.URL: /ocr/pdf
Method: POST
Payload: multipart/form-data
file: (PDF binary)URL: /health
Method: GET
Convert Image to Markdown:
curl -X POST http://localhost:8000/ocr/image \
-F "[email protected]" \
-F "prompt=<image>\n<|grounding|>Convert the document to markdown."
Extract Text from PDF:
curl -X POST http://localhost:8000/ocr/pdf \
-F "[email protected]"
| Variable | Default | Description |
|---|---|---|
MODEL_PATH | /app/models/... | Path to the DeepSeek-OCR2 weights inside the container. |
MAX_CONCURRENCY | 5 | Maximum number of concurrent sequences the vLLM engine handles. |
GPU_MEMORY_UTILIZATION | 0.9 | Fraction of GPU memory for vLLM (0.0 - 1.0). |
This Dockerized API is released under the MIT License. The underlying DeepSeek-OCR 2 model weights are subject to DeepSeek's Model License.
Content type
Image
Digest
sha256:abb0419b5…
Size
13.6 GB
Last updated
9 months ago
docker pull shrey2003/deepseek-ocr2-dockerized:amd64