mlcommons / mlcommons/mobile_models
MobileBERT tflite int8 model seems not follow quantization spec
Open
@jwookiehong is already working on this.
Since Jun 21, 2021.
- Dominant language
- No language data
- Stars
- 26
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
The model downloaded from https://github.com/fatihcakirs/mobile_models/blob/main/v0_7/tflite/mobilebert_int8_384_20200602.tflite
Some Fully-connected weights has none-zero zero point (ex. weight bert/encoder/layer_0/attention/self/MatMul19 has zero-point = 6) , which violate the TFLite quantization spec.
I am afraid this might cause issues on some implementation which bypass the FC weight zero-point calculation.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.