fix is_permuted (#3100)

This commit is contained in:
Yuan Xiaolan
2025-07-30 22:35:22 +08:00
committed by GitHub
parent d65a0a6a2c
commit 02398135a8
3 changed files with 6 additions and 6 deletions

View File

@@ -34,7 +34,7 @@ class W4A8Config(QuantConfigBase):
@classmethod
def from_config(cls, config: dict) -> "W4A8Config":
is_permuted = getattr(config, "is_permuted", False)
is_permuted = config.get("is_permuted", True)
return cls(is_permuted)
def get_quant_method(self, layer) -> Optional[QuantMethodBase]: