update loading instructions
Browse files
README.md
CHANGED
|
@@ -52,8 +52,8 @@ Below linear modules (40/193) are fallbacked to fp32 for less than 1% relative a
|
|
| 52 |
### Load with optimum:
|
| 53 |
|
| 54 |
```python
|
| 55 |
-
from optimum.intel
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
)
|
| 59 |
-
```
|
|
|
|
| 52 |
### Load with optimum:
|
| 53 |
|
| 54 |
```python
|
| 55 |
+
from optimum.intel import INCModelForSeq2SeqLM
|
| 56 |
+
|
| 57 |
+
model_id = "Intel/bart-large-cnn-int8-dynamic"
|
| 58 |
+
int8_model = INCModelForSeq2SeqLM.from_pretrained(model_id)
|
| 59 |
+
```
|