# How to Create Model in SageMaker Console from .tar.gz

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-create-model-in-sagemaker-console-from-tar-gz%2F14830%3E%5C
**Category:** Amazon SageMaker\
**Created:** [February 17, 2022, 3:49pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-create-model-in-sagemaker-console-from-tar-gz%2F14830 "2022-02-17T15:49:57Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [February 25, 2022, 10:24am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-create-model-in-sagemaker-console-from-tar-gz%2F14830%2F5 "2022-02-25T10:24:17Z")

</div>

I spoke to AWS support and they told me that I should set the RAM of the container runtime to 3 GB. With 3GB assigned I the endpoint returns:

`{"ErrorCode":"INTERNAL_FAILURE_FROM_MODEL","LogStreamArn":null,"Message":"Received server error (0) from model with message \"Amazon SageMaker could not get a response from the gottbert-job-class-endpoint endpoint.\". .........`.

I checked the CloudWatchLogs and there I see:

`python: can't open file '/usr/local/bin/deep_learning_container.py': [Errno 13] Permission denied`

It seems that the issue is comparable to this discussion… ?

> [@Sagemaker Serverless Inference](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsagemaker-serverless-inference%2F13246)%3A
>
> Hi there, I have been trying to use the new serverless feature from Sagemaker Inference, following the different steps very well explained by @juliensimon in his video (using same Image for the container and same ServerlessConfig) to use an HuggingFace model (not fine-tuned on my side). However after having successfully created/deployed all resources (Model, EndpointConfig, Endpoint) and trying to invokeEndpoint, I encountered this error : 'Message': 'An exception occurred from internal depend…

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-create-model-in-sagemaker-console-from-tar-gz%2F14830)._
