update loading instructions
Browse files
README.md
CHANGED
|
@@ -29,8 +29,8 @@ The original fp32 model comes from the fine-tuned model [sysresearch101/t5-large
|
|
| 29 |
### Load with optimum:
|
| 30 |
|
| 31 |
```python
|
| 32 |
-
from optimum.intel
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
)
|
| 36 |
-
```
|
|
|
|
| 29 |
### Load with optimum:
|
| 30 |
|
| 31 |
```python
|
| 32 |
+
from optimum.intel import INCModelForSeq2SeqLM
|
| 33 |
+
|
| 34 |
+
model_id = "Intel/t5-large-finetuned-xsum-cnn-int8-dynamic"
|
| 35 |
+
int8_model = INCModelForSeq2SeqLM.from_pretrained(model_id)
|
| 36 |
+
```
|