From de5c4b505e77f0b39dab25f3aa78b8910a3b7b01 Mon Sep 17 00:00:00 2001 From: Michael Tuttle Date: Fri, 14 Feb 2025 11:25:45 -0800 Subject: [PATCH] Update supergroups and norm layer naming (#3813) Signed-off-by: Michael Tuttle --- .../htp_quantsim_config_v66.json | 3 +++ .../htp_quantsim_config_v68.json | 7 ++++++ .../htp_quantsim_config_v69.json | 7 ++++++ .../htp_quantsim_config_v73.json | 25 +++++++++++++++++++ .../htp_quantsim_config_v75.json | 25 +++++++++++++++++++ .../htp_quantsim_config_v79.json | 25 +++++++++++++++++++ .../htp_quantsim_config_v81.json | 25 +++++++++++++++++++ 7 files changed, 117 insertions(+) diff --git a/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v66.json b/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v66.json index 261dfed824a..cdb3880c922 100644 --- a/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v66.json +++ b/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v66.json @@ -159,6 +159,9 @@ { "op_list": ["Conv", "BatchNormalization", "Relu"] }, + { + "op_list": ["Conv", "Transpose", "Relu"] + }, { "op_list": ["ConvTranspose", "Relu"] }, diff --git a/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v68.json b/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v68.json index 3a4f95bef5c..952e26fd740 100644 --- a/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v68.json +++ b/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v68.json @@ -142,6 +142,10 @@ { "per_channel_quantization": "False" }, + "LayerNormalization": + { + "per_channel_quantization": "False" + }, "BatchNormalization": { "per_channel_quantization": "False", @@ -176,6 +180,9 @@ { "op_list": ["Conv", "BatchNormalization", "Relu"] }, + { + "op_list": ["Conv", "Transpose", "Relu"] + }, { "op_list": ["ConvTranspose", "Relu"] }, diff --git a/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v69.json b/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v69.json index bd4dfaa7366..1414795ff73 100644 --- a/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v69.json +++ b/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v69.json @@ -142,6 +142,10 @@ { "per_channel_quantization": "False" }, + "LayerNormalization": + { + "per_channel_quantization": "False" + }, "BatchNormalization": { "per_channel_quantization": "False", @@ -176,6 +180,9 @@ { "op_list": ["Conv", "BatchNormalization", "Relu"] }, + { + "op_list": ["Conv", "Transpose", "Relu"] + }, { "op_list": ["ConvTranspose", "Relu"] }, diff --git a/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v73.json b/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v73.json index 09aaf9bba92..272e89e613c 100644 --- a/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v73.json +++ b/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v73.json @@ -97,6 +97,16 @@ } } }, + "GroupNormalization": + { + "per_channel_quantization": "False", + "params": { + "bias": + { + "is_quantized": "True" + } + } + }, "LayerNorm": { "per_channel_quantization": "False", @@ -106,6 +116,15 @@ } } }, + "LayerNormalization": + { + "per_channel_quantization": "False", + "params": { + "weight": { + "is_symmetric": "False" + } + } + }, "BatchNormalization": { "per_channel_quantization": "False", @@ -217,6 +236,12 @@ }, { "op_list": ["Conv", "BatchNormalization", "Relu"] + }, + { + "op_list": ["Conv", "Transpose", "Relu"] + }, + { + "op_list": ["Conv", "Transpose", "PRelu"] }, { "op_list": ["Conv", "Clip"] diff --git a/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v75.json b/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v75.json index 89e34f42ab9..3fedfe77d14 100644 --- a/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v75.json +++ b/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v75.json @@ -101,6 +101,16 @@ } } }, + "GroupNormalization": + { + "per_channel_quantization": "False", + "params": { + "bias": + { + "is_quantized": "True" + } + } + }, "LayerNorm": { "per_channel_quantization": "False", @@ -110,6 +120,15 @@ } } }, + "LayerNormalization": + { + "per_channel_quantization": "False", + "params": { + "weight": { + "is_symmetric": "False" + } + } + }, "BatchNormalization": { "per_channel_quantization": "False", @@ -217,6 +236,12 @@ }, { "op_list": ["Conv", "BatchNormalization", "Relu"] + }, + { + "op_list": ["Conv", "Transpose", "Relu"] + }, + { + "op_list": ["Conv", "Transpose", "PRelu"] }, { "op_list": ["Conv", "Clip"] diff --git a/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v79.json b/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v79.json index 8c4a90c3ebe..0f93c4cae59 100644 --- a/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v79.json +++ b/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v79.json @@ -101,6 +101,16 @@ } } }, + "GroupNormalization": + { + "per_channel_quantization": "False", + "params": { + "bias": + { + "is_quantized": "True" + } + } + }, "LayerNorm": { "per_channel_quantization": "False", @@ -110,6 +120,15 @@ } } }, + "LayerNormalization": + { + "per_channel_quantization": "False", + "params": { + "weight": { + "is_symmetric": "False" + } + } + }, "BatchNormalization": { "per_channel_quantization": "False", @@ -217,6 +236,12 @@ }, { "op_list": ["Conv", "BatchNormalization", "Relu"] + }, + { + "op_list": ["Conv", "Transpose", "Relu"] + }, + { + "op_list": ["Conv", "Transpose", "PRelu"] }, { "op_list": ["Conv", "Clip"] diff --git a/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v81.json b/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v81.json index 1f4b54f3dcd..a36c7f2306e 100644 --- a/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v81.json +++ b/TrainingExtensions/common/src/python/aimet_common/quantsim_config/htp_quantsim_config_v81.json @@ -101,6 +101,16 @@ } } }, + "GroupNormalization": + { + "per_channel_quantization": "False", + "params": { + "bias": + { + "is_quantized": "True" + } + } + }, "LayerNorm": { "per_channel_quantization": "False", @@ -110,6 +120,15 @@ } } }, + "LayerNormalization": + { + "per_channel_quantization": "False", + "params": { + "weight": { + "is_symmetric": "False" + } + } + }, "BatchNormalization": { "per_channel_quantization": "False", @@ -217,6 +236,12 @@ }, { "op_list": ["Conv", "BatchNormalization", "Relu"] + }, + { + "op_list": ["Conv", "Transpose", "Relu"] + }, + { + "op_list": ["Conv", "Transpose", "PRelu"] }, { "op_list": ["Conv", "Clip"]