echarlaix HF staff commited on
Commit
67bf704
1 Parent(s): d399043

update loading instructions

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -32,8 +32,8 @@ The linear module **distilbert.transformer.layer.1.ffn.lin2** falls back to fp32
32
  ### Load with optimum:
33
 
34
  ```python
35
- from optimum.intel.neural_compressor.quantization import IncQuantizedModelForQuestionAnswering
36
- int8_model = IncQuantizedModelForQuestionAnswering(
37
- 'Intel/distilbert-base-cased-distilled-squad-int8-static',
38
- )
39
  ```
 
32
  ### Load with optimum:
33
 
34
  ```python
35
+ from optimum.intel import INCModelForQuestionAnswering
36
+
37
+ model_id = "Intel/distilbert-base-cased-distilled-squad-int8-static"
38
+ int8_model = INCModelForQuestionAnswering.from_pretrained(model_id)
39
  ```