violetch24
commited on
Commit
•
d56926a
1
Parent(s):
b4d95a9
Update README.md
Browse files
README.md
CHANGED
@@ -14,7 +14,7 @@ metrics:
|
|
14 |
|
15 |
### Post-training static quantization
|
16 |
|
17 |
-
This is an INT8 PyTorch model quantized with [Intel® Neural Compressor](https://github.com/intel/neural-compressor).
|
18 |
|
19 |
The original fp32 model comes from the fine-tuned model [deepset/roberta-base-squad2](https://huggingface.co/deepset/roberta-base-squad2).
|
20 |
|
@@ -29,11 +29,11 @@ The linear modules **roberta.encoder.layer.7.output.dense**, **roberta.encoder.l
|
|
29 |
| **Accuracy (eval-f1)** |82.3122|82.9231|
|
30 |
| **Model size (MB)** |141|474|
|
31 |
|
32 |
-
### Load with
|
33 |
|
34 |
```python
|
35 |
-
from neural_compressor.
|
36 |
-
int8_model =
|
37 |
'Intel/roberta-base-squad2-int8-static',
|
38 |
)
|
39 |
```
|
|
|
14 |
|
15 |
### Post-training static quantization
|
16 |
|
17 |
+
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).
|
18 |
|
19 |
The original fp32 model comes from the fine-tuned model [deepset/roberta-base-squad2](https://huggingface.co/deepset/roberta-base-squad2).
|
20 |
|
|
|
29 |
| **Accuracy (eval-f1)** |82.3122|82.9231|
|
30 |
| **Model size (MB)** |141|474|
|
31 |
|
32 |
+
### Load with optimum:
|
33 |
|
34 |
```python
|
35 |
+
from optimum.intel.neural_compressor.quantization import IncQuantizedModelForCausalLM
|
36 |
+
int8_model = IncQuantizedModelForCausalLM.from_pretrained(
|
37 |
'Intel/roberta-base-squad2-int8-static',
|
38 |
)
|
39 |
```
|