heart/nano_q8_meta.h
7.2 KB · 231 lines · c Raw
1 /* generated by tools/export_e12_nano_q8.py -- do not edit */
2 #pragma once
3
4 #define NANO_FORMAT_VERSION 1
5 #define NANO_MAGIC_FRONT 1312902726
6 #define NANO_MAGIC_DEC 1312902724
7 #define NANO_VOCAB 62
8 #define NANO_DUR_HIDDEN 64
9 #define NANO_DUR_DEPTH 3
10 #define NANO_DUR_KERNEL 5
11 #define NANO_DUR_MAX_TOKENS 207
12 #define NANO_DUR_MAX_DURATION 80
13 #define NANO_AC_HIDDEN 96
14 #define NANO_AC_TOKEN_DEPTH 3
15 #define NANO_AC_DEPTH 4
16 #define NANO_AC_KERNEL 5
17 #define NANO_MELS 100
18 #define NANO_DIM 192
19 #define NANO_BLOCKS 5
20 #define NANO_PW_HIDDEN 576
21 #define NANO_DW_KERNEL 7
22 #define NANO_EMBED_KERNEL 7
23 #define NANO_NOISE_CH 4
24 #define NANO_N_FFT 1024
25 #define NANO_HOP 256
26 #define NANO_BINS 513
27 #define NANO_HEAD_OUT 1026
28 #define NANO_NORM_TYPE 0
29 #define NANO_ACT_TYPE 0
30 #define NANO_WEIGHT_FORMAT 1
31
32 #define NANO_DUR_PROJ_N16 80
33 #define NANO_DUR_B0_C0_N16 320
34 #define NANO_DUR_B0_C1_N16 320
35 #define NANO_DUR_B1_C0_N16 320
36 #define NANO_DUR_B1_C1_N16 320
37 #define NANO_DUR_B2_C0_N16 320
38 #define NANO_DUR_B2_C1_N16 320
39 #define NANO_DUR_OUT_N16 64
40 #define NANO_AC_TPROJ_N16 112
41 #define NANO_AC_TB0_C0_N16 480
42 #define NANO_AC_TB0_C1_N16 480
43 #define NANO_AC_TB1_C0_N16 480
44 #define NANO_AC_TB1_C1_N16 480
45 #define NANO_AC_TB2_C0_N16 480
46 #define NANO_AC_TB2_C1_N16 480
47 #define NANO_AC_FPROJ_N16 112
48 #define NANO_AC_FB0_C0_N16 480
49 #define NANO_AC_FB0_C1_N16 480
50 #define NANO_AC_FB1_C0_N16 480
51 #define NANO_AC_FB1_C1_N16 480
52 #define NANO_AC_FB2_C0_N16 480
53 #define NANO_AC_FB2_C1_N16 480
54 #define NANO_AC_FB3_C0_N16 480
55 #define NANO_AC_FB3_C1_N16 480
56 #define NANO_AC_OUT_N16 96
57 #define NANO_EMBED_N16 704
58 #define NANO_NOISE_N16 32
59 #define NANO_B0_PW0_N16 192
60 #define NANO_B0_PW1_N16 576
61 #define NANO_B1_PW0_N16 192
62 #define NANO_B1_PW1_N16 576
63 #define NANO_B2_PW0_N16 192
64 #define NANO_B2_PW1_N16 576
65 #define NANO_B3_PW0_N16 192
66 #define NANO_B3_PW1_N16 576
67 #define NANO_B4_PW0_N16 192
68 #define NANO_B4_PW1_N16 576
69 #define NANO_HEAD_N16 192
70
71 /* byte offsets into front_f32.bin */
72 #define NOFF_DUR_EMB_F32 0
73 #define NOFF_DUR_PROJ_W8 15872
74 #define NOFF_DUR_PROJ_SCALE 36352
75 #define NOFF_DUR_PROJ_BIAS 36608
76 #define NOFF_DUR_B0_C0_W8 36864
77 #define NOFF_DUR_B0_C0_SCALE 118784
78 #define NOFF_DUR_B0_C0_BIAS 119040
79 #define NOFF_DUR_B0_C1_W8 119296
80 #define NOFF_DUR_B0_C1_SCALE 201216
81 #define NOFF_DUR_B0_C1_BIAS 201472
82 #define NOFF_DUR_B0_SCALE_F32 201728
83 #define NOFF_DUR_B1_C0_W8 201744
84 #define NOFF_DUR_B1_C0_SCALE 283664
85 #define NOFF_DUR_B1_C0_BIAS 283920
86 #define NOFF_DUR_B1_C1_W8 284176
87 #define NOFF_DUR_B1_C1_SCALE 366096
88 #define NOFF_DUR_B1_C1_BIAS 366352
89 #define NOFF_DUR_B1_SCALE_F32 366608
90 #define NOFF_DUR_B2_C0_W8 366624
91 #define NOFF_DUR_B2_C0_SCALE 448544
92 #define NOFF_DUR_B2_C0_BIAS 448800
93 #define NOFF_DUR_B2_C1_W8 449056
94 #define NOFF_DUR_B2_C1_SCALE 530976
95 #define NOFF_DUR_B2_C1_BIAS 531232
96 #define NOFF_DUR_B2_SCALE_F32 531488
97 #define NOFF_DUR_OUT_W8 531504
98 #define NOFF_DUR_OUT_SCALE 531760
99 #define NOFF_DUR_OUT_BIAS 531776
100 #define NOFF_AC_EMB_F32 531792
101 #define NOFF_AC_TPROJ_W8 555600
102 #define NOFF_AC_TPROJ_SCALE 598608
103 #define NOFF_AC_TPROJ_BIAS 598992
104 #define NOFF_AC_TB0_C0_W8 599376
105 #define NOFF_AC_TB0_C0_SCALE 783696
106 #define NOFF_AC_TB0_C0_BIAS 784080
107 #define NOFF_AC_TB0_C1_W8 784464
108 #define NOFF_AC_TB0_C1_SCALE 968784
109 #define NOFF_AC_TB0_C1_BIAS 969168
110 #define NOFF_AC_TB0_SCALE_F32 969552
111 #define NOFF_AC_TB1_C0_W8 969568
112 #define NOFF_AC_TB1_C0_SCALE 1153888
113 #define NOFF_AC_TB1_C0_BIAS 1154272
114 #define NOFF_AC_TB1_C1_W8 1154656
115 #define NOFF_AC_TB1_C1_SCALE 1338976
116 #define NOFF_AC_TB1_C1_BIAS 1339360
117 #define NOFF_AC_TB1_SCALE_F32 1339744
118 #define NOFF_AC_TB2_C0_W8 1339760
119 #define NOFF_AC_TB2_C0_SCALE 1524080
120 #define NOFF_AC_TB2_C0_BIAS 1524464
121 #define NOFF_AC_TB2_C1_W8 1524848
122 #define NOFF_AC_TB2_C1_SCALE 1709168
123 #define NOFF_AC_TB2_C1_BIAS 1709552
124 #define NOFF_AC_TB2_SCALE_F32 1709936
125 #define NOFF_AC_FPROJ_W8 1709952
126 #define NOFF_AC_FPROJ_SCALE 1752960
127 #define NOFF_AC_FPROJ_BIAS 1753344
128 #define NOFF_AC_FB0_C0_W8 1753728
129 #define NOFF_AC_FB0_C0_SCALE 1938048
130 #define NOFF_AC_FB0_C0_BIAS 1938432
131 #define NOFF_AC_FB0_C1_W8 1938816
132 #define NOFF_AC_FB0_C1_SCALE 2123136
133 #define NOFF_AC_FB0_C1_BIAS 2123520
134 #define NOFF_AC_FB0_SCALE_F32 2123904
135 #define NOFF_AC_FB1_C0_W8 2123920
136 #define NOFF_AC_FB1_C0_SCALE 2308240
137 #define NOFF_AC_FB1_C0_BIAS 2308624
138 #define NOFF_AC_FB1_C1_W8 2309008
139 #define NOFF_AC_FB1_C1_SCALE 2493328
140 #define NOFF_AC_FB1_C1_BIAS 2493712
141 #define NOFF_AC_FB1_SCALE_F32 2494096
142 #define NOFF_AC_FB2_C0_W8 2494112
143 #define NOFF_AC_FB2_C0_SCALE 2678432
144 #define NOFF_AC_FB2_C0_BIAS 2678816
145 #define NOFF_AC_FB2_C1_W8 2679200
146 #define NOFF_AC_FB2_C1_SCALE 2863520
147 #define NOFF_AC_FB2_C1_BIAS 2863904
148 #define NOFF_AC_FB2_SCALE_F32 2864288
149 #define NOFF_AC_FB3_C0_W8 2864304
150 #define NOFF_AC_FB3_C0_SCALE 3048624
151 #define NOFF_AC_FB3_C0_BIAS 3049008
152 #define NOFF_AC_FB3_C1_W8 3049392
153 #define NOFF_AC_FB3_C1_SCALE 3233712
154 #define NOFF_AC_FB3_C1_BIAS 3234096
155 #define NOFF_AC_FB3_SCALE_F32 3234480
156 #define NOFF_AC_OUT_W8 3234496
157 #define NOFF_AC_OUT_SCALE 3272896
158 #define NOFF_AC_OUT_BIAS 3273296
159 #define NANO_FRONT_BYTES 3273696
160
161 /* byte offsets into model_f32.bin */
162 #define DOFF_EMBED_W8 0
163 #define DOFF_EMBED_SCALE 540672
164 #define DOFF_EMBED_BIAS 541440
165 #define DOFF_NOISE_W8 542208
166 #define DOFF_NOISE_SCALE 566784
167 #define DOFF_NOISE_BIAS 567552
168 #define DOFF_NORM_W_F32 568320
169 #define DOFF_NORM_B_F32 569088
170 #define DOFF_B0_DW_W_F32 569856
171 #define DOFF_B0_DW_B_F32 575232
172 #define DOFF_B0_NORM_W_F32 576000
173 #define DOFF_B0_NORM_B_F32 576768
174 #define DOFF_B0_PW0_W8 577536
175 #define DOFF_B0_PW0_SCALE 1019904
176 #define DOFF_B0_PW0_BIAS 1022208
177 #define DOFF_B0_PW1_W8 1024512
178 #define DOFF_B0_PW1_SCALE 1466880
179 #define DOFF_B0_PW1_BIAS 1467648
180 #define DOFF_B0_GAMMA_F32 1468416
181 #define DOFF_B1_DW_W_F32 1469184
182 #define DOFF_B1_DW_B_F32 1474560
183 #define DOFF_B1_NORM_W_F32 1475328
184 #define DOFF_B1_NORM_B_F32 1476096
185 #define DOFF_B1_PW0_W8 1476864
186 #define DOFF_B1_PW0_SCALE 1919232
187 #define DOFF_B1_PW0_BIAS 1921536
188 #define DOFF_B1_PW1_W8 1923840
189 #define DOFF_B1_PW1_SCALE 2366208
190 #define DOFF_B1_PW1_BIAS 2366976
191 #define DOFF_B1_GAMMA_F32 2367744
192 #define DOFF_B2_DW_W_F32 2368512
193 #define DOFF_B2_DW_B_F32 2373888
194 #define DOFF_B2_NORM_W_F32 2374656
195 #define DOFF_B2_NORM_B_F32 2375424
196 #define DOFF_B2_PW0_W8 2376192
197 #define DOFF_B2_PW0_SCALE 2818560
198 #define DOFF_B2_PW0_BIAS 2820864
199 #define DOFF_B2_PW1_W8 2823168
200 #define DOFF_B2_PW1_SCALE 3265536
201 #define DOFF_B2_PW1_BIAS 3266304
202 #define DOFF_B2_GAMMA_F32 3267072
203 #define DOFF_B3_DW_W_F32 3267840
204 #define DOFF_B3_DW_B_F32 3273216
205 #define DOFF_B3_NORM_W_F32 3273984
206 #define DOFF_B3_NORM_B_F32 3274752
207 #define DOFF_B3_PW0_W8 3275520
208 #define DOFF_B3_PW0_SCALE 3717888
209 #define DOFF_B3_PW0_BIAS 3720192
210 #define DOFF_B3_PW1_W8 3722496
211 #define DOFF_B3_PW1_SCALE 4164864
212 #define DOFF_B3_PW1_BIAS 4165632
213 #define DOFF_B3_GAMMA_F32 4166400
214 #define DOFF_B4_DW_W_F32 4167168
215 #define DOFF_B4_DW_B_F32 4172544
216 #define DOFF_B4_NORM_W_F32 4173312
217 #define DOFF_B4_NORM_B_F32 4174080
218 #define DOFF_B4_PW0_W8 4174848
219 #define DOFF_B4_PW0_SCALE 4617216
220 #define DOFF_B4_PW0_BIAS 4619520
221 #define DOFF_B4_PW1_W8 4621824
222 #define DOFF_B4_PW1_SCALE 5064192
223 #define DOFF_B4_PW1_BIAS 5064960
224 #define DOFF_B4_GAMMA_F32 5065728
225 #define DOFF_FNORM_W_F32 5066496
226 #define DOFF_FNORM_B_F32 5067264
227 #define DOFF_HEAD_W8 5068032
228 #define DOFF_HEAD_SCALE 5856000
229 #define DOFF_HEAD_BIAS 5860112
230 #define NANO_DEC_BYTES 5864224
231