update loading instructions
Browse files
README.md
CHANGED
@@ -37,10 +37,10 @@ The linear module **distilbert.transformer.layer.1.ffn.lin2** falls back to fp32
|
|
37 |
#### Load with optimum:
|
38 |
|
39 |
```python
|
40 |
-
from optimum.intel
|
41 |
-
|
42 |
-
|
43 |
-
)
|
44 |
```
|
45 |
|
46 |
### ONNX
|
|
|
37 |
#### Load with optimum:
|
38 |
|
39 |
```python
|
40 |
+
from optimum.intel import INCModelForQuestionAnswering
|
41 |
+
|
42 |
+
model_id = "Intel/distilbert-base-uncased-distilled-squad-int8-static"
|
43 |
+
int8_model = INCModelForQuestionAnswering.from_pretrained(model_id)
|
44 |
```
|
45 |
|
46 |
### ONNX
|