Hasan Khan
Hasan Khan

Reputation: 37

"errorMessage": "[Errno 28] No space left on device" AWS-Lambda

I am executing my test configuration and this is the error I am facing. I have a trained model of size 327mb and layers of 250mb required for the inference of my Text To Speech trained model. So the size of model and layers might be the reason?? Please help me clarify and provide a solution. I am importing the trained model from s3 bucket and then loading it for the further processing.

Upvotes: 0

Views: 4069

Answers (1)

Jens
Jens

Reputation: 21510

AWS Lambdas local storage in /tmp is only 512MB. You are apparently exceeding this limit.

There are five solutions I can think of:

  1. Mount a EFS volume (which already contains your trained model) to the Lambda.
  2. Reduce the size of your model.
  3. Stream the model in chunks to your Lambda (might be hard).
  4. Not use Lambda (maybe just a plain EC2 or EKS).
  5. Use a Docker container that already contains your model as Lambda.

It is hard to tell what the best solution for you is, since so much information is missing. But those solutions should give you a good starting point.

Upvotes: 1

Related Questions