Commit
·
bab0264
1
Parent(s):
d56926a
Update README.md
Browse files
README.md
CHANGED
|
@@ -32,8 +32,8 @@ The linear modules **roberta.encoder.layer.7.output.dense**, **roberta.encoder.l
|
|
| 32 |
### Load with optimum:
|
| 33 |
|
| 34 |
```python
|
| 35 |
-
from optimum.intel.neural_compressor.quantization import
|
| 36 |
-
int8_model =
|
| 37 |
'Intel/roberta-base-squad2-int8-static',
|
| 38 |
)
|
| 39 |
```
|
|
|
|
| 32 |
### Load with optimum:
|
| 33 |
|
| 34 |
```python
|
| 35 |
+
from optimum.intel.neural_compressor.quantization import IncQuantizedModelForQuestionAnswering
|
| 36 |
+
int8_model = IncQuantizedModelForQuestionAnswering.from_pretrained(
|
| 37 |
'Intel/roberta-base-squad2-int8-static',
|
| 38 |
)
|
| 39 |
```
|