# Error: Could Not Load Model

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-could-not-load-model%2F15362%3E%5C
**Category:** Amazon SageMaker\
**Created:** [March 4, 2022, 3:51pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-could-not-load-model%2F15362 "2022-03-04T15:51:07Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dbb](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/dbb/32/19757_2.png) [@dbb](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fdbb)%5C
**Post date:** [March 10, 2022, 11:08am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-could-not-load-model%2F15362%2F3 "2022-03-10T11:08:55Z")

</div>

@dbounds , I had a call with AWS support a few minutes ago and we rebuild the whole config via the console. I created a little manual here:

> [@How to Create Model in SageMaker Console from .tar.gz](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-create-model-in-sagemaker-console-from-tar-gz%2F14830%2F8)%3A
>
> @philschmid @YannAgora , thanks for your help! I just want to give you a short update regarding the case and maybe the following is also relevant for everyone who encounters the problem or wants to set up serverless inference via the SageMaker console slight_smile TL;DR Endpoint returns prediction BUT error still visible in logs python: can't open file '/usr/local/bin/deep\_learning\_container.py': [Errno 13] Permission denied Re-build the endpoint configuration with max. ram (6GB) magically…

maybe you can give it a try?

Best,  
David

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-could-not-load-model%2F15362)._
