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

Add support for Alipan Storage backend #651

Merged
merged 8 commits into from
May 10, 2024

Conversation

PeterDing
Copy link
Contributor

@PeterDing PeterDing commented Apr 12, 2024

Add support to access Alipan Storage.

Description of changes:

  • Add download_from_alipan function and AlipanUploader class

  • Add tests for both download and upload

  • Add docs for configure Alipan Storage Credentials

  • Add AliPCS-Py to setup.py as extra dependence

Issue #, if available:

Merge Checklist:

Put an x without space in the boxes that apply. If you are unsure about any checklist, please don't hesitate to ask. We are here to help! This is simply a reminder of what we are going to look for before merging your pull request.

General

  • I have read the contributor guidelines
  • This is a documentation change or typo fix. If so, skip the rest of this checklist.
  • I certify that the changes I am introducing will be backward compatible, and I have discussed concerns about this, if any, with the MosaicML team.
  • I have updated any necessary documentation, including README and API docs (if appropriate).

Tests

  • I ran pre-commit on my change. (check out the pre-commit section of prerequisites)
  • I have added tests that prove my fix is effective or that my feature works (if appropriate).
  • I ran the tests locally to make sure it pass. (check out testing)
  • I have added unit and/or integration tests as appropriate to ensure backward compatibility of the changes.

* Add `download_from_alipan` function and `AlipanUploader` class

* Add tests for both download and upload

* Add docs for configure Alipan Storage Credentials

* Add `AliPCS-Py` to setup.py as extra dependence
Copy link
Collaborator

@karan6181 karan6181 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. Posted some minor comments.

setup.py Outdated Show resolved Hide resolved
streaming/base/storage/download.py Outdated Show resolved Hide resolved
streaming/base/storage/download.py Outdated Show resolved Hide resolved
streaming/base/storage/upload.py Outdated Show resolved Hide resolved
streaming/base/storage/upload.py Outdated Show resolved Hide resolved
streaming/base/storage/upload.py Outdated Show resolved Hide resolved
* Use accurate `download_file` instead of the general `download`
  when download a remote file

* Raise a `ValueError` when the remote is `None` at uploading

* Format code
streaming/base/storage/download.py Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@snarayan21 snarayan21 left a comment

Choose a reason for hiding this comment

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

Hey @PeterDing, just getting back to this now. Left a couple of suggestions and comments. Are there any other changes you'd like to make?

PeterDing and others added 2 commits May 10, 2024 11:56
Co-authored-by: Saaketh Narayan <saaketh@mosaicml.com>
Copy link
Collaborator

@snarayan21 snarayan21 left a comment

Choose a reason for hiding this comment

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

lgtm! this will be included in the upcoming release -- thanks for contributing!

@snarayan21
Copy link
Collaborator

@PeterDing It would be most helpful if we could refer users to you if they face issues with Alipan. You are much more well versed with Alipan stuff than our team :)

Excited to get this integrated into Streaming!

@snarayan21 snarayan21 merged commit 9eaa26a into mosaicml:main May 10, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants