Overview

  • Check the Comparison Result Description for this scenario.
  • This scenario applies only to comparison between the same processors.
  • Ascend NPU vs. Ascend NPU: Only accuracy comparisons between two non-quantized offline models and between two quantized offline models are supported.

Accuracy Comparison Before and After Version Iteration

You need to check whether there is a decrease in accuracy of an offline model generated through ATC-based conversion due to the CANN version iteration, model version iteration, or model tuning when the model is running on the AI processor. The comparison is performed between two non-quantized models and between two quantized models. The input data is prepared as follows:

Table 1 Input data requirements for comparison between non-quantized models

File

Description

How to Obtain

Dump data file of the non-quantized offline model running on the AI processor (before version iteration)

Benchmark data

Preparing Dump Data of an Offline Model

Dump data file of the non-quantized offline model running on the AI processor (after version iteration)

Data to be compared

Table 2 Input data requirements for comparison between quantized models

File

Description

How to Obtain

Dump data file of the quantized offline model running on the AI processor (before version iteration)

Benchmark data

Preparing Dump Data of an Offline Model

Dump data file of the quantized offline model running on the AI processor (after version iteration)

Data to be compared

Accuracy Comparison Based on Model Conversion with Operator Fusion Enabled and Disabled

Generally, the operator fusion is enabled by default during offline model conversion. To check the accuracy of the fused operator, dump the file generated with operator fusion enabled, then disable operator fusion, and dump the file generated with operator fusion disabled. Then compare the dump data files with fusion enabled and disabled.

The comparison is performed between two non-quantized models and between two quantized models. The input data is prepared as follows:

Table 3 Input data requirements for comparison between non-quantized models

File

Description

How to Obtain

Non-quantized offline model file (.om) (with operator fusion disabled)

Non-quantized offline model file (.om) (with operator fusion enabled)

Model files

Offline Model File Preparation

Dump data file of the non-quantized offline model running on the AI processor (with operator fusion disabled)

Benchmark data

Preparing Dump Data of an Offline Model

Dump data file of the non-quantized offline model running on the AI processor (with operator fusion enabled)

Data to be compared

Table 4 Input data requirements for comparison between quantized models

File

Description

How to Obtain

Quantized offline model file (.om) (with operator fusion disabled)

Quantized offline model file (.om) (with operator fusion enabled)

Model files

Offline Model File Preparation

Dump data file of the quantized offline model running on the AI processor (with operator fusion disabled)

Benchmark data

Preparing Dump Data of an Offline Model

Dump data file of the quantized offline model running on the AI processor (with operator fusion enabled)

Data to be compared