violetch24
commited on
Commit
•
6627905
1
Parent(s):
235263f
Update README.md
Browse filesupdate model card to use Optimum API instead of using INC API
README.md
CHANGED
@@ -16,7 +16,7 @@ metrics:
|
|
16 |
|
17 |
### Post-training static quantization
|
18 |
|
19 |
-
This is an INT8 PyTorch model quantized with [Intel® Neural Compressor](https://github.com/intel/neural-compressor).
|
20 |
|
21 |
The original fp32 model comes from the fine-tuned model [Intel/bert-base-uncased-mrpc](https://huggingface.co/Intel/bert-base-uncased-mrpc).
|
22 |
|
@@ -34,8 +34,8 @@ The linear module **bert.encoder.layer.9.output.dense** falls back to fp32 to me
|
|
34 |
### Load with Intel® Neural Compressor:
|
35 |
|
36 |
```python
|
37 |
-
from neural_compressor.
|
38 |
-
int8_model =
|
39 |
'Intel/bert-base-uncased-mrpc-int8-static',
|
40 |
)
|
41 |
```
|
|
|
16 |
|
17 |
### Post-training static quantization
|
18 |
|
19 |
+
This is an INT8 PyTorch model quantized with [huggingface/optimum-intel](https://github.com/huggingface/optimum-intel) through the usage of [Intel® Neural Compressor](https://github.com/intel/neural-compressor).
|
20 |
|
21 |
The original fp32 model comes from the fine-tuned model [Intel/bert-base-uncased-mrpc](https://huggingface.co/Intel/bert-base-uncased-mrpc).
|
22 |
|
|
|
34 |
### Load with Intel® Neural Compressor:
|
35 |
|
36 |
```python
|
37 |
+
from optimum.intel.neural_compressor.quantization import IncQuantizedModelForSequenceClassification
|
38 |
+
int8_model = IncQuantizedModelForSequenceClassification.from_pretrained(
|
39 |
'Intel/bert-base-uncased-mrpc-int8-static',
|
40 |
)
|
41 |
```
|