The Summary tab page provides the communication group identification, division, and time breakdown and analysis functions. Communication groups can be automatically identified or configured by users. Users can compare the duration of stages, computation, and communication in a communication group to analyze whether the division in the same communication group is even and whether there are slow cards and slow links, helping developers quickly identify problems.
The Summary tab page consists of Base Info (area 1), Parallel Strategy Analysis (area 2), and MoE Expert Load Balancing Analysis (area 3), as shown in Figure 1.
Field |
Description |
|---|---|
Algorithm |
|
PP Size |
Pipeline parallel size. You can set it to a value ranging from 1 to 10000. Pipeline Parallel distributes different layers of a model to different cards for execution. When one card executes the current batch of data, another card can process the next batch of data. |
TP Size |
Tensor parallel size. You can set it to a value ranging from 1 to 10000. Tensor Parallel is a technique that divides model parameters into multiple parts and distributes them to different cards for computation. |
CP Size |
Context parallel size. You can set it to a value ranging from 1 to 10000. Context Parallel divides training samples into different batches based on the sequence length and dimension and allocates the batches to different cards for computation. Context Parallel (CP) splits the network input and all activations, which is an improved version of Sequence Parallelism (SP). |
DP Size |
Data parallel size. You can set it to a value ranging from 1 to 10000. Data Parallel divides the training dataset into multiple batches and allocates the batches to different cards for calculation. |
EP Size |
Expert parallel size. You can set it to a value ranging from 1 to 10000. Expert Parallel is a parallel method designed for Mixture of Experts (MoE) models. Experts are allocated to different computing cards. Each card processes some training samples, and each card can contain one or more experts.
|
MoE-TP Size |
This parameter is available only when the MindIE-LLM (tp-dp-ep-pp-moetp) algorithm is used. TP size of the MoE layer in the inference parallel strategy, which is different from the TP of the non-MoE layer. You can set it to a value ranging from 1 to 10000. The values must meet the following requirements:
|
Performance Metric |
You can display the parallel policy graph by performance metrics. The available performance metric parameters vary according to the selected domain dimension.
|
Target Index |
Enter the target index in the selected dimension to accurately locate the required number. |
Advice |
The built-in expert analysis function of MindStudio Insight analyzes data, provides suggestions, and lists the top 3 groups and slow cards, making it easier for developers to spot performance issues. |
To ensure that the communication time can be correctly split by communication group (TP-communication time, PP-communication time, MP-communication time, DP-communication time, and CP-communication time in the performance metrics), ensure that the parallel strategy parameter value is the same as the parallel parameter configuration during actual model training or inference. You can confirm the parallel parameters with the model developers.
Field |
Description |
|---|---|
Step |
Step ID. You can select a specific step or all steps from the drop-down list. |
Rank Group |
Node ID. You can select one, multiple, or all nodes from the drop-down list. |
Order By |
Set Order By to different dimensions.
|
Top |
You can set Top to display the top N records of Order By. |
Time(μs) |
The vertical coordinate on the left indicates the duration, in microseconds. The calculation formula is as follows: Total = Computing(Not Overlapped) + Computing_Communication Overlapped + Communication(Not Overlapped) + Free + Preparing. Preparing indicates the data preprocessing time. |
Ratio |
The vertical coordinate on the right indicates the duration percentage, including the following information:
|
Advice |
The analysis and suggestions of slow cards based on the communication time under each parallel dimension help you to locate slow cards. |
in the upper right corner of the table to copy the content displayed in the table and paste the content to an Excel file for analysis.
Field |
Description |
|---|---|
Accelerator Core |
AI accelerator core type, including AI Core and AI CPU. |
Accelerator Core Durations(μs) |
Total duration of the accelerator core. |
Name |
Operator name. |
Type |
Operator type. |
Start Time(ms) |
Operator execution start time. |
Duration(μs) |
Execution duration of the current operator. |
Wait Time(μs) |
Waiting time for executing the operator. |
Block Dim |
Number of running splits, which corresponds to the number of cores during task running. |
Input Shapes |
Operator input shape. |
Input Data Types |
Input data type of the operator. |
Input Formats |
Input format of the operator. |
Output Shapes |
Operator output shape. |
Output Data Types |
Output data type of the operator. |
Output Formats |
Output format of the operator. |
in the upper right corner of the table to copy the content displayed in the table and paste the content to an Excel file for analysis.
If a DB scenario file is imported, the Communication Detail (Rank ID) area is not displayed.
Field |
Description |
|---|---|
Accelerator Core |
AI accelerator core type, including AI Core and AI CPU. |
Communication(Not Overlapped) Durations(μs) |
Non-overlapped communication duration, which refers to the pure communication duration. |
Communication(Overlapped) Durations(μs) |
Overlapped communication duration. |
Name |
Communication operator name. |
Type |
Communication operator type. |
Start Time(ms) |
Start time of communication operator execution. |
Duration(μs) |
Execution duration of the current communication operator. |
Wait Time(μs) |
Waiting time for executing the communication operator. |
You can select Profiling or Dump for Data Version in the parameter configuration area. The two data types are statistical information of MoE models in different dimensions.
If Profiling is selected, the expert distribution heatmap is displayed. The heatmap is based on Profiling and collects statistics on the time consumed by the GroupedMatmul operator in each MoE layer. Since the GroupedMatmul operator is the core of MoE model computation, its performance directly affects how quickly experts respond.
to import the corresponding file. The MoE model expert load balancing heatmap is displayed, as shown in Figure 7. Table 5 describes the parameters. For details about how to collect data files of Dump unbalanced and Dump balanced, see "Features" > "Load Balancing" in MindIE LLM Development Guide.
Field |
Description |
|---|---|
Model Layer Num |
You can set it to a value ranging from 1 to 500. |
Dense Layer List |
Select one or more layers. |
Expert Num |
You can set it to a value ranging from 1 to 500. |
Model Stage |
Two phases of model inference: Prefill and Decode |
Data Version |
The value can be Profiling, Dump unbalanced, or Dump balanced. |