We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
parallel_state
xDiT/xfuser/core/distributed/parallel_state.py
Lines 335 to 345 in 47f2071
The comment is a bit confusing. As shown in the following script, it appears that we will have 8 DP groups instead of 2.
from xfuser.core.distributed.utils import RankGenerator rank = RankGenerator(tp=1, dp=2, cfg=2, sp=2, pp=2, order="tp-sp-pp-cfg-dp") print("dp :", rank.get_ranks("dp")) print("cfg:", rank.get_ranks("cfg")) print("sp :", rank.get_ranks("sp")) print("pp :", rank.get_ranks("pp")) # dp : [[0, 8], [1, 9], [2, 10], [3, 11], [4, 12], [5, 13], [6, 14], [7, 15]] # cfg: [[0, 4], [1, 5], [2, 6], [3, 7], [8, 12], [9, 13], [10, 14], [11, 15]] # sp : [[0, 1], [2, 3], [4, 5], [6, 7], [8, 9], [10, 11], [12, 13], [14, 15]] # pp : [[0, 2], [1, 3], [4, 6], [5, 7], [8, 10], [9, 11], [12, 14], [13, 15]]
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
xDiT/xfuser/core/distributed/parallel_state.py
Lines 335 to 345 in 47f2071
The comment is a bit confusing. As shown in the following script, it appears that we will have 8 DP groups instead of 2.
The text was updated successfully, but these errors were encountered: