IncreFlashAttentionQuantFusionPass
Description
Fuses IncreFlashAttention+AscendQuant into the IncreFlashAttention operator in the quantization scenario. The scale and offset parameters of quant are converted into the input parameters quant_scale2 and quant_offset2 of ifa.

Restrictions
- The output of IncreFlashAttention must be fp16.
- The input of AscendQuant must be fp16, and the output must be int8.
- quant_scale2 and quant_offset2 of the IncreFlashAttention operator must be empty.
- The IncreFlashAttention operator can have only one output.
Availability
Atlas 350 Accelerator Card
Parent topic: Graph Fusion Patterns