echarlaix HF staff commited on
Commit
70a58f5
·
1 Parent(s): 9b30774

fix README

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -38,7 +38,7 @@ The linear module **bert.encoder.layer.6.attention.self.key** falls back to fp32
38
  from optimum.intel import INCModelForSequenceClassification
39
 
40
  model_id = "Intel/MiniLM-L12-H384-uncased-mrpc-int8-static"
41
- int8_model = INCModelForSequenceClassification(model_id)
42
  ```
43
 
44
  ### ONNX
 
38
  from optimum.intel import INCModelForSequenceClassification
39
 
40
  model_id = "Intel/MiniLM-L12-H384-uncased-mrpc-int8-static"
41
+ int8_model = INCModelForSequenceClassification.from_pretrained(model_id)
42
  ```
43
 
44
  ### ONNX