Skip to content

[Feature] Support repacking Intel Autoround format(s) into AMXINT4/AMXINT8 #2060

Description

@kassieclaire

Reminder

  • I have read the above rules and searched the existing issues.

Description

Intel AutoRound format seems to very reliably produce quantized weights that are high-quality when using a good calibration dataset, and can produce a format with scaled block sizes of 64, matching the AMXINT4 and AMXINT8 block sizes. From my understanding, the only parts missing would be numa optimization and VNNI repacking of the blocks to allow quick decode with AVX512 instructions on Xeon CPUs.

Intel AutoRound is natively supported by sglang, meaning that the only gaps would be packaging the groups for AMX prefill + AVX512 decode + NUMA node optimization on the CPU-side.

Optimally, the integration would involve allowing the user to select the specific quantization algorithm as intel autoround for the actual quantization part of convert_cpu_weights.py, while leaving the other sections untouched.

As a stretch goal: supporting the lowest-bit formats like W2A16 and W3A16 produced by autoround would be great too, and allow for very-low-bit format support in ktransformers.

Pull Request

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions