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

The +0.5 term in StatQ results in asymmetric weight quantization. #4

Open
LuletterSoul opened this issue Jan 30, 2024 · 0 comments
Open

Comments

@LuletterSoul
Copy link

LuletterSoul commented Jan 30, 2024

Unlike conventional symmetric weight quantization, I found that StatQ will let rounded integer weight add a term (+ 0.5), This item may cause the StatQ not to be actually deployed on hardware.

image

If we remove the -0.5 and +0.5 terms, the integer value of the weight will have an extra value, that is, 2**(bit - 1) -1. How do you modify this formula and achieve the same performance?

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

1 participant