echarlaix HF staff commited on
Commit
d3e5af4
1 Parent(s): 1e58c25

Update model card

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -33,8 +33,8 @@ The linear modules **roberta.encoder.layer.16.output.dense**, **roberta.encoder.
33
  ### Load with Intel® Neural Compressor:
34
 
35
  ```python
36
- from neural_compressor.utils.load_huggingface import OptimizedModel
37
- int8_model = OptimizedModel.from_pretrained(
38
- 'Intel/roberta-base-squad2-int8-static',
39
- )
40
  ```
 
33
  ### Load with Intel® Neural Compressor:
34
 
35
  ```python
36
+ from optimum.intel.neural_compressor import IncQuantizedModelForSequenceClassification
37
+
38
+ model_id = "Intel/roberta-base-squad2-int8-static"
39
+ int8_model = IncQuantizedModelForSequenceClassification.from_pretrained(model_id)
40
  ```