update loading instructions
Browse files
README.md
CHANGED
|
@@ -50,10 +50,10 @@ The linear module **roberta.encoder.layer.6.attention.self.query** falls back to
|
|
| 50 |
#### Load with Intel® Neural Compressor:
|
| 51 |
|
| 52 |
```python
|
| 53 |
-
from optimum.intel
|
| 54 |
|
| 55 |
model_id = "Intel/camembert-base-mrpc-int8-dynamic"
|
| 56 |
-
int8_model =
|
| 57 |
```
|
| 58 |
|
| 59 |
### ONNX
|
|
|
|
| 50 |
#### Load with Intel® Neural Compressor:
|
| 51 |
|
| 52 |
```python
|
| 53 |
+
from optimum.intel import INCModelForSequenceClassification
|
| 54 |
|
| 55 |
model_id = "Intel/camembert-base-mrpc-int8-dynamic"
|
| 56 |
+
int8_model = INCModelForSequenceClassification.from_pretrained(model_id)
|
| 57 |
```
|
| 58 |
|
| 59 |
### ONNX
|