echarlaix HF staff commited on
Commit
18aabf0
1 Parent(s): e75a9e6

fix code snippet

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -33,8 +33,8 @@ The linear modules **lm.head**, fall back to fp32 for less than 1% relative accu
33
  ### Load with optimum:
34
 
35
  ```python
36
- from optimum.intel.neural_compressor.quantization import IncQuantizedModelForSeq2SeqLM
37
- int8_model = IncQuantizedModelForSeq2SeqLM.from_pretrained(
38
- 'Intel/t5-small-finetuned-cnn-news-int8-dynamic',
39
- )
40
  ```
 
33
  ### Load with optimum:
34
 
35
  ```python
36
+ from optimum.intel import INCModelForSeq2SeqLM
37
+
38
+ model_id = "Intel/t5-small-finetuned-cnn-news-int8-dynamic"
39
+ int8_model = INCModelForSeq2SeqLM.from_pretrained(model_id)
40
  ```