Docling deployment CPU only in AWS Lambda (python 3.12) #1134
-
Has anyone tried deploying Docling as an AWS Lambda via docker? Would appreciate the help with this. I'm having issues with easyOCR, see error below. I can provide more details if needed, just having a hard time with setting model paths for docling and easyOCR.
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 10 replies
-
I got this to work with tessaract and easyOCR via docker. Taking a look at docling-serve helped out a lot here if anyone is wondering. |
Beta Was this translation helpful? Give feedback.
-
this will solve your problem, you must be using ecr image for lambda os.environ["HF_HOME"] = "/tmp/huggingface" |
Beta Was this translation helpful? Give feedback.
-
Hey Follow this repo
https://github.com/nikhilkudavemnh/aws-serverless-docling
…________________________________
From: Daniel Theisen ***@***.***>
Sent: 21 May 2025 23:57
To: docling-project/docling ***@***.***>
Cc: Nikhil Kudave ***@***.***>; Comment ***@***.***>
Subject: Re: [docling-project/docling] Docling deployment CPU only in AWS Lambda (python 3.12) (Discussion #1134)
Hi,
could you give some more details what you have done?
Did you just added this three env-variables ?
Have you specified anything in the pipeline_options? Like model_storage_directory
When I just add these three lines I still get the same error. I added this in the main.py which includes the code and build a docker image with the code and dependencies and upload them to ECR.
—
Reply to this email directly, view it on GitHub<#1134 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A3MWJCAWYRPATHLCDV5PR5D27TAPZAVCNFSM6AAAAABYSFBSROVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGMRSGM3DENA>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
https://github.com/nikhilkudavemnh/aws-serverless-docling This repo demonstrates how to deploy it on AWS Lambda an ECR image. |
Beta Was this translation helpful? Give feedback.
I got this to work with tessaract and easyOCR via docker. Taking a look at docling-serve helped out a lot here if anyone is wondering.