-
Notifications
You must be signed in to change notification settings - Fork 25.6k
More sharded_tensor creation ops: harded_tensor.zeros, sharded_tensor.full, sharded_tensor.rand #63732
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
Conversation
….full, sharded_tensor.rand Summary: Test Plan: $ python test/distributed/_sharded_tensor/test_sharded_tensor.py TestCreateTensorFromParams --v $ python test/distributed/_sharded_tensor/test_sharded_tensor.py TestShardedTensorChunked --v Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 8d5b8a3 (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
@bowangbj has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
…ed_tensor.full, sharded_tensor.rand" Summary: Test Plan: $ python test/distributed/_sharded_tensor/test_sharded_tensor.py --v Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D30472621](https://our.internmc.facebook.com/intern/diff/D30472621) [ghstack-poisoned]
@bowangbj has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
…ensor.zeros, sharded_tensor.full, sharded_tensor.rand" Summary: Test Plan: $ python test/distributed/_sharded_tensor/test_sharded_tensor.py --v Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D30472621](https://our.internmc.facebook.com/intern/diff/D30472621) [ghstack-poisoned]
@bowangbj has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Thanks Pritam for a great, detailed and fast review. Rebased and fixed all your cmts. PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just had a few more comments and it looks like there are some lint failures.
…ensor.zeros, sharded_tensor.full, sharded_tensor.rand" Summary: Test Plan: $ python test/distributed/_sharded_tensor/test_sharded_tensor.py --v Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D30472621](https://our.internmc.facebook.com/intern/diff/D30472621) [ghstack-poisoned]
@bowangbj has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Thanks Pritam. Fixed all the cmts, PTAL |
…ed_tensor.full, sharded_tensor.rand" Summary: Test Plan: $ python test/distributed/_sharded_tensor/test_sharded_tensor.py --v Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D30472621](https://our.internmc.facebook.com/intern/diff/D30472621) [ghstack-poisoned]
@bowangbj has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
The only tricky lint error is ./torch/distributed/_sharded_tensor/init.py:1:1: C101 Coding magic comment not found I run $flake8 init.py locally which produced no error. |
I think https://pypi.org/project/flake8-coding/ outlines how you need to setup flake8 to repro this error. The page has links in terms of how to resolve the issue as well. |
…sharded_tensor.full, sharded_tensor.rand" Summary: Test Plan: $ python test/distributed/_sharded_tensor/test_sharded_tensor.py --v Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D30472621](https://our.internmc.facebook.com/intern/diff/D30472621) [ghstack-poisoned]
…sharded_tensor.full, sharded_tensor.rand" Summary: Test Plan: $ python test/distributed/_sharded_tensor/test_sharded_tensor.py --v Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D30472621](https://our.internmc.facebook.com/intern/diff/D30472621) [ghstack-poisoned]
OK, added the magic comment (encoding) explicitly to address flake8 complaint. PTAL |
@bowangbj has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
…ops: harded_tensor.zeros, sharded_tensor.full, sharded_tensor.rand" Summary: Test Plan: $ python test/distributed/_sharded_tensor/test_sharded_tensor.py --v Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D30472621](https://our.internmc.facebook.com/intern/diff/D30472621) [ghstack-poisoned]
@bowangbj has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Thanks Pritam for the great review, added the tests, landing ... |
Stack from ghstack:
Summary:
Test Plan:
$ python test/distributed/_sharded_tensor/test_sharded_tensor.py --v
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: D30472621
cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @agolynski @SciPioneer @H-Huang @mrzzd @cbalioglu @gcramer23