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