echarlaix
HF staff
commited on
Commit
7529597
1 Parent(s): 69a8cf9

Update model card

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -47,8 +47,8 @@ The calibration dataloader is the train dataloader. The default calibration samp
47
  ### Load with Intel® Neural Compressor:
48
 
49
  ```python
50
- from neural_compressor.utils.load_huggingface import OptimizedModel
51
- int8_model = OptimizedModel.from_pretrained(
52
- 'Intel/roberta-base-mrpc-int8-static',
53
- )
54
  ```
47
  ### Load with Intel® Neural Compressor:
48
 
49
  ```python
50
+ from optimum.intel.neural_compressor import IncQuantizedModelForSequenceClassification
51
+
52
+ model_id = "Intel/roberta-base-mrpc-int8-static"
53
+ int8_model = IncQuantizedModelForSequenceClassification.from_pretrained(model_id)
54
  ```