# 429 client error when uploading large models (65B)

**URL:** <https://discuss.huggingface.co/t/429-client-error-when-uploading-large-models-65b/76046>\
**Category:** Models\
**Created:** [March 5, 2024, 4:28pm UTC](https://discuss.huggingface.co/t/429-client-error-when-uploading-large-models-65b/76046 "2024-03-05T16:28:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yukiontheiceberg](https://avatars.discourse-cdn.com/v4/letter/y/e5b9ba/32.png) [@yukiontheiceberg](https://discuss.huggingface.co/u/yukiontheiceberg)\
**Post date:** [March 5, 2024, 4:28pm UTC](https://discuss.huggingface.co/t/429-client-error-when-uploading-large-models-65b/76046/1 "2024-03-05T16:28:04Z")

</div>

Hi guys, I’ve been trying to upload 65b models using huggingface\_hub’s API (upload\_folder). I plan to upload different stages of checkpoints to different branches. I successfully uploaded to a few branches but started to fail and here’s the error message:  
raise HTTPError(http\_error\_msg, response=self)  
requests.exceptions.HTTPError: 429 Client Error: Too Many Requests for url: [https://huggingface.co/api/complete\_multipart?uploadId=5BrbWlZ7XvfMEvePpHubm255Af8U6zOOs9cbHrTbR0sla2pl0O\_NQSiK87ge2K1pHGX1SuA8Q0MsQLyW25WA5xHXCwRftC4xrTKFiLUCu4iLxQWYz7A.CmEQdylXhuLn&bucket=hf-hub-lfs-us-east-1&prefix=repos%2F9e%2Fa6%2F9ea61a7c40e45d7749c396716d3ae182516ee10decd7eb7b7fbcd922fe6f6245&expiration=Tue%2C+05+Mar+2024+21%3A18%3A17+GMT&signature=7830b619b655aa29bf0f7d955cbe67f75daddefb5876d04cf9fb3393d6cdfcd8](https://huggingface.co/api/complete_multipart?uploadId=5BrbWlZ7XvfMEvePpHubm255Af8U6zOOs9cbHrTbR0sla2pl0O_NQSiK87ge2K1pHGX1SuA8Q0MsQLyW25WA5xHXCwRftC4xrTKFiLUCu4iLxQWYz7A.CmEQdylXhuLn&bucket=hf-hub-lfs-us-east-1&prefix=repos%2F9e%2Fa6%2F9ea61a7c40e45d7749c396716d3ae182516ee10decd7eb7b7fbcd922fe6f6245&expiration=Tue%2C+05+Mar+2024+21%3A18%3A17+GMT&signature=7830b619b655aa29bf0f7d955cbe67f75daddefb5876d04cf9fb3393d6cdfcd8)

here’s how I use the api:  
api.upload\_folder(  
folder\_path=…,  
repo\_id=…,  
repo\_type=“model”,  
revision=…,  
)  
I also tried to set multi\_commits=True, but it only works with main branch. Any suggestion on how to work around this? Thanks in advance!
