violetch24 commited on
Commit
e3069f5
·
1 Parent(s): 857d28d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -5
README.md CHANGED
@@ -16,8 +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 [Intel/MiniLM-L12-H384-uncased-mrpc](https://huggingface.co/Intel/MiniLM-L12-H384-uncased-mrpc).
22
 
23
  The calibration dataloader is the train dataloader. The default calibration sampling size 100 isn't divisible exactly by batch size 8, so the real sampling size is 104.
@@ -31,11 +30,11 @@ The linear module **bert.encoder.layer.6.attention.self.key** falls back to fp32
31
  | **Accuracy (eval-f1)** |0.9039|0.9097|
32
  | **Model size (MB)** |33.5|127|
33
 
34
- ### Load with Intel® Neural Compressor:
35
 
36
  ```python
37
- from neural_compressor.utils.load_huggingface import OptimizedModel
38
- int8_model = OptimizedModel.from_pretrained(
39
  'Intel/MiniLM-L12-H384-uncased-mrpc-int8-static',
40
  )
41
  ```
 
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
  The original fp32 model comes from the fine-tuned model [Intel/MiniLM-L12-H384-uncased-mrpc](https://huggingface.co/Intel/MiniLM-L12-H384-uncased-mrpc).
21
 
22
  The calibration dataloader is the train dataloader. The default calibration sampling size 100 isn't divisible exactly by batch size 8, so the real sampling size is 104.
 
30
  | **Accuracy (eval-f1)** |0.9039|0.9097|
31
  | **Model size (MB)** |33.5|127|
32
 
33
+ ### Load with optimum:
34
 
35
  ```python
36
+ from optimum.intel.neural_compressor.quantization import IncQuantizedModelForSequenceClassification
37
+ int8_model = IncQuantizedModelForSequenceClassification(
38
  'Intel/MiniLM-L12-H384-uncased-mrpc-int8-static',
39
  )
40
  ```