[AutoRound] Support Qwen Omni W4A16 quantization model (#2670)
Signed-off-by: lvliang-intel <liang1.lv@intel.com> Co-authored-by: SYLAR <125541396+lishunyang12@users.noreply.github.com>
This commit is contained in:
1 parent
9337bec9ad
commit
ee15f39ea7
11 files changed
+989
-8
No files matched your search
@@ -43,16 +43,16 @@ def _build_int8(**kw: Any) -> QuantizationConfig:
|
||||
|
||||
def _build_inc(**kw: Any) -> QuantizationConfig:
|
||||
"""Lazy import for INC/AutoRound config with checkpoint kwarg normalization."""
|
||||
from vllm.model_executor.layers.quantization.inc import INCConfig
|
||||
from .inc_config import OmniINCConfig
|
||||
|
||||
# Map checkpoint key 'bits' to INCConfig's 'weight_bits'
|
||||
if "bits" in kw and "weight_bits" not in kw:
|
||||
kw["weight_bits"] = kw.pop("bits")
|
||||
|
||||
# Filter to only valid INCConfig params
|
||||
valid = set(inspect.signature(INCConfig.__init__).parameters) - {"self"}
|
||||
valid = set(inspect.signature(OmniINCConfig.__init__).parameters) - {"self"}
|
||||
filtered = {k: v for k, v in kw.items() if k in valid}
|
||||
return INCConfig(**filtered)
|
||||
return OmniINCConfig(**filtered)
|
||||
|
||||
|
||||
_OVERRIDES: dict[str, Callable[..., QuantizationConfig]] = {
|
||||
|
||||
Reference in new issue
Block a user