Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[Quantization] Add symmetric with power2 scale quantization schema #3437
For the previous quantization schemes the main approximation was:
For the new quantization schema the approximation has a particular, more simpler form:
The new quantization schema:
This quantization schema requires the floating-point scales to preserve their bit-exact values during YAML round-trip. Therefore, I added a workaround for retrieving the floating-point scales bit-exactly during YAML round-trip.
Please see a detailed explanation of how to fill out the fields in the relevant sections in PULL_REQUEST.md.
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.
If you have received this in error or have any questions, please contact us at email@example.com. Thanks!
Internal tests are failing with
Could you check this?