update loading instructions
Browse files
README.md
CHANGED
|
@@ -32,8 +32,8 @@ The linear modules **roberta.encoder.layer.7.output.dense**, **roberta.encoder.l
|
|
| 32 |
### Load with optimum:
|
| 33 |
|
| 34 |
```python
|
| 35 |
-
from optimum.intel
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
)
|
| 39 |
```
|
|
|
|
| 32 |
### Load with optimum:
|
| 33 |
|
| 34 |
```python
|
| 35 |
+
from optimum.intel import INCModelForQuestionAnswering
|
| 36 |
+
|
| 37 |
+
model_id = "Intel/roberta-base-squad2-int8-static"
|
| 38 |
+
int8_model = INCModelForQuestionAnswering.from_pretrained(model_id)
|
| 39 |
```
|