xinhe commited on
Commit
1698289
1 Parent(s): bcffc21

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +55 -0
README.md CHANGED
@@ -1,3 +1,58 @@
1
  ---
 
 
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
  license: apache-2.0
5
+ tags:
6
+ - text-classfication
7
+ - int8
8
+ - PostTrainingDynamic
9
+ datasets:
10
+ - glue
11
+ metrics:
12
+ - f1
13
+ model-index:
14
+ - name: xlnet-base-cased-mrpc-int8-static
15
+ results:
16
+ - task:
17
+ name: Text Classification
18
+ type: text-classification
19
+ dataset:
20
+ name: GLUE MRPC
21
+ type: glue
22
+ args: mrpc
23
+ metrics:
24
+ - name: F1
25
+ type: f1
26
+ value: 0.8892794376098417
27
  ---
28
+ # INT8 xlnet-base-cased-mrpc
29
+
30
+ ### Post-training dynamic quantization
31
+
32
+ This is an INT8 PyTorch model quantized with [Intel® Neural Compressor](https://github.com/intel/neural-compressor).
33
+
34
+ The original fp32 model comes from the fine-tuned model [bart-large-mrpc](https://huggingface.co/Intel/bart-large-mrpc).
35
+
36
+ ### Test result
37
+
38
+ - Batch size = 8
39
+ - [Amazon Web Services](https://aws.amazon.com/) c6i.xlarge (Intel ICE Lake: 4 vCPUs, 8g Memory) instance.
40
+
41
+ | |INT8|FP32|
42
+ |---|:---:|:---:|
43
+ | **Throughput (samples/sec)** |6.529|3.261|
44
+ | **Accuracy (eval-f1)** |0.9051|0.9120|
45
+ | **Model size (MB)** |1556.48|547|
46
+
47
+ ### Load with Intel® Neural Compressor (build from source):
48
+
49
+ ```python
50
+ from neural_compressor.utils.load_huggingface import OptimizedModel
51
+ int8_model = OptimizedModel.from_pretrained(
52
+ 'Intel/bart-large-mrpc-int8-dynamic',
53
+ )
54
+ ```
55
+
56
+ Notes:
57
+ - The INT8 model has better performance than the FP32 model when the CPU is fully occupied. Otherwise, there will be the illusion that INT8 is inferior to FP32.
58
+