echarlaix HF staff commited on
Commit
d51bda2
1 Parent(s): 499b4c9

update loading instructions

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -37,10 +37,10 @@ The linear module **distilbert.transformer.layer.1.ffn.lin2** falls back to fp32
37
  #### Load with optimum:
38
 
39
  ```python
40
- from optimum.intel.neural_compressor.quantization import IncQuantizedModelForQuestionAnswering
41
- int8_model = IncQuantizedModelForQuestionAnswering(
42
- 'Intel/distilbert-base-uncased-distilled-squad-int8-static',
43
- )
44
  ```
45
 
46
  ### ONNX
 
37
  #### Load with optimum:
38
 
39
  ```python
40
+ from optimum.intel import INCModelForQuestionAnswering
41
+
42
+ model_id = "Intel/distilbert-base-uncased-distilled-squad-int8-static"
43
+ int8_model = INCModelForQuestionAnswering.from_pretrained(model_id)
44
  ```
45
 
46
  ### ONNX