vllm.model_executor.layers.quantization.auto_awq
¶
Classes:
-
AutoAWQConfig–Config class for AutoAWQ quantization.
-
AutoAWQLinearMethod–Linear method for AWQ using Triton kernels.
-
AutoAWQMarlinLinearMethod–Linear method for AWQ Marlin.
-
AutoAWQMoEMethod– -
BaseAWQLinearMethod–Base class for AWQ linear methods with shared weight creation logic.
AutoAWQConfig
¶
Bases: QuantizationConfig
Config class for AutoAWQ quantization.
Unified config that supports multiple backends: Triton, Marlin, and XPU. Reference: https://arxiv.org/abs/2306.00978
Methods:
-
override_quantization_method–Override to use AutoAWQ for compatible AWQ models.
override_quantization_method(hf_quant_cfg, user_quant, hf_config=None)
classmethod
¶
Override to use AutoAWQ for compatible AWQ models.
AutoAWQLinearMethod
¶
Bases: BaseAWQLinearMethod
Linear method for AWQ using Triton kernels.
Parameters:
-
(quant_config¶AutoAWQConfig) –The AWQ quantization config.
AutoAWQMarlinLinearMethod
¶
Bases: LinearMethodBase
Linear method for AWQ Marlin.
Uses choose_mp_linear_kernel to select the best available kernel (Conch, Exllama, or Marlin) for the current platform.
Parameters:
-
(quant_config¶AutoAWQConfig) –The AWQ Marlin quantization config.
AutoAWQMoEMethod
¶
Bases: FusedMoEMethodBase
_setup_kernel(layer)
¶
Build the FusedMoEKernel for this layer.
BaseAWQLinearMethod
¶
_convert_awq_to_standard_format(layer, w_q_name, w_zp_name, size_bits)
¶
Convert AWQ weight and zero-point tensors to standard GPTQ-like format.
AWQ packs qweight along the output dim with a non-standard bit order. This converts to standard bit order and repacks qweight along the input dim, matching the format expected by the MPLinearKernel framework. If w_zp_name is None (symmetric quantization), only the weight is converted.