update loading instructions
Browse files
README.md
CHANGED
@@ -38,9 +38,8 @@ The original fp32 model comes from the fine-tuned model [yoshitomo-matsubara/ber
|
|
38 |
#### Load with Intel® Neural Compressor:
|
39 |
|
40 |
```python
|
41 |
-
from optimum.intel
|
42 |
|
43 |
-
|
44 |
-
|
45 |
-
)
|
46 |
```
|
|
|
38 |
#### Load with Intel® Neural Compressor:
|
39 |
|
40 |
```python
|
41 |
+
from optimum.intel import INCModelForSequenceClassification
|
42 |
|
43 |
+
model_id = "Intel/bert-large-uncased-rte-int8-static"
|
44 |
+
int8_model = INCModelForSequenceClassification.from_pretrained(model_id)
|
|
|
45 |
```
|