Skip to content

SmoothQuant-for-Qwen3/smoothquant_qwen.py #6

@LiDing666

Description

@LiDing666

I have some trouble for this document.
fake_quant.activate_bit = args.activation
fake_quant.weight_bit = args.weight
model_quantized = fake_quant.quantize_Qwen3_like(model_fp16)
the code snippet you provided (fake_quant.quantize_Qwen3_like(model_fp16)) ​​does lack the SmoothQuant smoothing step​​, making it a naive W8A8 quantization rather than true SmoothQuant. Is this complete code?

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