Instructions

Displaying the Parallel Policy

The Summary tab page supports the management of parallel strategy settings, which can be distinguished based on the imported profile data.

Configure the parallel strategy as follows: PP Size = 4, TP Size = 4, CP Size = 4, DP Size = 8, and EP Size = 4. Click Generate. The parallel strategy graph is updated based on the input values, as shown in Figure 1.

When selecting different dimensions, you can select Pipeline Parallel, Tensor Parallel, Context Parallel, Data Parallel, or Expert Parallel as required. The parallel strategy graph displays the division policy check box based on the selected options. When you click the check box, the page below is updated accordingly.

You can also select Performance Metric and Visible Range to color the target in the parallel strategy graph. Select Target Index and click Find to quickly locate the target index.

You can set the selected performance metric of any target index as the minimum or maximum filter value to quickly locate and analyze issues. In all dimensions, select a performance metric, right-click a target index in the parallel strategy graph, and choose the minimum or maximum filter value setting from the shortcut menu. The rendering color of the graph and the filter range change accordingly.

Figure 1 Data parallel strategy
  • Rule for setting the parallel strategy: Parallel strategy value = PP Size × TP Size × CP Size × DP Size ≥ Number of cards imported.
  • If data that has been imported is imported to MindStudio Insight, the parallel strategy value is remembered and the previously set parallel strategy value is displayed by default.

Supporting Page Information Linkage

Displaying Parallel Policies in Different Dimensions

On the Summary page, after the parallel strategy value is set, you can select DP + PP, DP + PP + CP, DP + PP + TP, or DP + PP + CP + TP to display the parallel strategy graph.

You can select a dimension tab on the parallel strategy graph to expand the corresponding dimension, or right-click a target index to expand or collapse each dimension.

When CP Size is set to 1, the DP + PP and DP + PP + TP parallel dimensions are displayed, and Context Parallel Size is not displayed in each dimension.

The details of each dimension are as follows.

Comparing Cluster Data

MindStudio Insight allows developers to compare cluster data to intuitively view data differences. For details about how to set baseline data and comparison data, see Data Comparison.

In comparison mode, the Base Info area on the Summary tab page displays the comparison data and baseline data information.

In the Parallel Strategy Analysis area, the parallel strategy configuration parameters must be set according to the rules. The number of imported cards is determined by the maximum number of devices in the comparison data or baseline data. When you select the target index in the parallel strategy graph, the details displayed indicate the comparison data and the data in the brackets indicates the difference.

In the bar chart details in the Computation/Communication Overview area, the difference between the comparison data and baseline data is displayed, as shown in Figure 8.

Figure 8 Overview page comparison mode

Showing Expert Distribution Heatmap and Load Balancing Heatmap

In the MoE Expert Load Balancing Analysis area, you can choose to display the expert distribution heatmap and the expert load balancing heatmap.

The vertical coordinate indicates the total number of model layers (MoE layers + non-MoE layers), and the horizontal coordinate indicates the expert sequence number. When you select a cell in the chart, the details of the cell are displayed, including the expert index, ID, layer ID, rank ID, and access traffic.

You can hold down Ctrl and scroll the mouse wheel to zoom in or out the heatmap.

Figure 9 MoE expert load balancing analysis