echarlaix HF staff commited on
Commit
ce74289
1 Parent(s): c2f8181

Update loading instructions

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -33,10 +33,10 @@ The original fp32 model comes from the fine-tuned model [Intel/bert-base-uncased
33
  #### Load with optimum:
34
 
35
  ```python
36
- from optimum.intel.neural_compressor.quantization import IncQuantizedModelForSequenceClassification
37
- int8_model = IncQuantizedModelForSequenceClassification.from_pretrained(
38
- 'Intel/bert-base-uncased-mrpc-int8-dynamic',
39
- )
40
  ```
41
 
42
  ### ONNX
 
33
  #### Load with optimum:
34
 
35
  ```python
36
+ from optimum.intel import INCModelForSequenceClassification
37
+
38
+ model_id = "Intel/bert-base-uncased-mrpc-int8-dynamic"
39
+ int8_model = INCModelForSequenceClassification.from_pretrained(model_id)
40
  ```
41
 
42
  ### ONNX