-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[PT-D] Fix Sharding spec inference to avoid invalid chunk sharding to be inferred as chunkshardingspec #75296
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
… be inferred as chunkshardingspec Our previous logic does not fully all corner cases when it comes to imbalance sharding. For example, one is 16 another one is 9. (This cannot be chunk sharding) because the total length is 25 and if it's chunk sharding, it should be 13 and 12. So we need to get the total length first and calculated the expected chunk length to ensure it's indeed a chunk sharding case. Also added more test cases in unit test. Differential Revision: [D35417257](https://our.internmc.facebook.com/intern/diff/D35417257/) [ghstack-poisoned]
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit afc39ce (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
… be inferred as chunkshardingspec Our previous logic does not fully all corner cases when it comes to imbalance sharding. For example, one is 16 another one is 9. (This cannot be chunk sharding) because the total length is 25 and if it's chunk sharding, it should be 13 and 12. So we need to get the total length first and calculated the expected chunk length to ensure it's indeed a chunk sharding case. Also added more test cases in unit test. Differential Revision: [D35417257](https://our.internmc.facebook.com/intern/diff/D35417257/) ghstack-source-id: 153136085 Pull Request resolved: #75296
fegin
left a comment
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.
Thanks for the fix!
…sharding to be inferred as chunkshardingspec" Our previous logic does not fully all corner cases when it comes to imbalance sharding. For example, one is 16 another one is 9. (This cannot be chunk sharding) because the total length is 25 and if it's chunk sharding, it should be 13 and 12. So we need to get the total length first and calculated the expected chunk length to ensure it's indeed a chunk sharding case. Also added more test cases in unit test. Differential Revision: [D35417257](https://our.internmc.facebook.com/intern/diff/D35417257/) [ghstack-poisoned]
… be inferred as chunkshardingspec Pull Request resolved: #75296 Our previous logic does not fully all corner cases when it comes to imbalance sharding. For example, one is 16 another one is 9. (This cannot be chunk sharding) because the total length is 25 and if it's chunk sharding, it should be 13 and 12. So we need to get the total length first and calculated the expected chunk length to ensure it's indeed a chunk sharding case. Also added more test cases in unit test. ghstack-source-id: 153190671 Differential Revision: [D35417257](https://our.internmc.facebook.com/intern/diff/D35417257/)
… be inferred as chunkshardingspec (#75296) Summary: Pull Request resolved: #75296 Our previous logic does not fully all corner cases when it comes to imbalance sharding. For example, one is 16 another one is 9. (This cannot be chunk sharding) because the total length is 25 and if it's chunk sharding, it should be 13 and 12. So we need to get the total length first and calculated the expected chunk length to ensure it's indeed a chunk sharding case. Also added more test cases in unit test. ghstack-source-id: 153190671 Test Plan: CI Reviewed By: fegin Differential Revision: D35417257 fbshipit-source-id: a7df2183f9747c765498eb460678709b76cdf7b4
|
Hey @fduwjj. |
Stack from ghstack (oldest at bottom):
Our previous logic does not fully all corner cases when it comes to imbalance sharding. For example, one is 16 another one is 9. (This cannot be chunk sharding) because the total length is 25 and if it's chunk sharding, it should be 13 and 12. So we need to get the total length first and calculated the expected chunk length to ensure it's indeed a chunk sharding case.
Also added more test cases in unit test.
Differential Revision: D35417257