Unverified Commit 20852c8f authored by Li, Jiang's avatar Li, Jiang Committed by GitHub
Browse files

[CPU] Refactor CPU WNA16 (#28826)


Signed-off-by: default avatarjiang1.li <jiang1.li@intel.com>
parent 40b6b38f
This diff is collapsed.
...@@ -134,7 +134,7 @@ class IPEXConfig(QuantizationConfig): ...@@ -134,7 +134,7 @@ class IPEXConfig(QuantizationConfig):
def override_quantization_method( def override_quantization_method(
cls, hf_quant_cfg, user_quant cls, hf_quant_cfg, user_quant
) -> QuantizationMethods | None: ) -> QuantizationMethods | None:
if not current_platform.is_cpu() and not current_platform.is_xpu(): if not current_platform.is_xpu():
return None return None
quant_method = hf_quant_cfg.get("quant_method", "").lower() quant_method = hf_quant_cfg.get("quant_method", "").lower()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment