pip install vllm
python -m vllm.entrypoints.openai.api_server \
--model /path/to/dots-ocr-model \
--dtype auto \
--port 8000 \
--trust-remote-codeDOTS_OCR_BASE_URL=http://localhost:8000/v1DOTS_OCR_MODEL_NAME=/modelDOTS_OCR_API_KEY=dummy# vLLM usually does not validate key
curl http://localhost:8000/v1/models | jqOCR config will read the variables from .env via documentor/core/load_env.py automatically.
- Dockerfile: Dockerfile.dotsocr
- Docker Compose: compose.yml
- Entrypoint script: entrypoint.sh
You can install models from Hugging Face.