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 to save quantized model? #2

Open
skyloveblue opened this issue Dec 7, 2021 · 2 comments
Open

How to save quantized model? #2

skyloveblue opened this issue Dec 7, 2021 · 2 comments

Comments

@skyloveblue
Copy link

Excellent work! After quantization, how to save the quantized model?

@wangjingg
Copy link

I also want to know how to save the quantized model

@SuperVan-Young
Copy link
Collaborator

We're still working on it, and it'll be released along with quantized models' pth files later.

If you only need quantized weights and bias, there's a way for quick start. We have implemented method quant_weight_bias in conv2d and linear layers, from which you can retreive quantized weights and bias of current layer. You can check for quant_layers/conv.py and quant_layers/linear.py for details.

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

3 participants