-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
quantization api name consistency #375
Labels
enhancement
New feature or request
Comments
HDCharles
changed the title
quantization constructor names should match
quantization api name consistency
Jun 15, 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) |
jerryzh168
added a commit
to jerryzh168/ao
that referenced
this issue
Jun 19, 2024
Summary: Addressing feedback from pytorch#384 and pytorch#375 Test Plan: regression tests python test/quantization/test_quant_api.py python test/integration/test_integration.py Reviewers: Subscribers: Tasks: Tags:
jerryzh168
added a commit
to jerryzh168/ao
that referenced
this issue
Jun 19, 2024
Summary: Addressing feedback from pytorch#384 and pytorch#375 Test Plan: regression tests python test/quantization/test_quant_api.py python test/integration/test_integration.py Reviewers: Subscribers: Tasks: Tags:
jerryzh168
added a commit
to jerryzh168/ao
that referenced
this issue
Jun 19, 2024
Summary: Addressing feedback from pytorch#384 and pytorch#375 Test Plan: regression tests python test/quantization/test_quant_api.py python test/integration/test_integration.py Reviewers: Subscribers: Tasks: Tags:
jerryzh168
added a commit
to jerryzh168/ao
that referenced
this issue
Jun 19, 2024
Summary: Addressing feedback from pytorch#384 and pytorch#375 Test Plan: regression tests python test/quantization/test_quant_api.py python test/integration/test_integration.py Reviewers: Subscribers: Tasks: Tags:
jerryzh168
added a commit
to jerryzh168/ao
that referenced
this issue
Jun 20, 2024
Summary: Addressing feedback from pytorch#384 and pytorch#375 Test Plan: regression tests python test/quantization/test_quant_api.py python test/integration/test_integration.py Reviewers: Subscribers: Tasks: Tags:
jerryzh168
added a commit
to jerryzh168/ao
that referenced
this issue
Jun 21, 2024
Summary: Addressing feedback from pytorch#384 and pytorch#375 Test Plan: regression tests python test/quantization/test_quant_api.py python test/integration/test_integration.py Reviewers: Subscribers: Tasks: Tags:
jerryzh168
added a commit
that referenced
this issue
Jun 21, 2024
this is resolved now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: