Skip to content

quantization api name consistency #375

Closed

Description

@HDCharles

having the string to get a type of quantization and the constructor for that quantization as different text is super annoying.
https://github.com/pytorch/ao/blob/main/torchao/quantization/quant_api.py#L439-L443

quantize(model, int4wo()) ->works.......while quantize(model, "int4wo") -> error, wrong name

its a pain to have to remember which is which here, either both should work for the string or consolidate on a single one.

for that matter these also don't match

https://github.com/pytorch/ao/blob/main/torchao/quantization/quant_api.py#L310-L319

Activity

  1. changed the title [-]quantization constructor names should match[/-] [+]quantization api name consistency[/+] on Jun 15, 2024
  2. added
    enhancement
    on Jun 15, 2024
  3. jerryzh168 commented on Jun 17, 2024

    @jerryzh168
    Contributor

    yeah makes sense, I'll align the name, there was also a feedback from @gau-nernst about whether we should make it a Config class #384 (comment)

  4. jerryzh168 commented on Jun 26, 2024

    @jerryzh168
    Contributor

    this is resolved now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions