Repository navigation
Align the default 2-bit quantization policy with TFLite kernel support: - #11988
Open
copybara-service[bot] wants to merge 1 commit into
Open
copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
copybara-service
Bot
force-pushed
the
litert_pr_1023320191
branch
3 times, most recently
from
November 19, 2026 23:05
3f0fa5a to
d33a3ee
Compare
- Remove `CONV_2D` from `dynamic_wi2_afp32`, since TFLite `CONV_2D` kernels do not support INT2 weights. - Add `EMBEDDING_LOOKUP` to `dynamic_wi2_afp32_blockwise`. - Add `weightonly_wi2_afp32` (channelwise/tensorwise, symmetric and asymmetric) policy for `FULLY_CONNECTED` and `EMBEDDING_LOOKUP`. - Add end-to-end TFLite interpreter execution tests in `recipe_test` covering `weightonly_wi2_afp32` (`CHANNELWISE` and `TENSORWISE` on `FULLY_CONNECTED`) and `dynamic_wi2_afp32_blockwise` (`BLOCKWISE_32` on `EMBEDDING_LOOKUP`), and policy validation tests rejecting unsupported 2-bit blockwise weight-only configs. LiteRT-PiperOrigin-RevId: 1023320191
copybara-service
Bot
force-pushed
the
litert_pr_1023320191
branch
from
November 23, 2026 20:05
d33a3ee to
d0ace88
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Align the default 2-bit quantization policy with TFLite kernel support:
CONV_2Dfromdynamic_wi2_afp32, since TFLiteCONV_2Dkernels do not support INT2 weights.EMBEDDING_LOOKUPtodynamic_wi2_afp32_blockwise.weightonly_wi2_afp32(channelwise/tensorwise, symmetric and asymmetric) policy forFULLY_CONNECTEDandEMBEDDING_LOOKUP.recipe_testcoveringweightonly_wi2_afp32(CHANNELWISEandTENSORWISEonFULLY_CONNECTED) anddynamic_wi2_afp32_blockwise(BLOCKWISE_32onEMBEDDING_LOOKUP), and policy validation tests rejecting unsupported 2-bit blockwise weight-only configs.