Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
☓ |
|
√ |
|
√ |
For
For the
Sets a gradient segmentation strategy in a collective communication group based on the proportion of gradient data to implement AllReduce fusion and optimize the collective communication performance.
1 | def set_split_strategy_by_size(dataSizeList, group="hccl_world_group") |
Parameter |
Input/Output |
Description |
|---|---|---|
dataSizeList |
Input |
A list. List of gradient parameter data volume percentages.
|
group |
Input |
A string containing a maximum of 128 bytes, including the end character. Group name, which can be a user-defined value or hccl_world_group. Defaults to hccl_world_group. |
None
Default segmentation strategy: The optimal segmentation location of ResNet-50 is as follows: ResNet-50 is divided into two segments based on the gradient data size. The data size of the first segment is 96.54%, and that of the second segment is 3.46%.
1 2 | from hccl.split.api import * set_split_strategy_by_size([60, 20, 20], "group") |