Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Conversation

@gwenzek
Copy link
Contributor

@gwenzek gwenzek commented Jun 9, 2021

For me uploading models using the request API doesn't work. I think this may be related to the size of the models.
Using Curl instead works fine

Here is the log that I see when trying to upload a big model:

Config file validated
Tarballing the project directory...
Uploading file to S3...
Failed to submit model due to: 400 Client Error: Bad Request for url: http://0.0.0.0:8081/models/upload/s3
You can inspect your model submission locally at mm100-175m-gpu.tar.gz

I'd be curious to see if there is a better solution. In particular the curl version doesn't handle 429 errors anymore.

Conflicts:
dynalab_cli/upload.py

Regression: this is not handling 429 anymore
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 9, 2021
auth_header = AccessToken().get_headers()["Authorization"]
res = subprocess.check_output(
[
"curl",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we just assume everyone has curl installed?

@mazhiyi
Copy link
Contributor

mazhiyi commented Jun 14, 2021

Did you see the same issue with prod server (or flores dev server), or just in local testing?

@mazhiyi
Copy link
Contributor

mazhiyi commented Jun 28, 2021

#92 should fix the issue both for locally test upload, and uploading large files, using requests.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants