-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a numerical bug in
operations.einsum
when using asym weights an…
…d sym activations. Also consolidates dequantization logic for weights and activations, allowing support for arbitrary weight shapes when `zp_act` is not `None`. Tested by adding a test for this case and by examining the outputs of Gemma2B IT with asymmetric `int8` PTQ and symmetric `int8` activations. PiperOrigin-RevId: 633644780
- Loading branch information
1 parent
6450194
commit a0362d4
Showing
2 changed files
with
62 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters