violetch24 commited on
Commit
9abd552
1 Parent(s): 54b72a0

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
  ### QuantizationAwareTraining
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/bert-base-uncased-mrpc](https://huggingface.co/Intel/bert-base-uncased-mrpc).
22
 
@@ -27,11 +27,11 @@ The original fp32 model comes from the fine-tuned model [Intel/bert-base-uncased
27
  | **Accuracy (eval-f1)** |0.9142|0.9042|
28
  | **Model size (MB)** |107|418|
29
 
30
- ### Load with Intel® Neural Compressor:
31
 
32
  ```python
33
- from neural_compressor.utils.load_huggingface import OptimizedModel
34
- int8_model = OptimizedModel.from_pretrained(
35
  'Intel/bert-base-uncased-mrpc-int8-qat',
36
  )
37
  ```
 
16
 
17
  ### QuantizationAwareTraining
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 [Intel/bert-base-uncased-mrpc](https://huggingface.co/Intel/bert-base-uncased-mrpc).
22
 
 
27
  | **Accuracy (eval-f1)** |0.9142|0.9042|
28
  | **Model size (MB)** |107|418|
29
 
30
+ ### Load with optimum:
31
 
32
  ```python
33
+ from optimum.intel.neural_compressor.quantization import IncQuantizedModelForSequenceClassification
34
+ int8_model = IncQuantizedModelForSequenceClassification(
35
  'Intel/bert-base-uncased-mrpc-int8-qat',
36
  )
37
  ```