Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding aistore datapipe #545

Closed
wants to merge 1 commit into from

Conversation

gaikwadabhishek
Copy link
Contributor

@gaikwadabhishek gaikwadabhishek commented Jun 24, 2022

Fixes #{517}

Changes

  • Added aisio.py (Iterable Datapipe for AIStore backends)
  • Added unit tests in test/test_local_io.py test/test_aistore.py
  • Added GitHub action for running AIStore in CI.yml .github/aistore_ci.yml workflow

Questions to maintainers

  • We are unsure about the documentation generated on PyTorch to refer it in README.md, so I have tentatively added a URL similar to s3io functions. (see torchdata/datapipes/iter/load/README.md)

Signed-off-by: Abhishek Gaikwad [email protected]

@facebook-github-bot
Copy link
Contributor

Hi @gaikwadabhishek!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

.github/workflows/ci.yml Outdated Show resolved Hide resolved
test/test_local_io.py Outdated Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
Copy link
Contributor

@NivekT NivekT left a comment

Choose a reason for hiding this comment

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

This PR mostly looks good to me. I will let @ejguan comment on the proper CI setup.

Question: Are there AWS/GCP/Azure remote setups that your library currently test against for every build? We might want to something similar here for different DataPipes (not just aistore).

@gaikwadabhishek
Copy link
Contributor Author

Question: Are there AWS/GCP/Azure remote setups that your library currently test against for every build? We might want to something similar here for different DataPipes (not just aistore).

Hi @NivekT
Yes, we are testing on AWS, GCP, HDFS, and K8s on GitLab pipeline. It's pretty straightforward for us as AIStore uses existing backend connectors, we just have to provide the credentials for the cloud providers for the test.
Reference: https://github.com/NVIDIA/aistore/blob/master/.gitlab-ci.yml#L200

@msaroufim
Copy link
Member

msaroufim commented Jun 28, 2022

This PR mostly looks good to me. I will let @ejguan comment on the proper CI setup.

Question: Are there AWS/GCP/Azure remote setups that your library currently test against for every build? We might want to something similar here for different DataPipes (not just aistore).

Let's talk about this offline more @NivekT I was thinking of something similar for benchmarks where I can setup some machine configuration an instance type with some specific configuration for example HDD vs SSD and then run a benchmark script directly on it. There's a few options like ray up, cloudformation, ec2 launch, eks, teraform and I'm in the process of figuring out what's most convenient. In your case is the multi cloud requirement a must? I can send you a POC offline.

Copy link
Contributor

@ejguan ejguan left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution. Generally looks good to me. And, could you please sign the CLA before we can merge the PR?

.github/workflows/aistore_ci.yml Outdated Show resolved Hide resolved
.github/workflows/aistore_ci.yml Outdated Show resolved Hide resolved
test/test_aistore.py Outdated Show resolved Hide resolved
test/test_aistore.py Show resolved Hide resolved
torchdata/datapipes/iter/load/aisio.py Outdated Show resolved Hide resolved
torchdata/datapipes/iter/load/aisio.py Outdated Show resolved Hide resolved
@gaikwadabhishek
Copy link
Contributor Author

Thank you for your contribution. Generally looks good to me. And, could you please sign the CLA before we can merge the PR?

Hi @ejguan @NivekT
I am still waiting for my FB CLA to be approved. I work for NVIDIA and I've been added to the corporate CLA by my employer. We are waiting for the changes to reflect here. We have also mailed to [email protected] regarding this and are waiting for their reply.

@gaikwadabhishek
Copy link
Contributor Author

@ejguan fixed the mypi.ini configuration to ignore the missing import of aistore.. Can you please retrigger the workflow

@ejguan
Copy link
Contributor

ejguan commented Jun 28, 2022

FYI: The failures from TorchVision CI are unrelated to your PR.

@msaroufim
Copy link
Member

@gaikwadabhishek your CLA application should have been approved just retrigger CI with an empty commit and the Facebook CLA check should pass

Signed-off-by: Abhishek Gaikwad <[email protected]>
@msaroufim
Copy link
Member

@zpao as FYI looks like CLA Check is still red

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@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 Jul 1, 2022
@gaikwadabhishek
Copy link
Contributor Author

Hi @ejguan @NivekT @msaroufim,
Thanks for your support.
CLA is approved now. Can we merge this?

@msaroufim msaroufim self-requested a review July 4, 2022 23:26
@facebook-github-bot
Copy link
Contributor

@msaroufim has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.

6 participants