File size: 11,167 Bytes
f59266e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
[
    {
        "model_name_or_path": "elastic/distilbert-base-uncased-finetuned-conll03-english",
        "task": "token-classification",
        "task_args": null,
        "dataset": {
            "path": "conll2003",
            "eval_split": "validation",
            "data_keys": {
                "primary": "tokens",
                "secondary": null
            },
            "ref_keys": [
                "ner_tags"
            ],
            "name": null,
            "calibration_split": "train"
        },
        "quantization_approach": "static",
        "operators_to_quantize": [
            "Add",
            "MatMul"
        ],
        "node_exclusion": [
            "layernorm",
            "gelu",
            "residual",
            "gather",
            "softmax"
        ],
        "aware_training": false,
        "per_channel": false,
        "calibration": {
            "method": "minmax",
            "num_calibration_samples": 100,
            "calibration_histogram_percentile": null,
            "calibration_moving_average": null,
            "calibration_moving_average_constant": null
        },
        "framework": "onnxruntime",
        "framework_args": {
            "opset": 11,
            "optimization_level": 1
        },
        "hardware": "Architecture:                    x86_64\nCPU op-mode(s):                  32-bit, 64-bit\nByte Order:                      Little Endian\nAddress sizes:                   46 bits physical, 48 bits virtual\nCPU(s):                          8\nOn-line CPU(s) list:             0-7\nThread(s) per core:              2\nCore(s) per socket:              4\nSocket(s):                       1\nNUMA node(s):                    1\nVendor ID:                       GenuineIntel\nCPU family:                      6\nModel:                           85\nModel name:                      Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz\nStepping:                        7\nCPU MHz:                         3099.511\nBogoMIPS:                        4999.99\nHypervisor vendor:               KVM\nVirtualization type:             full\nL1d cache:                       128 KiB\nL1i cache:                       128 KiB\nL2 cache:                        4 MiB\nL3 cache:                        35.8 MiB\nNUMA node0 CPU(s):               0-7\nVulnerability Itlb multihit:     KVM: Vulnerable\nVulnerability L1tf:              Mitigation; PTE Inversion\nVulnerability Mds:               Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown\nVulnerability Meltdown:          Mitigation; PTI\nVulnerability Spec store bypass: Vulnerable\nVulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization\nVulnerability Spectre v2:        Mitigation; Retpolines, STIBP disabled, RSB filling\nVulnerability Srbds:             Not affected\nVulnerability Tsx async abort:   Not affected\nFlags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves ida arat pku ospke avx512_vnni\n",
        "versions": {
            "transformers": "4.20.1",
            "optimum": "1.2.3.dev0",
            "optimum_hash": "6911cc6576c9fd373dfdba597e7a6b3ec37c2063"
        },
        "evaluation": {
            "time": [
                {
                    "batch_size": 4,
                    "input_length": 64,
                    "baseline": {
                        "nb_forwards": 131,
                        "throughput": 8.73,
                        "latency_mean": 114.5131176870229,
                        "latency_std": 11.639414649196416,
                        "latency_50": 119.241188,
                        "latency_90": 121.520665,
                        "latency_95": 122.2199805,
                        "latency_99": 122.8121624,
                        "latency_999": 123.42355991
                    },
                    "optimized": {
                        "nb_forwards": 280,
                        "throughput": 18.67,
                        "latency_mean": 53.58903423571429,
                        "latency_std": 0.2315309286545786,
                        "latency_50": 53.5208165,
                        "latency_90": 53.861245,
                        "latency_95": 54.0498545,
                        "latency_99": 54.40435797,
                        "latency_999": 54.557521482
                    }
                }
            ],
            "others": {
                "baseline": {
                    "precision": 0.9358012339503085,
                    "recall": 0.9444631437226523,
                    "f1": 0.9401122372057961,
                    "accuracy": 0.9882013940267124
                },
                "optimized": {
                    "precision": 0.9038969616908851,
                    "recall": 0.9212386401884888,
                    "f1": 0.912485414235706,
                    "accuracy": 0.9842295860753086
                }
            }
        },
        "max_eval_samples": null,
        "time_benchmark_args": {
            "duration": 15,
            "warmup_runs": 5
        },
        "model_type": "distilbert"
    },
    {
        "model_name_or_path": "elastic/distilbert-base-uncased-finetuned-conll03-english",
        "task": "token-classification",
        "task_args": null,
        "dataset": {
            "path": "conll2003",
            "eval_split": "validation",
            "data_keys": {
                "primary": "tokens",
                "secondary": null
            },
            "ref_keys": [
                "ner_tags"
            ],
            "name": null,
            "calibration_split": "train"
        },
        "quantization_approach": "static",
        "operators_to_quantize": [
            "Add",
            "MatMul"
        ],
        "node_exclusion": [],
        "aware_training": false,
        "per_channel": false,
        "calibration": {
            "method": "minmax",
            "num_calibration_samples": 100,
            "calibration_histogram_percentile": null,
            "calibration_moving_average": null,
            "calibration_moving_average_constant": null
        },
        "framework": "onnxruntime",
        "framework_args": {
            "opset": 11,
            "optimization_level": 1
        },
        "hardware": "Architecture:                    x86_64\nCPU op-mode(s):                  32-bit, 64-bit\nByte Order:                      Little Endian\nAddress sizes:                   46 bits physical, 48 bits virtual\nCPU(s):                          8\nOn-line CPU(s) list:             0-7\nThread(s) per core:              2\nCore(s) per socket:              4\nSocket(s):                       1\nNUMA node(s):                    1\nVendor ID:                       GenuineIntel\nCPU family:                      6\nModel:                           85\nModel name:                      Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz\nStepping:                        7\nCPU MHz:                         3102.103\nBogoMIPS:                        4999.99\nHypervisor vendor:               KVM\nVirtualization type:             full\nL1d cache:                       128 KiB\nL1i cache:                       128 KiB\nL2 cache:                        4 MiB\nL3 cache:                        35.8 MiB\nNUMA node0 CPU(s):               0-7\nVulnerability Itlb multihit:     KVM: Vulnerable\nVulnerability L1tf:              Mitigation; PTE Inversion\nVulnerability Mds:               Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown\nVulnerability Meltdown:          Mitigation; PTI\nVulnerability Spec store bypass: Vulnerable\nVulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization\nVulnerability Spectre v2:        Mitigation; Retpolines, STIBP disabled, RSB filling\nVulnerability Srbds:             Not affected\nVulnerability Tsx async abort:   Not affected\nFlags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves ida arat pku ospke avx512_vnni\n",
        "versions": {
            "transformers": "4.20.1",
            "optimum": "1.2.3.dev0",
            "optimum_hash": "6911cc6576c9fd373dfdba597e7a6b3ec37c2063"
        },
        "evaluation": {
            "time": [
                {
                    "batch_size": 4,
                    "input_length": 64,
                    "baseline": {
                        "nb_forwards": 166,
                        "throughput": 11.07,
                        "latency_mean": 90.66696189156626,
                        "latency_std": 2.0972474393793443,
                        "latency_50": 90.495261,
                        "latency_90": 93.621567,
                        "latency_95": 94.1387245,
                        "latency_99": 95.09578855,
                        "latency_999": 95.244914435
                    },
                    "optimized": {
                        "nb_forwards": 253,
                        "throughput": 16.87,
                        "latency_mean": 59.5520055770751,
                        "latency_std": 4.343861091008027,
                        "latency_50": 58.103232,
                        "latency_90": 66.4657948,
                        "latency_95": 67.8430942,
                        "latency_99": 68.59112767999999,
                        "latency_999": 69.474807792
                    }
                }
            ],
            "others": {
                "baseline": {
                    "precision": 0.9358012339503085,
                    "recall": 0.9444631437226523,
                    "f1": 0.9401122372057961,
                    "accuracy": 0.9882013940267124
                },
                "optimized": {
                    "precision": 0.06543578604398588,
                    "recall": 0.24335240659710536,
                    "f1": 0.10313837375178317,
                    "accuracy": 0.35697597445582335
                }
            }
        },
        "max_eval_samples": null,
        "time_benchmark_args": {
            "duration": 15,
            "warmup_runs": 5
        },
        "model_type": "distilbert"
    }
]