Skip to content

What is the meaning of weight_quantizer in W4A8_AWQ_BETA_CFG? #268

@ZhuJiaqi9905

Description

@ZhuJiaqi9905

The config of W4A8_AWQ is:

W4A8_AWQ_BETA_CFG = {
    "quant_cfg": {
        "*weight_quantizer": [
            {"num_bits": 4, "block_sizes": {-1: 128, "type": "static"}, "enable": True},
            {"num_bits": (4, 3), "axis": None, "enable": True},
        ],
        "*input_quantizer": {"num_bits": (4, 3), "axis": None, "enable": True},
        **_default_disabled_quantizer_cfg,
    },
    "algorithm": "awq_lite",
}

Why the weight quantizer has two config? Does it mean that the bf16 weight will be first per-tensor quantized to FP8, than the FP8 weight will be per-group quantized to int4 weight?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions