File size: 6,078 Bytes
0bf3be6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
{
  "source_model": "/root/code/pulpie-onnx/artifacts/source_model",
  "output_dir": "/root/code/pulpie-onnx/artifacts/onnx_model",
  "opset": 17,
  "sample_input_shape": [
    1,
    91
  ],
  "sample_logits_shape": [
    1,
    91,
    2
  ],
  "sample_logits_dtype": "torch.float32",
  "raw_model": {
    "path": "/root/code/pulpie-onnx/artifacts/onnx_model/model_raw.onnx",
    "checker_passed": true,
    "error": null,
    "summary": {
      "ir_version": 10,
      "opsets": {
        "ai.onnx": 18
      },
      "node_count": 680,
      "nonstandard_domains": [],
      "top_ops": {
        "Mul": 134,
        "MatMul": 110,
        "Add": 86,
        "Transpose": 61,
        "Reshape": 48,
        "Slice": 48,
        "Concat": 28,
        "Pow": 25,
        "ReduceMean": 25,
        "Sqrt": 25,
        "Reciprocal": 25,
        "Neg": 24,
        "Softmax": 12,
        "Sigmoid": 12,
        "Unsqueeze": 4,
        "Cast": 3,
        "Shape": 2,
        "Squeeze": 1,
        "Gather": 1,
        "Expand": 1,
        "Sub": 1,
        "Where": 1,
        "Range": 1,
        "Cos": 1,
        "Sin": 1
      }
    },
    "size_bytes": 1463820
  },
  "optimizer_attempts": [
    {
      "level": "ORT_ENABLE_EXTENDED",
      "path": "/root/code/pulpie-onnx/artifacts/onnx_model/model_ort_enable_extended.onnx",
      "standard_onnx": false,
      "error": "nonstandard domains: ['com.microsoft']",
      "summary": {
        "ir_version": 10,
        "opsets": {
          "ai.onnx": 18,
          "ai.onnx.ml": 5,
          "ai.onnx.training": 1,
          "ai.onnx.preview.training": 1,
          "com.microsoft": 1,
          "com.microsoft.experimental": 1,
          "com.microsoft.nchwc": 1,
          "org.pytorch.aten": 1
        },
        "node_count": 623,
        "nonstandard_domains": [
          "com.microsoft"
        ],
        "top_ops": {
          "Mul": 110,
          "MatMul": 98,
          "Add": 86,
          "Transpose": 52,
          "Reshape": 48,
          "Concat": 28,
          "Pow": 25,
          "ReduceMean": 25,
          "Sqrt": 25,
          "Reciprocal": 25,
          "Split": 24,
          "Neg": 24,
          "com.microsoft::FusedMatMul": 12,
          "Softmax": 12,
          "com.microsoft::QuickGelu": 12,
          "Unsqueeze": 4,
          "Cast": 3,
          "Shape": 2,
          "Squeeze": 1,
          "Range": 1,
          "Sin": 1,
          "Gather": 1,
          "Cos": 1,
          "Expand": 1,
          "Sub": 1,
          "Where": 1
        }
      }
    },
    {
      "level": "ORT_ENABLE_BASIC",
      "path": "/root/code/pulpie-onnx/artifacts/onnx_model/model_ort_enable_basic.onnx",
      "standard_onnx": true,
      "error": null,
      "summary": {
        "ir_version": 10,
        "opsets": {
          "ai.onnx": 18,
          "ai.onnx.ml": 5,
          "ai.onnx.training": 1,
          "ai.onnx.preview.training": 1,
          "com.microsoft": 1,
          "com.microsoft.experimental": 1,
          "com.microsoft.nchwc": 1,
          "org.pytorch.aten": 1
        },
        "node_count": 671,
        "nonstandard_domains": [],
        "top_ops": {
          "Mul": 134,
          "MatMul": 110,
          "Add": 86,
          "Transpose": 52,
          "Reshape": 48,
          "Slice": 48,
          "Concat": 28,
          "Pow": 25,
          "ReduceMean": 25,
          "Sqrt": 25,
          "Reciprocal": 25,
          "Neg": 24,
          "Softmax": 12,
          "Sigmoid": 12,
          "Unsqueeze": 4,
          "Cast": 3,
          "Shape": 2,
          "Squeeze": 1,
          "Range": 1,
          "Sin": 1,
          "Gather": 1,
          "Cos": 1,
          "Expand": 1,
          "Sub": 1,
          "Where": 1
        }
      }
    }
  ],
  "model": {
    "path": "/root/code/pulpie-onnx/artifacts/onnx_model/model.onnx",
    "checker_passed": true,
    "summary": {
      "ir_version": 10,
      "opsets": {
        "ai.onnx": 18,
        "ai.onnx.ml": 5,
        "ai.onnx.training": 1,
        "ai.onnx.preview.training": 1,
        "com.microsoft": 1,
        "com.microsoft.experimental": 1,
        "com.microsoft.nchwc": 1,
        "org.pytorch.aten": 1
      },
      "node_count": 671,
      "nonstandard_domains": [],
      "top_ops": {
        "Mul": 134,
        "MatMul": 110,
        "Add": 86,
        "Transpose": 52,
        "Reshape": 48,
        "Slice": 48,
        "Concat": 28,
        "Pow": 25,
        "ReduceMean": 25,
        "Sqrt": 25,
        "Reciprocal": 25,
        "Neg": 24,
        "Softmax": 12,
        "Sigmoid": 12,
        "Unsqueeze": 4,
        "Cast": 3,
        "Shape": 2,
        "Squeeze": 1,
        "Range": 1,
        "Sin": 1,
        "Gather": 1,
        "Cos": 1,
        "Expand": 1,
        "Sub": 1,
        "Where": 1
      }
    },
    "size_bytes": 847167095
  },
  "quantization": {
    "enabled": true,
    "path": "/root/code/pulpie-onnx/artifacts/onnx_model/model_quantized.onnx",
    "checker_passed": true,
    "error": null,
    "summary": {
      "ir_version": 10,
      "opsets": {
        "ai.onnx": 18,
        "ai.onnx.ml": 5,
        "ai.onnx.training": 1,
        "ai.onnx.preview.training": 1,
        "com.microsoft": 1,
        "com.microsoft.experimental": 1,
        "com.microsoft.nchwc": 1,
        "org.pytorch.aten": 1
      },
      "node_count": 976,
      "nonstandard_domains": [],
      "top_ops": {
        "Mul": 304,
        "Cast": 88,
        "Add": 86,
        "MatMulInteger": 85,
        "Transpose": 52,
        "DynamicQuantizeLinear": 49,
        "Reshape": 48,
        "Slice": 48,
        "Concat": 28,
        "Pow": 25,
        "ReduceMean": 25,
        "MatMul": 25,
        "Sqrt": 25,
        "Reciprocal": 25,
        "Neg": 24,
        "Softmax": 12,
        "Sigmoid": 12,
        "Unsqueeze": 4,
        "Shape": 2,
        "Gather": 1,
        "Squeeze": 1,
        "DequantizeLinear": 1,
        "Range": 1,
        "Expand": 1,
        "Sub": 1,
        "Where": 1,
        "Sin": 1,
        "Cos": 1
      }
    },
    "size_bytes": 212574154
  }
}