fix code snippet
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 optimum.intel
|
37 |
|
38 |
model_id = "Intel/roberta-base-squad2-int8-static"
|
39 |
-
int8_model =
|
40 |
```
|
|
|
33 |
### Load with Intel® Neural Compressor:
|
34 |
|
35 |
```python
|
36 |
+
from optimum.intel import INCModelForSequenceClassification
|
37 |
|
38 |
model_id = "Intel/roberta-base-squad2-int8-static"
|
39 |
+
int8_model = INCModelForSequenceClassification.from_pretrained(model_id)
|
40 |
```
|