violetch24
commited on
Commit
•
9b2b7ef
1
Parent(s):
eab02b0
Update README.md
Browse files
README.md
CHANGED
@@ -16,7 +16,7 @@ metrics:
|
|
16 |
|
17 |
### Post-training dynamic 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 |
|
@@ -27,11 +27,11 @@ The original fp32 model comes from the fine-tuned model [Intel/bert-base-uncased
|
|
27 |
| **Accuracy (eval-f1)** |0.8997|0.9042|
|
28 |
| **Model size (MB)** |174|418|
|
29 |
|
30 |
-
### Load with
|
31 |
|
32 |
```python
|
33 |
-
from neural_compressor.
|
34 |
-
int8_model =
|
35 |
'Intel/bert-base-uncased-mrpc-int8-dynamic',
|
36 |
)
|
37 |
```
|
|
|
16 |
|
17 |
### Post-training dynamic 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 |
|
|
|
27 |
| **Accuracy (eval-f1)** |0.8997|0.9042|
|
28 |
| **Model size (MB)** |174|418|
|
29 |
|
30 |
+
### Load with optimum:
|
31 |
|
32 |
```python
|
33 |
+
from optimum.intel.neural_compressor.quantization import IncQuantizedModelForSequenceClassification
|
34 |
+
int8_model = IncQuantizedModelForSequenceClassification.from_pretrained(
|
35 |
'Intel/bert-base-uncased-mrpc-int8-dynamic',
|
36 |
)
|
37 |
```
|