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

use curl for uploading models#79

Open
gwenzek wants to merge 1 commit into
mainfrom
curl_for_upload
Open

use curl for uploading models#79
gwenzek wants to merge 1 commit into
mainfrom
curl_for_upload

Conversation

@gwenzek

@gwenzek gwenzek commented Jun 9, 2021

Copy link
Copy Markdown
Contributor

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
Comment thread dynalab_cli/upload.py
auth_header = AccessToken().get_headers()["Authorization"]
res = subprocess.check_output(
[
"curl",

Copy link
Copy Markdown

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

mazhiyi commented Jun 14, 2021

Copy link
Copy Markdown

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

@mazhiyi

mazhiyi commented Jun 28, 2021

Copy link
Copy Markdown

#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.

4 participants