echarlaix HF staff commited on
Commit
fded9fe
1 Parent(s): 37270a0

update loading instructions

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -29,8 +29,8 @@ The original fp32 model comes from the fine-tuned model [flax-community/t5-base-
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-base-cnn-dm-int8-dynamic',
35
- )
36
  ```
 
29
  ### Load with optimum:
30
 
31
  ```python
32
+ from optimum.intel import INCModelForSeq2SeqLM
33
+
34
+ model_id = "Intel/t5-base-cnn-dm-int8-dynamic"
35
+ int8_model = INCModelForSeq2SeqLM.from_pretrained(model_id)
36
  ```