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
[-]quantization constructor names should match[/-][+]quantization api name consistency[/+]jerryzh168 commentedon Jun 17, 2024
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)
Refactor the API for quant method argument for quantize function
Refactor the API for quant method argument for quantize function
Refactor the API for quant method argument for quantize function
Refactor the API for quant method argument for quantize function
Refactor the API for quant method argument for quantize function
Refactor the API for quant method argument for quantize function
Refactor the API for quant method argument for quantize function (#400)
jerryzh168 commentedon Jun 26, 2024
this is resolved now
Make install_requirements.sh executable (pytorch#375)