Update model card
Browse files
README.md
CHANGED
@@ -33,8 +33,8 @@ The linear modules **roberta.encoder.layer.16.output.dense**, **roberta.encoder.
|
|
33 |
### Load with Intel® Neural Compressor:
|
34 |
|
35 |
```python
|
36 |
-
from
|
37 |
-
|
38 |
-
|
39 |
-
)
|
40 |
```
|
|
|
33 |
### Load with Intel® Neural Compressor:
|
34 |
|
35 |
```python
|
36 |
+
from optimum.intel.neural_compressor import IncQuantizedModelForSequenceClassification
|
37 |
+
|
38 |
+
model_id = "Intel/roberta-base-squad2-int8-static"
|
39 |
+
int8_model = IncQuantizedModelForSequenceClassification.from_pretrained(model_id)
|
40 |
```
|