diff --git a/convert_hf_to_gguf.py b/convert_hf_to_gguf.py index 2849163123..bc68be066c 100755 --- a/convert_hf_to_gguf.py +++ b/convert_hf_to_gguf.py @@ -416,7 +416,7 @@ class ModelBase: block_size = weight_config.get("block_structure", None) strategy = weight_config.get("strategy") assert strategy == "channel" or strategy == "block" - assert weight_config.get("group_size") == None # didn't find a model using this yet + assert weight_config.get("group_size") is None # didn't find a model using this yet for name in self.model_tensors.keys(): if name.endswith(".weight_scale"): weight_name = name.removesuffix("_scale")