mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-08-06 02:24:31 +00:00
[NFC] polish <colossalai/context/process_group_initializer/initializer_data.py> code stype (#626)
Co-authored-by: 姜卓 <jiangzhuo@jiangzhuodeMacBook-Pro.local>
This commit is contained in:
parent
701bad439b
commit
0a96338b13
@ -20,6 +20,7 @@ class Initializer_Data(ProcessGroupInitializer):
|
|||||||
pipeline_parallel_size (int): Size of pipeline parallel.
|
pipeline_parallel_size (int): Size of pipeline parallel.
|
||||||
tensor_parallel_size (int): Size of tensor parallel.
|
tensor_parallel_size (int): Size of tensor parallel.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
self.num_data_parallel_group = self.world_size // self.data_parallel_size
|
self.num_data_parallel_group = self.world_size // self.data_parallel_size
|
||||||
|
Loading…
Reference in New Issue
Block a user