# Error: Could Not Load Model

**URL:** <https://discuss.huggingface.co/t/error-could-not-load-model/15362>\
**Category:** Amazon SageMaker\
**Created:** [March 4, 2022, 3:51pm UTC](https://discuss.huggingface.co/t/error-could-not-load-model/15362 "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](https://discuss.huggingface.co/u/dbb)\
**Post date:** [March 10, 2022, 11:08am UTC](https://discuss.huggingface.co/t/error-could-not-load-model/15362/3 "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](https://discuss.huggingface.co/t/how-to-create-model-in-sagemaker-console-from-tar-gz/14830/8):
>
> @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](https://discuss.huggingface.co/t/error-could-not-load-model/15362)._
