# Deploy from S3 failed

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdeploy-from-s3-failed%2F52165%3E%5C
**Category:** Amazon SageMaker\
**Created:** [August 25, 2023, 1:24pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdeploy-from-s3-failed%2F52165 "2023-08-25T13:24:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickprock](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nickprock/32/15532_2.png) [@nickprock](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fnickprock)%5C
**Post date:** [August 25, 2023, 1:24pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdeploy-from-s3-failed%2F52165%2F1 "2023-08-25T13:24:15Z")

</div>

Hi I tried to deploy a new version about my SetFit model to AWS from S3.  
My file model.tar.gz contains the config.json, the deploy is ok but when i call the predict function I have this error  
“/opt/ml/model does not appear to have a file named config.json. …”  
Has anyone had my same problem?  
Thanks

---

<div class="post-metadata">

**Author:** ![nickprock](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nickprock/32/15532_2.png) [@nickprock](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fnickprock)%5C
**Post date:** [August 31, 2023, 10:30am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdeploy-from-s3-failed%2F52165%2F2 "2023-08-31T10:30:51Z")

</div>

I solved my problem.  
When I create the .tar.gz file i compress the model folder, instead I have to directly compress the files inside.

---

<div class="post-metadata">

**Author:** ![DeadBeast](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/deadbeast/32/29623_2.png) [@DeadBeast](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FDeadBeast)%5C
**Post date:** [July 20, 2024, 2:15am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdeploy-from-s3-failed%2F52165%2F3 "2024-07-20T02:15:39Z")

</div>

@nickprock can tou please share the command on how to generate the tar for this, I am also getting same error while deploying through Sg endpoints.Thanks!
