Skip to content
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

How can I use Torchao effectively with Naslib's pytorch models #1467

Open
anissbslh opened this issue Dec 31, 2024 · 1 comment
Open

How can I use Torchao effectively with Naslib's pytorch models #1467

anissbslh opened this issue Dec 31, 2024 · 1 comment

Comments

@anissbslh
Copy link

I'm trying to quantize a Naslib model, more specifically a model from the nasbench201 search space.

when I use the quantization flow described in examples, it doesn't work. the size of the quantized model is equal to the size of the original model. The search space contains mainly CNN architectures.

quantize_(model_copy, int8_dynamic_activation_int8_weight(), device=device)

@jerryzh168
Copy link
Contributor

Hi @anissbslh currently int8_dynamic_activation_int8_weight only supports quantizing nn.Linear, so if it's mainly CNN it's expected that no layer is quantized right now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants