echarlaix HF staff commited on
Commit
a1e905c
1 Parent(s): 8e4dd31

Update model card

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -47,8 +47,8 @@ The linear module **roberta.encoder.layer.6.attention.self.query** falls back to
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/camembert-base-mrpc-int8-dynamic',
53
- )
54
  ```
 
47
  ### Load with Intel® Neural Compressor:
48
 
49
  ```python
50
+ from optimum.intel.neural_compressor import IncQuantizedModelForSequenceClassification
51
+
52
+ model_id = "Intel/camembert-base-mrpc-int8-dynamic"
53
+ int8_model = IncQuantizedModelForSequenceClassification.from_pretrained(model_id)
54
  ```