Skip to content

vllm.model_executor.layers.quantization.inc.schemes.inc_scheme

Classes:

  • INCScheme –

    One class per quant type. Single registration point for the factory.

INCScheme

Bases: ABC

One class per quant type. Single registration point for the factory.

Each subclass defines
  • can_handle(): when does this scheme apply?
  • get_linear_method(): required — how to quantize Linear layers
  • get_moe_method(): optional — how to quantize MoE layers

Schemes that don't support MoE/KVCache inherit the default raise.

Methods:

get_moe_method(config, layer, prefix, layer_config)

Optional. Override if this scheme supports MoE. Default raises NotImplementedError.