Update loading instructions
Browse files
README.md
CHANGED
|
@@ -50,11 +50,10 @@ The calibration dataloader is the train dataloader. The default calibration samp
|
|
| 50 |
#### Load with Intel® Neural Compressor:
|
| 51 |
|
| 52 |
```python
|
| 53 |
-
from optimum.intel
|
| 54 |
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
)
|
| 58 |
```
|
| 59 |
|
| 60 |
### ONNX
|
|
|
|
| 50 |
#### Load with Intel® Neural Compressor:
|
| 51 |
|
| 52 |
```python
|
| 53 |
+
from optimum.intel import INCModelForSequenceClassification
|
| 54 |
|
| 55 |
+
model_id = "Intel/xlnet-base-cased-mrpc-int8-static"
|
| 56 |
+
int8_model = INCModelForSequenceClassification.from_pretrained(model_id)
|
|
|
|
| 57 |
```
|
| 58 |
|
| 59 |
### ONNX
|