Update loading instructions
Browse files
README.md
CHANGED
|
@@ -33,10 +33,10 @@ The original fp32 model comes from the fine-tuned model [Intel/bert-base-uncased
|
|
| 33 |
#### Load with optimum:
|
| 34 |
|
| 35 |
```python
|
| 36 |
-
from optimum.intel
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
)
|
| 40 |
```
|
| 41 |
|
| 42 |
### ONNX
|
|
|
|
| 33 |
#### Load with optimum:
|
| 34 |
|
| 35 |
```python
|
| 36 |
+
from optimum.intel import INCModelForSequenceClassification
|
| 37 |
+
|
| 38 |
+
model_id = "Intel/bert-base-uncased-mrpc-int8-dynamic"
|
| 39 |
+
int8_model = INCModelForSequenceClassification.from_pretrained(model_id)
|
| 40 |
```
|
| 41 |
|
| 42 |
### ONNX
|