violetch24 commited on
Commit
d399043
1 Parent(s): 1a083d9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -14,7 +14,7 @@ metrics:
14
 
15
  ### Post-training static quantization
16
 
17
- This is an INT8 PyTorch model quantized with [Intel® Neural Compressor](https://github.com/intel/neural-compressor).
18
 
19
  The original fp32 model comes from the fine-tuned model [distilbert-base-cased-distilled-squad](https://huggingface.co/distilbert-base-cased-distilled-squad).
20
 
@@ -29,11 +29,11 @@ The linear module **distilbert.transformer.layer.1.ffn.lin2** falls back to fp32
29
  | **Accuracy (eval-f1)** |86.0005|86.8373|
30
  | **Model size (MB)** |71.2|249|
31
 
32
- ### Load with Intel® Neural Compressor:
33
 
34
  ```python
35
- from neural_compressor.utils.load_huggingface import OptimizedModel
36
- int8_model = OptimizedModel.from_pretrained(
37
  'Intel/distilbert-base-cased-distilled-squad-int8-static',
38
  )
39
  ```
 
14
 
15
  ### Post-training static quantization
16
 
17
+ 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).
18
 
19
  The original fp32 model comes from the fine-tuned model [distilbert-base-cased-distilled-squad](https://huggingface.co/distilbert-base-cased-distilled-squad).
20
 
 
29
  | **Accuracy (eval-f1)** |86.0005|86.8373|
30
  | **Model size (MB)** |71.2|249|
31
 
32
+ ### Load with optimum:
33
 
34
  ```python
35
+ from optimum.intel.neural_compressor.quantization import IncQuantizedModelForQuestionAnswering
36
+ int8_model = IncQuantizedModelForQuestionAnswering(
37
  'Intel/distilbert-base-cased-distilled-squad-int8-static',
38
  )
39
  ```