Relationship Between Communication Operator Retry and Overall Network Performance

After the HCCL communication operator retry feature is enabled, the end-to-end (E2E) performance change of the entire network is closely related to the model sharding and deployment mode. This section describes the relationship between the retry feature and network performance.

Key Communicator

A key communicator is a communicator whose performance change will cause a great change in the E2E performance of the entire network. This means that the communicator is very important and is the performance bottleneck of the entire network.

Generally, there are multiple communicators on the entire network, and there is usually one key communicator. This section focuses on the key communicator for performance analysis.

The following figure shows an example.

In the preceding profiling, there are four communicators where communication actually occurs, which are Group_777, Group_1289, Group_257, and Group_9.

The BatchSendRecv operator executed in Group_1289 is introduced by PipelineParallel. Generally, asynchronous communication is used, which can be asynchronous with computing and does not occupy a large proportion of time. This communicator is not a key communicator.

Group_777 and Group_9 have few operator execution operations, thus having little impact on the global network. They are also not key communicators.

Therefore, Group_257 is the key communicator. If the performance of this communicator deteriorates, the E2E performance of the entire network is directly affected.

Relationship Between Network Performance Deterioration and the Key Communicator