Skip to content

Commit 81c1f52

Browse files
authored
fix format checking bug (#836)
Signed-off-by: Zhang, Weiwei1 <weiwei1.zhang@intel.com>
1 parent 1089004 commit 81c1f52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auto_round/compressors/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ def remove_duplicates(lst):
882882
check_compressed_tensors_supported()
883883
format = format.replace("llm_compressor", f"llm_compressor:{self.data_type}")
884884
formats[index] = format
885-
if is_static_wfp8afp8(self):
885+
elif is_static_wfp8afp8(self):
886886
format = f"llm_compressor:{AutoRoundFormat.FP8_STATIC.value}"
887887
formats[index] = format
888888
if self.act_group_size != 0:

0 commit comments

Comments
 (0)