Make extra models available in Docling Serve
mainThe standard Docling Serve container image includes only default models. If you enable features like picture classification, table detection, or vision-language modules, you must provide the required models. Docling Serve will not download missing models automatically at runtime; it will instead raise a runtime error to prevent unexpected external network calls.
There are four primary approaches to providing these models:
- Disable Local Models (Auto-Download): Clear the artifacts path to trigger a download at startup. Best for local development, not recommended for production.
- Build a Custom Image: Use a
Dockerfileto download models during the image build process. Best for production stability. - Override Entrypoint: Use a shell command to download models immediately before starting the service. Useful for keeping the base image unchanged.
- Mount a Volume: Download models to a local directory and mount that directory into the container. This is robust for both local and production use.