echarlaix HF staff commited on
Commit
4fd8dc0
1 Parent(s): 5bea157

Update loading instructions

Browse files
Files changed (1) hide show
  1. README.md +3 -4
README.md CHANGED
@@ -50,11 +50,10 @@ The calibration dataloader is the train dataloader. The default calibration samp
50
  #### Load with Intel® Neural Compressor:
51
 
52
  ```python
53
- from optimum.intel.neural_compressor.quantization import IncQuantizedModelForSequenceClassification
54
 
55
- int8_model = IncQuantizedModelForSequenceClassification.from_pretrained(
56
- "Intel/xlnet-base-cased-mrpc-int8-static",
57
- )
58
  ```
59
 
60
  ### ONNX
50
  #### Load with Intel® Neural Compressor:
51
 
52
  ```python
53
+ from optimum.intel import INCModelForSequenceClassification
54
 
55
+ model_id = "Intel/xlnet-base-cased-mrpc-int8-static"
56
+ int8_model = INCModelForSequenceClassification.from_pretrained(model_id)
 
57
  ```
58
 
59
  ### ONNX