We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Are there plans to support AWQ and torch compile?
No response
The text was updated successfully, but these errors were encountered:
Yes. I think we should be able to do this with torchao. cc @jerryzh168 @msaroufim
Sorry, something went wrong.
yes, we have awq (https://github.com/pytorch/ao/tree/main/torchao/prototype/awq) and GPTQ (https://github.com/pytorch/ao/blob/main/torchao/quantization/GPTQ_MT.py) implementations, both are compatible with torch.compile I think
code example for awq (uintx but only int4wo has speedup I think): https://github.com/pytorch/ao/blob/06ad55acb0d034a4e98e82a9eeddbd41d4d94b31/torchao/_models/llama/generate.py#L258-L284
code example for gptq (int4wo): https://github.com/pytorch/ao/blob/06ad55acb0d034a4e98e82a9eeddbd41d4d94b31/torchao/_models/llama/eval.py#L105-L127
this requires full model quantization though I think, so we have change our current way of integrating torchao (which is applied per layer)
No branches or pull requests
Checklist
Motivation
Are there plans to support AWQ and torch compile?
Related resources
No response
The text was updated successfully, but these errors were encountered: