echarlaix HF staff commited on
Commit
01a8f51
1 Parent(s): 8715481

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 **bert.encoder.layer.2.intermediate.dense**, **bert.encoder.l
33
  ### Load with Intel® Neural Compressor:
34
 
35
  ```python
36
- from optimum.intel.neural_compressor import IncQuantizedModelForQuestionAnswering
37
- int8_model = IncQuantizedModelForQuestionAnswering.from_pretrained(
38
- "Intel/bert-base-uncased-squad-int8-static",
39
- )
40
  ```
33
  ### Load with Intel® Neural Compressor:
34
 
35
  ```python
36
+ from optimum.intel import INCModelForQuestionAnswering
37
+
38
+ model_id = "Intel/bert-base-uncased-squad-int8-static"
39
+ int8_model = INCModelForQuestionAnswering.from_pretrained(model_id)
40
  ```