# Deploy from S3 failed

**URL:** <https://discuss.huggingface.co/t/deploy-from-s3-failed/52165>\
**Category:** Amazon SageMaker\
**Created:** [August 25, 2023, 1:24pm UTC](https://discuss.huggingface.co/t/deploy-from-s3-failed/52165 "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](https://discuss.huggingface.co/u/nickprock)\
**Post date:** [August 25, 2023, 1:24pm UTC](https://discuss.huggingface.co/t/deploy-from-s3-failed/52165/1 "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](https://discuss.huggingface.co/u/nickprock)\
**Post date:** [August 31, 2023, 10:30am UTC](https://discuss.huggingface.co/t/deploy-from-s3-failed/52165/2 "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](https://discuss.huggingface.co/u/DeadBeast)\
**Post date:** [July 20, 2024, 2:15am UTC](https://discuss.huggingface.co/t/deploy-from-s3-failed/52165/3 "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!
