Update loading instructions
Browse files
README.md
CHANGED
@@ -49,10 +49,10 @@ The calibration dataloader is the train dataloader. The default calibration samp
|
|
49 |
#### Load with Intel® Neural Compressor:
|
50 |
|
51 |
```python
|
52 |
-
from optimum.intel
|
53 |
|
54 |
model_id = "Intel/roberta-base-mrpc-int8-static"
|
55 |
-
int8_model =
|
56 |
```
|
57 |
|
58 |
### ONNX
|
@@ -76,4 +76,4 @@ The calibration dataloader is the eval dataloader. The calibration sampling size
|
|
76 |
```python
|
77 |
from optimum.onnxruntime import ORTModelForSequenceClassification
|
78 |
model = ORTModelForSequenceClassification.from_pretrained('Intel/roberta-base-mrpc-int8-static')
|
79 |
-
```
|
|
|
49 |
#### Load with Intel® Neural Compressor:
|
50 |
|
51 |
```python
|
52 |
+
from optimum.intel import INCModelForSequenceClassification
|
53 |
|
54 |
model_id = "Intel/roberta-base-mrpc-int8-static"
|
55 |
+
int8_model = INCModelForSequenceClassification.from_pretrained(model_id)
|
56 |
```
|
57 |
|
58 |
### ONNX
|
|
|
76 |
```python
|
77 |
from optimum.onnxruntime import ORTModelForSequenceClassification
|
78 |
model = ORTModelForSequenceClassification.from_pretrained('Intel/roberta-base-mrpc-int8-static')
|
79 |
+
```
|