echarlaix HF staff commited on
Commit
bc618dd
1 Parent(s): 282f146

Update model card

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -49,8 +49,8 @@ The linear modules **albert.encoder.albert_layer_groups.0.albert_layers.0.ffn_ou
49
  ### Load with Intel® Neural Compressor:
50
 
51
  ```python
52
- from neural_compressor.utils.load_huggingface import OptimizedModel
53
- int8_model = OptimizedModel.from_pretrained(
54
- 'Intel/albert-base-v2-sst2-int8-static',
55
- )
56
  ```
49
  ### Load with Intel® Neural Compressor:
50
 
51
  ```python
52
+ from optimum.intel.neural_compressor import IncQuantizedModelForSequenceClassification
53
+
54
+ model_id = "Intel/albert-base-v2-sst2-int8-static"
55
+ int8_model = IncQuantizedModelForSequenceClassification.from_pretrained(model_id)
56
  ```