-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
Do you need to file an issue?
- I have searched the existing issues and this feature is not already filed.
- My model is hosted on OpenAI or Azure. If not, please look at the "model providers" issue and don't file a new one here.
- I believe this is a legitimate feature request, not just a question. If this is a question, please use the Discussions area.
Is your feature request related to a problem? Please describe.
Hi,
I am using marker on a Windows machine in a corporate environment. When I run marker_single to convert a PDF, the tool tries to download the layout model from https://models.datalab.to/layout/2025_02_18/manifest.json, but fails with an SSL certificate verification error:
requests.exceptions.SSLError: HTTPSConnectionPool(host='models.datalab.to', port=443): Max retries exceeded with url: /layout/2025_02_18/manifest.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')))
I have tried setting the environment variable PYTHONHTTPSVERIFY=0, but the error persists.
There is currently no command-line option like --no-ssl-verify or --insecure to skip SSL verification for model downloads.
Describe the solution you'd like
Could you please add a --no-ssl-verify option (or similar) to marker, so that users in restricted or corporate environments can bypass SSL certificate verification when downloading required models?
This would be very helpful for users who cannot control their network’s certificate policies.
My questions:
Is there a way to manually download the required layout model files and place them in the correct cache directory to avoid this SSL issue?
Is there an official or alternative download link for the Surya layout model files?
Can marker be configured to only use local models (like Ollama) and skip downloading any remote models?
thanks alot
Additional context
My environment:
Windows 11
Python 3.10
marker installed from GitHub
Corporate network with strict SSL/CA policies
Thank you for your consideration!