echarlaix HF staff commited on
Commit
2f9bf39
1 Parent(s): 2750b4f

update loading instructions

Browse files
Files changed (1) hide show
  1. README.md +5 -5
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.neural_compressor.quantization import IncQuantizedModelForSeq2SeqLM
33
- int8_model = IncQuantizedModelForSeq2SeqLM.from_pretrained(
34
- 'Intel/t5-large-finetuned-xsum-cnn-int8-dynamic',
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
+ ```