violetch24 commited on
Commit
b71abb6
1 Parent(s): 8e70cc9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -16,7 +16,7 @@ metrics:
16
 
17
  ### Post-training static quantization
18
 
19
- This is an INT8 PyTorch model quantized with [Intel® Neural Compressor](https://github.com/intel/neural-compressor).
20
 
21
  The original fp32 model comes from the fine-tuned model [distilbert-base-uncased-finetuned-sst-2-english](https://huggingface.co/distilbert-base-uncased-finetuned-sst-2-english).
22
 
@@ -30,11 +30,11 @@ The calibration dataloader is the train dataloader. The default calibration samp
30
  | **Accuracy (eval-accuracy)** |0.9037|0.9106|
31
  | **Model size (MB)** |65|255|
32
 
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/distilbert-base-uncased-finetuned-sst-2-english-int8-static',
39
  )
40
  ```
 
16
 
17
  ### Post-training static quantization
18
 
19
+ This is an INT8 PyTorch model quantized with [huggingface/optimum-intel](https://github.com/huggingface/optimum-intel) through the usage of [Intel® Neural Compressor](https://github.com/intel/neural-compressor).
20
 
21
  The original fp32 model comes from the fine-tuned model [distilbert-base-uncased-finetuned-sst-2-english](https://huggingface.co/distilbert-base-uncased-finetuned-sst-2-english).
22
 
 
30
  | **Accuracy (eval-accuracy)** |0.9037|0.9106|
31
  | **Model size (MB)** |65|255|
32
 
33
+ ### Load with optimum:
34
 
35
  ```python
36
+ from optimum.intel.neural_compressor.quantization import IncQuantizedModelForSequenceClassification
37
+ int8_model = IncQuantizedModelForSequenceClassification.from_pretrained(
38
  'Intel/distilbert-base-uncased-finetuned-sst-2-english-int8-static',
39
  )
40
  ```